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
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Jun 26, 2008 2:28 pm   

Conditions
 
How does one pair a condition with a #Trigger or a #regex? In the examples it merely puts them next to one another, but I don't think that's how CMUD will read it once they're already in there, so how do I make sure they're paired up?
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Thu Jun 26, 2008 2:46 pm   
 
Just like the documentation tells you. CMUD (and zMUD) automatically assumes the #COND below a #TRIGGER is meant for that trigger.

Charneus
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Jun 26, 2008 2:59 pm   
 
But how am I going to be assured that they're grouped correctly after I send them in? OR does it merely check when I throw them in through the command input and say never check again?

Just feels like there should be something to pair them up within their own script, not just because they're send together.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Toxic
Adept


Joined: 27 May 2008
Posts: 299

PostPosted: Thu Jun 26, 2008 3:01 pm   
 
My question is how do you 'easily' create a cond to a trigger using the PE UI? I can do it, just gotta jump through hoops, seems it should be easier.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Jun 26, 2008 3:12 pm   
 
In my mind, there should be a link, for command for it would be...

#condition "name of condition" {condition pattern} {condition actions} {name of trigger link} {class}

And for the UI, you would make a new condition, there would be a box at the bottom that says link, and you type the name of the trigger in it.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jun 26, 2008 3:25 pm   
 
The #cond command always applies to the last-issued #trigger command. You can just use the UI beyond that.

To create trigger states with the UI, highlight the trigger you want to make a new state for and click the New drop down thing (the blue square with the plus on it). One of the options is Trigger State. You can drag conditions around to change their order, they go from the top down. You can also drag a trigger onto another trigger to turn it into a state.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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