Get stackable item count
Syntax: get_stackable_item_count register1, register2
- register1 = Start of continuous registers.
Continuous registers list.
Register 1 = Player slot number
Register 2 = Item hex data to check byte 1.
Register 3 = Item hex data to check byte 2.
Register 4 = Item hex data to check byte 3.
- register2 = register to store the current number of stackable items the player has in their inventory.
Used to store the current number of a defined stackable item the player has in their inventory into a register.
100: let R1, R250 //Makes register 1 = R250, where the player slot is stored leti R2, 00000003 //Makes register 2 = 00000003. (Item hex byte data 1.) leti R3, 00000010 //Makes register 3 = 00000010. (Item hex byte data 2.) leti R4, 00000002 //Makes register 4 = 00000002. (Item hex byte data 3.) get_stackable_item_count R1, R5 //Gets the current number of the defined stackable item in the defined player's inventory, starting at continuous register 1 through register 4, and stores the value of the item defined in register 5. window_msg Player in slot <r1> has <r5> photon crystals remaining. //Displays a window message. winend //Closes the window message. ret