Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Jdawg
Newbie


Joined: 17 Jan 2002
Posts: 5
Location: Sweden

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Jdawg
Newbie


Joined: 17 Jan 2002
Posts: 5
Location: Sweden

PostPosted: 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
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net