Difference between revisions of "Get item id"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:red'>get_item_id </span>register1</span> * ''register1'' = Puts the item's slot val...")
(No difference)

Revision as of 23:02, 27 March 2021

Syntax

Syntax: get_item_id register1

  • register1 = Puts the item's slot value into a register.

Use

Used with open_pack_select to determine the slot value of the item the player selects, often followed by get_item_info to get the item's full information.


Example


100:     open_pack_select  R100//Opens the player's inventory for them to select an item.
         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