Running a random trigger from a set amount of triggers

Status
Not open for further replies.
Level 5
Joined
Nov 7, 2007
Messages
134
Is there any way that you can make a trigger randomly choose between a couple of other triggers and then run one of them?
 
Level 4
Joined
Jul 24, 2008
Messages
108
yes. In your initiation trigger, set your triggers you want to run to be a variable array.

So

set randomtrigger[1] = lolnoobs
set randomtrigger[2] = smiley
....
set randomtrigger[7] = anothertrigger

then to call it use the run trigger function using that array and for the array number choose random number between 1 and your max trigger.
NOTE that while testing it out, it will always choose the same one unless you have the option in WE to use different seeds everytime
 
Status
Not open for further replies.
Top