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


Joined: 30 Jan 2002
Posts: 7

PostPosted: Wed Jan 30, 2002 11:20 pm   

Spell loop
 
in my mud if you cast spell you get
Ok. if you cast succesfully or
You lost your concentration!
if you fail. How can I make it loop until I get Ok.

Thanx
Einar
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Thu Jan 31, 2002 12:33 am   
 
How about something like this?

#class {CastLoop} {disable}
#var {CurrentSpell} {%null}
#trigger {You lost your concentration!} {cast @CurrentSpell}
#trigger {Ok.} {#t- CastLoop}
#class 0
#alias {CastLoop} {#var CurrentSpell "%-1" "CastLoop";#t+ CastLoop;cast "%-1"}

Then you would just do something like
castloop 'blind' target and the script would send cast 'blind' target until you got an Ok. back.


 - Charbal
Reply with quote
IceSoft
Newbie


Joined: 30 Jan 2002
Posts: 7

PostPosted: Thu Jan 31, 2002 12:45 am   
 
That worked fine. Thanx alot. ;)

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