BB get number in pack

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: BB_get_number_in_pack register

  • Register = Register to set

Use

Used to count the number of items in your inventory.

Example


100:     BB_get_number_in_pack  R10 //Set R10 to number of items in inventory.
         jmpi_= R10, 0000001E, 101 //If R10 equals 30 jump to function 101
         ret
101:     message 00000050, 'Your inventory is full.'
         mesend
         ret

Also see

jmpi_=, message, ret, mesend