Get item info
From Unofficial QEdit Wiki Guide
Contents
Syntax
Syntax: get_item_info register1, register2
- register1 = Takes the value used from get_item_id
- register2 = Starts the string of registers to put the item's data in.
Use
Used with open_pack_select to determine the slot value of the item the player selects, often followed by get_item_id to get the item's full information.
Registers
The below registers follow the register that is used for get_item_info.
For example if you use get_item_id 100,110 //The item will get put in the registers including 110 and the next 11 registers.
- register110 = Item Value (0 for weapon, 1 for armor/shield, 2 for mag, 3 for tool)
- register111 = 2nd byte for the item
- register112 = 3rd byte for the item (will be the special for an s-rank)
- register113 = Next byte of the item if applicable
- register114 = Next byte of the item if applicable
- register115 = Next byte of the item if applicable
- register116 = Next byte of the item if applicable
- register117 = Next byte of the item if applicable
- register118 = Next byte of the item if applicable
- register119 = Next byte of the item if applicable
- register120 = Next byte of the item if applicable
- register121 = Next byte of the item if applicable
Example
100: open_pack_select //Opens the player's inventory for them to select an item.
get_item_id R100//Stores the player's selection in R100.
jmpi_= R100, FFFFFFFF, 200//If the player cancels the selection.
get_item_info R100, R110//Stores the player's selection from open_pack_select into R110.
ret
200: window_msg Canceling your selection I see?//Cancels their selection.
winend R100//Closes the window message.
ret
Also see
window_msg, ret, open_pack_select, winend, get_item_info, Jmpiue