Coinflip
Posted: Fri Sep 07, 2018 8:56 am
Coinflip is a 50-50 chance only,or? But that doesn't mean that we can't even the odds on more choices.
Here are my thoughts on how to even the chances:
ET=Event Trigger, O=Order, V=Modify Value, Trigger=Perform Event
ET:Choice 1
O:0 V:c1=1
O:0 V:c1=2 Crit:Coinflip
O:1 Trigger:Choice 2
ET:Choice 2
O:0 V:c2=1 Crit:c1=1
O:0 V:c2=2 Crit:c1=1;Coinflip
O:0 V:c2=3 Crit:c1=2
O:0 V:c2=4 Crit:c1=2;Coinflip
c1=1 and c1=2 should both have a chance of 50%.
c2=1, c2=2, c2=3 and c2=4 should all have a chance of 25%.
ET:CChoice 1
O:0 V:cc1=1
O:0 V:cc1=2 Crit:Coinflip
O:1 Trigger:CChoice 2
ET:CChoice 2
O:0 V:cc2=1 Crit:cc1=1
O:0 V:cc2=2 Crit:cc1=1;Coinflip
O:0 V:cc2=3 Crit:cc1=2
O:0 V:cc2=4 Crit:cc1=2;Coinflip
O:1 V:cc1=0 Crit:cc2=4
O:1 V:cc2=0 Crit:cc2=4
O:2 Trigger:CChoice 1 Crit:cc2=0
cc2=1, cc2=2, cc2=3 and cc2=4 should all have a chance of 25%, but since cc2=4 resets the values and jumps back
it should even the chances for cc2=1, cc2=2 and cc2=3 to be 33,33%.
This could be expanded to more choices. I have added a file where you can see or test it. Please correct me if i'm wrong.
Is my thinking right? Is there maybe a better/easier way to do it?
Here are my thoughts on how to even the chances:
ET=Event Trigger, O=Order, V=Modify Value, Trigger=Perform Event
ET:Choice 1
O:0 V:c1=1
O:0 V:c1=2 Crit:Coinflip
O:1 Trigger:Choice 2
ET:Choice 2
O:0 V:c2=1 Crit:c1=1
O:0 V:c2=2 Crit:c1=1;Coinflip
O:0 V:c2=3 Crit:c1=2
O:0 V:c2=4 Crit:c1=2;Coinflip
c1=1 and c1=2 should both have a chance of 50%.
c2=1, c2=2, c2=3 and c2=4 should all have a chance of 25%.
ET:CChoice 1
O:0 V:cc1=1
O:0 V:cc1=2 Crit:Coinflip
O:1 Trigger:CChoice 2
ET:CChoice 2
O:0 V:cc2=1 Crit:cc1=1
O:0 V:cc2=2 Crit:cc1=1;Coinflip
O:0 V:cc2=3 Crit:cc1=2
O:0 V:cc2=4 Crit:cc1=2;Coinflip
O:1 V:cc1=0 Crit:cc2=4
O:1 V:cc2=0 Crit:cc2=4
O:2 Trigger:CChoice 1 Crit:cc2=0
cc2=1, cc2=2, cc2=3 and cc2=4 should all have a chance of 25%, but since cc2=4 resets the values and jumps back
it should even the chances for cc2=1, cc2=2 and cc2=3 to be 33,33%.
This could be expanded to more choices. I have added a file where you can see or test it. Please correct me if i'm wrong.
Is my thinking right? Is there maybe a better/easier way to do it?