Skip to content

Zenkai Opcode StackGetItemCount

Johnathon edited this page Sep 16, 2026 · 1 revision

StackGetItemCount

Pops an item id and pushes the player's current inventory count for it.

Syntax

StackGetItemCount(itemId)

Parameters

itemId
Integer
Item id.

Remarks

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".

Examples

Minimal illustrative encoding (synthetic, not from a real ROM script):

0x00, N           // PushByte(itemId)
0x02, 0x15        // Step -> BytecodeVM_StackGetItemCount

See Also

Applies To

Game Notes
Legacy of Goku 2 Supported

Clone this wiki locally