 |
Jdawg Newbie
Joined: 17 Jan 2002 Posts: 5 Location: Sweden
|
Posted: Wed Apr 03, 2002 2:29 pm
repeated Trigger help |
I need help with repeating a spell if it fails the first time. An example:
If I cast a spell called "killspell", and it fails, it says; "Your spell fails."
I can't have a trigger that just casts "killspell" again, because "Your spell fails" applies to all spells. How do I get the trigger to know which spell to react on?
Hope you understand what I mean
Thanks!/Jdawg |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Apr 03, 2002 2:48 pm |
Use aliases to cast spells. The aliases should capture the spell being cast to a variable. You can then use a trigger to recast when necessary.
LightBulb
All scripts untested unless otherwise noted |
|
|
 |
Jdawg Newbie
Joined: 17 Jan 2002 Posts: 5 Location: Sweden
|
Posted: Wed Apr 03, 2002 3:07 pm |
Uhm, please explain a bit more.
So if I assign a spell to an alias called "castfdeath"
what should the variable be?
and how do I trigger on the variable?
Thanks/Jdawg |
|
|
 |
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Wed Apr 03, 2002 3:52 pm |
Some sample aliases and triggers:
#AL killspell {#VAR spell killspell; cast killspell}
#AL castfdeath {#VAR spell castfdeath; cast castfdeath}
#TR {Your spell fails.} {cast @spell}
Troubadour  |
|
|
 |
|
|