|
Ralph1971 Wanderer
Joined: 01 Mar 2008 Posts: 64
|
Posted: Mon Feb 07, 2011 5:52 am
text not recieved |
I'm trying to get a script running (7.21 on the pc, cmud on the laptop)..
it's a spell adepting situation where the basically:
cast 'armor' (success line - Your armor begins to glow softly as it is enhanced by a cantrip.)
cast 'dispel magic' self (casting - 'Cast this on yourself? Okay...' (receive that line every cast, success or failure) (You pass your hands around your body...) receive that sometimes on successful cast))
success - cast original spell
no success - cast dispel again
I can work most of the bugs out.. but the dispel has a hitch to it.. it always says 'cast this upon yourself? Okay...', whether it succeeds or fails. SOMETIMES, you get a "you pass your hands around your body" message on success.
If I trigger off of the 'cast this' line, it fires off too much and the script doesn't advance to casting the original spell again. If I trigger it off of 'you pass your hands', then it won't fire all the time.
Is there a way to use #cond, or #while, or some such? I was thinking that 'cast this upon yourself? Okay...' and if I don't receive the success line of the spell I'm adepting within 5 seconds, cast the spell. |
|
|
|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: Mon Feb 07, 2011 1:28 pm |
Is there another command you can send to confirm whether or not the dispel magic spell worked? If you have no way of knowing whether the spell worked, zMUD or CMUD isn't going to be able to detect that either.
|
|
|
|
Kamian Beginner
Joined: 25 Oct 2000 Posts: 11 Location: USA
|
Posted: Fri Feb 11, 2011 2:41 am |
hmm.. looks like I figured something out here.. if I am affected by a spell, the 'dispel magic' will result in the 'hands over your body' text.. if I'm not affected by anything, it results in no text other than 'cast this on yourself' text.. interesting, I did not realize this.
Basically, the "cast this on yourself" line is when you cast any spelled deemed 'aggressive' on yourself..
I'm sure this thread isn't finished yet *sigh*. I haven't gotten to the other 'aggressive' spells I'm wanting to adept yet *grin* |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|