Ok so I'm trying to clean up my triggers a bit, but have no idea how to script what I am needing (if even possible).
The whole purpose of the triggers/script is to change the variables for a trigger that fires to two messages.
The first trigger fires and sends "research @variable"
I would like the second trigger to change @variable, every time it fires.
The end result is hopefully a 'queue' of variables to be loaded as the new variable fires off.
Here are the triggers I have right now, they might help get a good idea of what I mean:
<triggers>
<trigger
expand_variables="y"
group="eng"
match="You can't learn any more about that from books!"
name="a"
send_to="12"
sequence="100"
>
<send>EnableTrigger("b", true)
SetVariable("study", "@a")
SendImmediate("research @a")
EnableTrigger("a", false)</send>
</trigger>
</triggers>
<triggers>
<trigger
expand_variables="y"
group="eng"
match="You can't learn any more about that from books!"
name="b"
send_to="12"
sequence="100"
>
<send>EnableTrigger("c", true)
SetVariable("study", "@b")
SendImmediate("research @b")
EnableTrigger("b", false)</send>
</trigger>
</triggers>
<triggers>
<trigger
expand_variables="y"
group="eng"
match="You can't learn any more about that from books!"
name="c"
send_to="12"
sequence="100"
>
<send>EnableTrigger("d", true)
SetVariable("study", "@c")
SendImmediate("research @c")
EnableTrigger("c", false)</send>
</trigger>
</triggers>
And so on from here.
I would rather be able to just make a list of things for the variable to switch to when that match fires, rather than having to create 20 different triggers to enable/disable eachother.
There are multiple uses I have planned for this, so I am hoping someone can help me get this scripted. |