Is there a way to be able to group some triggers/aliases(normally not enabled) together and only enable them when you want to by entering like a single command or something?
Triggers/Aliases
Posted by Penguin on Tue 21 May 2002 02:17 AM — 6 posts, 20,656 views.
There is no built-in method right now.
However what you could do is name each one (with a label), all starting with the same word (eg. group1_xxx) and then make a small script that calls world.gettriggerlist, checks the first (say) 6 characters of the label, and enables and disables them as required.
However what you could do is name each one (with a label), all starting with the same word (eg. group1_xxx) and then make a small script that calls world.gettriggerlist, checks the first (say) 6 characters of the label, and enables and disables them as required.
Sorry about this, but I am lost when it comes to scripts.. if it doesn't take too much time, could you write it out?
I tried writing my own script but got errors all over the place. Thanks.
I tried writing my own script but got errors all over the place. Thanks.
I've managed to write my own script.. goes something like this...
Sub FB_mode (AliasName, TriggerLine, arrWildcards)
dim trList
trList = World.GetTriggerList
If Not IsEmpty (trList) then
For Each t In trList
world.Note t
Next
World.EnableTrigger "FB_conc", 1
World.EnableTrigger "FB_fireball", 1
End If
End Sub
Sub FB_mode_off (AliasName, TriggerLine, arrWildcards)
World.EnableTrigger "FB_conc", 0
World.EnableTrigger "FB_fireball", 0
End Sub
It works ok now, but how do I load those 2 specific triggers only? Like.. what do I add to the world.gettriggerlist in order to activate those 2?
Sub FB_mode (AliasName, TriggerLine, arrWildcards)
dim trList
trList = World.GetTriggerList
If Not IsEmpty (trList) then
For Each t In trList
world.Note t
Next
World.EnableTrigger "FB_conc", 1
World.EnableTrigger "FB_fireball", 1
End If
End Sub
Sub FB_mode_off (AliasName, TriggerLine, arrWildcards)
World.EnableTrigger "FB_conc", 0
World.EnableTrigger "FB_fireball", 0
End Sub
It works ok now, but how do I load those 2 specific triggers only? Like.. what do I add to the world.gettriggerlist in order to activate those 2?
Oh nevermind, I seem to have got it... the gettriggerlist part seems a bit redundant so I got rid of it.. Thanks anyway
What I had in mind was something like this:
Sub FB_mode (AliasName, TriggerLine, arrWildcards)
dim trList
trList = World.GetTriggerList
If Not IsEmpty (trList) then
For Each t In trList
if left (t, 3) = "FB_"
World.EnableTrigge t, 1
end if
Next
End If
End Sub
Then you can add as many triggers as you like, and provided they start with "FB_" it will enable them. The disable code is the same, except the "1" becomes "0".