Difference between revisions of "Open pack select"
From Unofficial QEdit Wiki Guide
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:red'>open_pack_select </span></span> * Opens the item pack to select an item. ==Us...") |
(→Also see) |
||
Line 20: | Line 20: | ||
==Also see== | ==Also see== | ||
− | [[window_msg]], [[ret]], [get_item_id]], [[winend]], [[get_item_info]], [[Jmpiue]] | + | [[window_msg]], [[ret]], [[get_item_id]], [[winend]], [[get_item_info]], [[Jmpiue]] |
Latest revision as of 23:28, 27 March 2021
Contents
Syntax
Syntax: open_pack_select
- Opens the item pack to select an item.
Use
Used with get_item_id 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 //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