|
IceSoft Newbie
Joined: 30 Jan 2002 Posts: 7
|
Posted: 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 |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: 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 |
|
|
|
IceSoft Newbie
Joined: 30 Jan 2002 Posts: 7
|
Posted: Thu Jan 31, 2002 12:45 am |
That worked fine. Thanx alot. ;)
|
|
|
|
|
|