Bob Loblaw
2 Sep 2009, 05:11pm
The randomizer entity is called a logic_case.
What you have set up to trigger the logic_case is up to you, and varies greatly depending on how it is used. Whatever you decide to trigger the logic case you will need this output:
*Whatever it is to trigger, for button it is OnPressed*
Logic_case
PickRandom
This will randomly pick a case (1-16) and will fire all the outputs for that case.
You do not need to name each case, but it might help to keep things organized.
If you want a bunch of things fired on each case you might want to run everything through a logic_relay.
So create a relay and have all the outputs in it. Then in the outputs for logic_case have:
OnCase01
Case01Relay
Trigger
This will keep things neat and tidy and everything for Case01 you would put into the relay.
Have multiple cases set up to do different things, then it will randomly pick a case and fire the string of outputs in that case all at once.
Very simple, and it's how everything that happens randomly is done.
What you have set up to trigger the logic_case is up to you, and varies greatly depending on how it is used. Whatever you decide to trigger the logic case you will need this output:
*Whatever it is to trigger, for button it is OnPressed*
Logic_case
PickRandom
This will randomly pick a case (1-16) and will fire all the outputs for that case.
You do not need to name each case, but it might help to keep things organized.
If you want a bunch of things fired on each case you might want to run everything through a logic_relay.
So create a relay and have all the outputs in it. Then in the outputs for logic_case have:
OnCase01
Case01Relay
Trigger
This will keep things neat and tidy and everything for Case01 you would put into the relay.
Have multiple cases set up to do different things, then it will randomly pick a case and fire the string of outputs in that case all at once.
Very simple, and it's how everything that happens randomly is done.