About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
MajorClanger
Newbie


Joined: 23 Dec 2011
Posts: 1

PostPosted: Fri Dec 23, 2011 9:07 pm   

Multi state triggers : Repeating 2nd state multiple times for different purposes
 
I'm sure what i'm trying to do isn't difficult and that i'm being a bit dense so would appreciate any help
I'm trying to trigger off the same bit of text multiple times, but each time it triggers i wish to perform a different action, and the last time it triggers i would like to disable the first trigger, but i can't seem to control the sequence. I would like to branch on the Loopexp parameter but don't know how to access it

<trigger priority="247400">
<pattern>^Equilibrium is regained.</pattern>
<value>root air here</value>
<trigger>
<pattern>^Equilibrium is regained.</pattern>
<value>root fire here</value>
<trigger>
<pattern>^Equilibrium is regained.</pattern>
<value>root earth here</value>
</trigger>
</trigger>
</trigger>
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Fri Dec 23, 2011 9:19 pm   
 
I'm not entirely sure what you're trying to do. If you want it to reset to the first state if the second or third don't fire, you could try setting them to within lines type. Otherwise, you'll need to explain a bit better...
Reply with quote
shalimar
GURU


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

PostPosted: Sat Dec 24, 2011 12:11 am   
 
Your trigger looks fine for doing three diff actions in a row off the same line of text.
But do do what you want, give the first trigger and this trigger both a name


#T- first trigger //disables
#T+ second trigger //enables
some command to get the ball rolling
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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