|
jetyapz Newbie
Joined: 05 Mar 2008 Posts: 1
|
Posted: Wed Mar 05, 2008 8:10 am
Broken Variable??? Previous action/command |
Hi All,
I'm trying to create the following script with no success.
1. Text sent to mud
cast 'hand of god' abc
2. Mud returns spell failure message
Your spell fizzles.....
I would like to automatically recast the spell. How can I do this? I tried using the %lastcom and %lastinput but it kept giving me rubbish. The output I get from %lastcom is "m" sent to the mud and for %lastinput "t" is sent to the mud. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Mar 05, 2008 10:18 am |
#alias cast {#var Casting %-1;#send {cast %-1}}
#trig {Your spell fizzles} {cast @Casting} |
|
|
|
wrym Magician
Joined: 06 Jul 2007 Posts: 349 Location: The big palace, My own lil world
|
Posted: Wed Mar 05, 2008 10:31 am |
Try this:
#trigger {Your spell fizzles} {!cast}
Help file for #history explains the ! character and other ways to use it |
|
|
|
|
|