Pops a percentage-like value and pushes whether a random roll succeeded against it.
StackRandChance(percent)
percent Integer Chance out of 100 (or similar scale — not fully confirmed).
Integer
Pushes a boolean (1 = hit, 0 = miss) onto the VM stack.
Pops a percentage-like value and pushes whether a random roll succeeded against it. Pair with JumpIfFalse to gate a script branch on a chance roll.
JumpIfFalse
Minimal illustrative encoding (synthetic, not from a real ROM script):
0x00, N // PushByte(percent) 0x02, 0x12 // Step -> BytecodeVM_StackRandChance
There was an error while loading. Please reload this page.
Soon™