|
TehJunkAcct Newbie
Joined: 07 May 2004 Posts: 7 Location: USA
|
Posted: Mon May 24, 2004 5:32 am
Blasted Cant Control A Variable |
Ok Im In Battle..
I Try To Cast A Spell, Done by trigger
and it says i cant concentrate enough, because im in battle
so when it says R.I.P. (saying the fight is over) i want it to cast the spell
But i cant get it to cast the spell i want it to..
Mud says:The White aura around your body fades
Trigger does:Cast 'Sanc'
Mud says:Impossible you cant concentrate enough
Mud says:The pig is dead R.I.P.
Trigger does:Cast 'Sanc'
but if i cast Aid.. it would cast sanc at the end of battle?
Anybody know the predefined variable so i target the Spell?
Thanks Lots |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon May 24, 2004 4:18 pm |
#AL cast {#VAR lastspell {%-1};~cast %-1}
#TR {Impossible you cant concentrate enough} {#IF (@lastspell) {#VAR recast {@lastspell}};#VAR lastspell {}}
#TR {is dead R.I.P.} {cast @recast;#VAR recast {}}
NOTES (added):
1. You can control which spells might get recast by using 'cast' for noncombat spells and 'c' for combat spells
2. If your MUD doesn't recognize shortened commands, you can make an alias for 'c'
#AL c {~cast}
3. Added commands to clear variables after use |
|
|
|
TehJunkAcct Newbie
Joined: 07 May 2004 Posts: 7 Location: USA
|
Posted: Tue May 25, 2004 2:04 am |
Yeah, i got it..
Very nice triggering btw..
Thanks-a-bunch |
|
|
|
|
|