BB get number in pack

From Unofficial QEdit Wiki Guide
Revision as of 08:40, 24 March 2011 by Tofuman (Talk | contribs)

Jump to: navigation, search

Syntax: BB_get_number_in_pack WW

Format

  • WW (Reg) = Get number of items in inventory and set register to value

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

Related

jmpi_=, message, ret, mesend