Objects casting personal only spells on players.
Objects casting personal only spells on players.
I may be being stupid here, but how does an object cast a non targetted personal spell on its wielder. ?
For example Bulls strength is currently personal only, how would an item cast it on someone when an appropriate prog is triggered ?
Duranamir
For example Bulls strength is currently personal only, how would an item cast it on someone when an appropriate prog is triggered ?
Duranamir
Re: Objects casting personal only spells on players.
I don't believe that bull's strength is a personal affecting spell..
"My pain is constant and sharp, and I do not hope for a better world. In fact, I want my pain to be inflicted on others. I want no one to survive."
Re: Objects casting personal only spells on players.
Ok, as pointed out bad example.... example is now Shield
Duranamir
Duranamir
- Japcil
- Sword Grand Master
- Posts: 1143
- Joined: Fri Jun 17, 2005 5:32 pm
- Location: Golden Oaks
- Contact:
Re: Objects casting personal only spells on players.
Code: Select all
if objisworn($o)
cast shield $n
endif
Re: Objects casting personal only spells on players.
I have now got the code working with shield, however i have encoutered what i think is a bug when using 'Arcane eye' in the same way. The intention is to have a crystal ball type object, however when the object trys to cast 'arcane eye' it appears to crash the test port, at least for a little bit.
Any ideas ?
Duranamir
Any ideas ?
Duranamir
Re: Objects casting personal only spells on players.
It may be impossible to have an item cast that spell, but perhaps you could have it grant a skill in the spell temporarily, while the ball is held? I'm certain one of the builders will come up with something, though.
"My pain is constant and sharp, and I do not hope for a better world. In fact, I want my pain to be inflicted on others. I want no one to survive."
- Kelemvor
- Sword Grand Master
- Posts: 2295
- Joined: Mon Apr 11, 2005 6:14 pm
- Location: The Fugue Plain within the Crystal Spire
Re: Objects casting personal only spells on players.
Spells which require a location target other than $n or which employ code that creates an effect other than modifying stats don't work well on objects.
Generally, you would code an object to apply an effect rather than cast a spell - or have it only cast a spell which is personal or non-target based.
Generally, you would code an object to apply an effect rather than cast a spell - or have it only cast a spell which is personal or non-target based.
...never send to know for whom the bell tolls,
it tolls for thee.
it tolls for thee.
-
- Sword Grand Master
- Posts: 4708
- Joined: Tue Jul 15, 2003 9:26 pm
- Location: House of Wonder, Waterdeep
Re: Objects casting personal only spells on players.
I doubt you could make an object that can cast "arcane eye", since it's actually a very special spell that creates a mob and lets the PC "go into" that mob.
For most spells with personnal range, the supermob (the special mobs that runs all object programs) can cast them on other people. That's why you can have an object "(mp)cast shield $n" for example. But I'd guess it doesn't work for arcane eye.
That being said, I'm not sure that arcane eye is a spell we want to put on an object. I'd rather keep it as a perk for wizards who know it.
For most spells with personnal range, the supermob (the special mobs that runs all object programs) can cast them on other people. That's why you can have an object "(mp)cast shield $n" for example. But I'd guess it doesn't work for arcane eye.
That being said, I'm not sure that arcane eye is a spell we want to put on an object. I'd rather keep it as a perk for wizards who know it.
Re: Objects casting personal only spells on players.
Changed the spell, no longer using "arcane eye" as it was getting to complicated to try anf work out how to use it.
For future reference is granting the spell to a character (Moloch's suggestion) even possible ?
Duranamir
For future reference is granting the spell to a character (Moloch's suggestion) even possible ?
Duranamir
-
- Sword Grand Master
- Posts: 4708
- Joined: Tue Jul 15, 2003 9:26 pm
- Location: House of Wonder, Waterdeep
Re: Objects casting personal only spells on players.
I don't think it is.
We used to be able to do so, but this was made impossible through a hard-code change because people would get an item that would give them an out-of-guild skill then proceed to train it up and thus keep it (the skill) when they get rid of the object.
We used to be able to do so, but this was made impossible through a hard-code change because people would get an item that would give them an out-of-guild skill then proceed to train it up and thus keep it (the skill) when they get rid of the object.