Supported In: | ||
---|---|---|
C | D/S/W | W-CD |
? | ? | ? |
The scripting command JumpRnd has the opcode (0x17).
Arguments
- Byte - Max random value
- Byte - Comparison value
- Line Number (byte) - destination line number if comparison is true
Description
Generates a random number between 1 and the first argument (Max), and jumps to destination if it matches the second argument (Comparison)
Notes
For example, used in the Cupie doll games outside Xeen's castle to give a percentage chance of winning the doll.
Event Opcodes
| ||||||||||
|