Quote
If you call "Random(7, _random)" from my understanding you should get a random number from 0 to 6.

Indeed. You can work with chances this way:

IF
...
AND
Random(10,_Number)
AND
_Number == 1
THEN
...

That should be a 10% chance to execute the THEN-part.

44% would be:

...
Random(100,_Number) //the engine returns an integer between 0 and 99
AND
_Number < 44 //0-43 (so 44 integers out of 100 are a win)
THEN
...

Less intuitive than randomization in object scripts, but useful.


Last edited by Abraxas*; 20/10/17 12:12 PM. Reason: Addition

My mods for DOS 1 EE: FasterAnimations - QuietDay - Samaritan