-
Notifications
You must be signed in to change notification settings - Fork 0
Zenkai Opcode StackGetItemCount
Johnathon edited this page Sep 16, 2026
·
1 revision
Pops an item id and pushes the player's current inventory count for it.
StackGetItemCount(itemId)itemId
Integer
Item id.
Pushes the number of that item the player is carrying onto the VM stack.
Pops an item id and pushes the player's current inventory count for it. Useful for gating dialog/events on "does the player have N of item X".
Minimal illustrative encoding (synthetic, not from a real ROM script):
0x00, N // PushByte(itemId)
0x02, 0x15 // Step -> BytecodeVM_StackGetItemCount| Game | Notes |
|---|---|
| Legacy of Goku 2 | Supported |