JudasInc Newbie
Joined: 26 Nov 2008 Posts: 1
|
Posted: Wed Nov 26, 2008 4:06 am
Triggers: IF/Cond/Within an All-in-One Solution? |
I've been scouring the zMUD helpfiles but I haven't exactly found what I'm looking for. Basically I want a trigger to fire only if a certain sentence appears after X amount of lines. I think in concept it should be doable, but I'm not sure.
My situation is something like this
AA
b
c
d
e
FF
g
h
i
j
KK
AA, FF, and KK are the sentences that i want the trigger to fire on; the small letters represents possible sentences inbetween the sentences in question.
AA will always happen. FF and KK may or may not happen, $they can happen together, but they will *always* happen after AA.
If neither FF or KK happens, I would like AA to run command1.
If only KK happens (after AA), i would like command2 to run *instead* of command1 (or run before command1 is run).
If only FF happens (after AA), i would like command3 to run *instead* of command1 (or run before command1 is run).
The last scenario if both FF and KK happen at the same time. In such a case, if it's possible, it would be easiest to run command4. If not, then I would like KK to have priority over FF if they both happen to appear together.
I've been playing with conditions in such fashion:
#trigger {AA} {command1}
#cond {KK} {command2}
but then both command1 and command2 are run causing conflicts.
To be honest, my problem could be solved if i knew how to have the trigger check if something is true or not after X lines. |
|