Difference between revisions of "Barebones function 30001"
Japanaman2 (Talk | contribs) |
(No difference)
|
Revision as of 00:52, 24 April 2013
Contents
Barebones function 30001
Function 30001: 30001:
- Function 30001 = Part of item create delete.
Item create delete
Barebones function 30000 = Function 30000 makes all registers used in item creation and deletion equal 00000000.
Barebones function 30001 = Function 30001 gets the current number of items in the players inventory and stores the value in register 79. Then checks if they have no more space in their inventory if they do not have any space left display an error message by jumping to function 300002.
Barebones function 30002 = Function 30002 display an error message when a players inventory is full.
Use
Function 30001 gets the current number of items in the players inventory and stores the value in register 79. Then checks if they have no more space in their inventory if they do not have any space left display an error message by jumping to function 300002.
How the function appears in the script
30001: BB_get_number_in_pack R79 //Gets the current number of items in the players inventory and stores the value in register 79.
jmpi_= R79, 0000001E, 30002 //If register 79 equals 0000001E (30) jump to function 30002.
ret