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
CrimsonSkyDrake
Newbie


Joined: 27 Dec 2004
Posts: 4

PostPosted: Tue Jan 04, 2005 2:19 am   

Spellup script request
 
Hello, looking for a simple script. Something to spell me up and recast if any are failed.
note: I HAVE searched through alot of files and scripts, but i can't get any to work. If you know one that DOES that i may have missed, feel free to just post a link.

I want a simple alias i can type in, like 'spellup' that will cast all of my spells, and re-do any lost spells. The message when i have failed a spell is
'You lost your concentration.' I will note that this comes at the END of the prompt line, it is NOT on a seperate line when it appears.
I have no real idea how to go about writing this, so i'm not sure on what information is needed. I'll check in every 30-45 minutes.


Thanks for any help, or direction to a page that has what i'm looking for
_________________
........No
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jan 05, 2005 2:31 am   
 
It might be best to use a series of linked triggers for this, with each spell's success message triggering the casting of the next spell. Put all the triggers into a class which will only be used during the spellup, in case you wanted to cast one of these spells by itself. The trigger for the final spell should use #T- to disable the class.

Code:
#AL spellup {#T+ SpellUp;#VAR spellup armor;cast @spellup}
#CLASS SpellUp disable
#TR {You lost your concentration} {cast @spellup}
#TR {You feel protected} {#VAR spellup shield;cast @spellup}
#TR {The air hardens into a shield around you} {#T- SpellUp}
#CLASS 0
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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