FANDOM


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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.