Ok, i was hoping someone might be able to help me clean up some triggers, i know it can be done with a table easier. i just dont know how to do it
What i have below is a brute force approach to clearing an area. when ever it repops or i login, the triggers all get turned off except for the starting trigger.
When ever something dies i hunt @target. As mobs in the area go extinct and i see "You don't sense a trail of anyone like that.". My trigger turns itself off, and turns the next one on in the chain and updates the new target untill it runs out and then it hunts down bamex, another char of mine. Then it just waits for the next repop.
What i would like to do is replace these half dozen triggers with something that just goes down a table, but that would require calling from a script file and i honestly dont understand that enough to try.
There are a few other things i would also like to do using a table and just going down the list. Im hoping that with a decent example, that i can figure out all the simple modifications for my other projects myself. any help would be appreciated.
What i have below is a brute force approach to clearing an area. when ever it repops or i login, the triggers all get turned off except for the starting trigger.
When ever something dies i hunt @target. As mobs in the area go extinct and i see "You don't sense a trail of anyone like that.". My trigger turns itself off, and turns the next one on in the chain and updates the new target untill it runs out and then it hunts down bamex, another char of mine. Then it just waits for the next repop.
What i would like to do is replace these half dozen triggers with something that just goes down a table, but that would require calling from a script file and i honestly dont understand that enough to try.
There are a few other things i would also like to do using a table and just going down the list. Im hoping that with a decent example, that i can figure out all the simple modifications for my other projects myself. any help would be appreciated.
<triggers>
<trigger
back_colour="8"
match="You don\'t sense a trail of anyone like that\.$"
match_back_colour="y"
match_text_colour="y"
name="logan"
regexp="y"
send_to="12"
sequence="100"
text_colour="10"
>
<send>SetVariable "target", "haenish-soldier"
EnableTrigger "logan", false
EnableTrigger "soldier", true
send "hunt haenish-soldier"</send>
</trigger>
<trigger
match="You don\'t sense a trail of anyone like that\.$"
name="soldier"
regexp="y"
send_to="12"
sequence="101"
>
<send>SetVariable "target", "haen-villager"
EnableTrigger "soldier", false
EnableTrigger "villager", true
send "hunt haen-villager"</send>
</trigger>
<trigger
match="You don\'t sense a trail of anyone like that\.$"
name="villager"
regexp="y"
send_to="12"
sequence="102"
>
<send>SetVariable "target", "raider"
EnableTrigger "villager", false
EnableTrigger "raider", true
send "hunt raider"</send>
</trigger>
<trigger
match="You don\'t sense a trail of anyone like that\.$"
name="raider"
regexp="y"
send_to="12"
sequence="103"
>
<send>SetVariable "target", "bamex"
EnableTrigger "raider", false
EnableTrigger "is_dead", false
send "hunt bamex"</send>
</trigger>
</triggers>