Generating randomness...
Posted: Sun Nov 10, 2002 1:01 am
I'm sure it's been done, but...
I don't know if anyone has needed randomness, but you can do it using a blocked timer and a flag.
In one trigger, triggered by whatever event you choose,
Set the timer to a random value 10x your random decision tree, and make sure it's blocked. (I'm not sure what the preserve flag does.)
Create as many triggers as you have in your decision tree.
In each one, set a timer check for whatever range is appropriate (GT50, LT51, or use two conditions to narrow it to a range.)
Set a flag check.
Set the appropriate action.
My very first map has now been created. It has an actor, a 10 second delay, and then he randomly dies in various ways. Simple, but amusing. (It'd be interesting to know if you can bring a dead actor back to life, as well.)
Vorien
I don't know if anyone has needed randomness, but you can do it using a blocked timer and a flag.
In one trigger, triggered by whatever event you choose,
Set the timer to a random value 10x your random decision tree, and make sure it's blocked. (I'm not sure what the preserve flag does.)
Create as many triggers as you have in your decision tree.
In each one, set a timer check for whatever range is appropriate (GT50, LT51, or use two conditions to narrow it to a range.)
Set a flag check.
Set the appropriate action.
My very first map has now been created. It has an actor, a 10 second delay, and then he randomly dies in various ways. Simple, but amusing. (It'd be interesting to know if you can bring a dead actor back to life, as well.)
Vorien