Staredit Network

Staredit Network -> UMS Assistance -> How can you make random more random
Report, edit, etc...Posted by Cokymonster on 2004-08-31 at 04:27:32
ill just layout the triggers then ask the question at the end

condition:
always
action:
set "selection random unit"

condition:
when "selection random unit" is set
action:
randomize: A
randomize: B
....
randomize: J
clear " selection random unit"
preserve trigger

condition:
when A is set
when current player brings exactly 0 units to "Area"
action:
create *whatever unit*
clear A
Set "selection random unit"
preserve trigger

Condition:
when B is set... this repeats for different units until A-J switches are used up.

Condition:
when current player brings atleast 1 unit to "area"
action:
Move men for current player at "area" to "another place"
preserve trigger

Ok, now that you saw the synopsis of my triggers, my problem seems to be that, though it is random, it seems to give me triggers A and B about 95% of the time. BUT if i remove the "when current players brings exactly 0 units to "area" condition, the random triggers work very well, but the units pour in too fast!
I guess my question is, is there another way to set this up?
Report, edit, etc...Posted by Vindexus on 2004-08-31 at 04:41:37
Your conditions are wrong, you need this
Trigger
Conditions:
¤ A is set
¤ B is set
¤ C is set
Actions:
¤ Create Unit
¤ Randomize Switches again


Trigger
Conditions:
¤ A is clear
¤ B is set
¤ C is set
Actions:
¤ Create Unit
¤ Randomize Switches again


Trigger
Conditions:
¤ A is set
¤ B is clear
¤ C is set
Actions:
¤ Create Unit
¤ Randomize Switches again


Then keep going. The amoutn of options availabe is 2^X. X being the amount of switches you're randomizing.
Report, edit, etc...Posted by Cokymonster on 2004-08-31 at 05:26:37
yeah it was a synopsis

i know the random variables.
its just that it still gives me a random pick thats less random.



edit: ah i changed it tongue.gif ty anyways
Next Page (1)