Staredit Network

Staredit Network -> UMS Assistance -> Switch Trees
Report, edit, etc...Posted by Steel_Hand55 on 2006-05-16 at 23:35:21
I'm creating a map that needs a random switch tree.

If you don't know what I mean, i mean something that will have a 25% chance of occuring, and work like this: randomize switch 1. switch 1 is cleared, randomize switch 2. switch 1 is set, randomize switch 3. switch 2 is cleared, (action x). switch 2 is set, (action y). switch 3 is set, (action z). switch 3 is cleared, (action theta wink.gif). in my map, the x,y,z,and theta are giving different amounts of cash to a player.

this all works fine, except that instead of a 25% chance of getting each amount of cash, there's like a 45% chance of getting action x, 45% chance of getting action y, and a 5% each chance of getting z or theta.

can anyone explain this? if necessary, I can post my triggers (though I HAVE quadruple checked them -.-, cursed things).
Report, edit, etc...Posted by Kenoli on 2006-05-17 at 00:18:33
Start by randomizing 2 switches. You can have a 25% chance on x, y, z, and theta based on the outcome.
When you randomize the switches you have 4 possibilities:
1) Both switches are Clear. (do x)
2) First one is Set, second one is Clear. (do y)
3) First one is Clear, second one is Set. (do z)
4) Both switches are Set. (do theta)

These triggers would be similar to the ones you probably already have:
Switch 1 Clear and Switch 2 Clear (do x)
Switch 1 Clear and Switch 2 Set (do y)
Switch 1 Set and Switch 3 Clear (do z)
Switch 1 Set and Switch 3 Set (do theta)

The differences if that you only need 1 trigger to randomize the switches, and you only need to use two switches.
Report, edit, etc...Posted by Steel_Hand55 on 2006-05-19 at 23:29:29
ok, cool. ironically, i didn't think of doing it that way; only doing a 'tree'. thx, kenoli.
Next Page (1)