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


Joined: 16 Oct 2006
Posts: 4

PostPosted: Mon Oct 16, 2006 11:42 am   

Spell fail trigger
 
Hi
I want to set up a trigger that automatically resend an alias/command to the mud if the spell failed.
My mud output when a spell is cast and it fails is like that (i traslated it: i play in an italian mud):

you say the words "powerful spell"
you lose your concentration

i tried to trigger on the "you lose your concentration" pattern things like %lastcommand, %lastinput, using <> or not, and the only one that works a bit is %lastcommand, with the flaw that is send aliases to the mud "verbatim".

Is there a simple way to do what i mean?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Mon Oct 16, 2006 8:18 pm   
 
Use a placeholder variable to keep track of where you are, then you can use it to repeat if you fail


#ALIAS spell5 {placeholder=spell5;cast spell5}

#TR {you lose your concentration} {@placeholder}
_________________
Discord: Shalimarwildcat
Reply with quote
futhwo
Newbie


Joined: 16 Oct 2006
Posts: 4

PostPosted: Tue Oct 17, 2006 8:06 pm   
 
It works :) thx a lot
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