|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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?
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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. |
|
|
|
Toxic Adept
Joined: 27 May 2008 Posts: 299
|
Posted: 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.
|
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
|
|