Enhanced Scripts...
Kerozevok
Member Posts: 695
IfNo problem.
condition
Then
Response #100
action
End
IfDespite the 50/50, most of the time, the game always choose the 1st possibility, is it possible to improve this ?...
condition
Then
Response #50
action A
Response #50
action B
End
Post edited by Kerozevok on
0
Comments
No to be honest I'm no help and would be interested to know more.
You can split the probabilities unevenly too with RandomNumGT() / RandomNumLT() (Instead of a lot of OR() RandomNum()), for example
It goes like this (pretty much):
GlobalTimerExpired()
Triggers
THEN
RESPONSE #5
TakeItemReplace()
Continue()
RESPONSE #95
Continue()
END
and that seems to work fine for a 5% probability to break items everytime the timer is expired.
Scripting Guide by SimDing0 (writing in 2004)
So, you could have, for example:
IF
// Triggers
THEN
RESPONSE #100
// Action 1
RESPONSE #100
// Action 2
END
This will theoretically execute either action 1 or action 2 with equal chance of each when the block is executed. However, in practice, there is a bias towards the first response (see this post). Truly random responses, if essential, can be achieved using the RandomNum trigger.
Moreover, I am not sure the game makes a difference between 5% or 300%.