Difference between revisions of "Item delete21CF"
From Unofficial QEdit Wiki Guide
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:red'>item_delete21CF </span>DWORD</span> * ''DWORD'' = Deletes the slot ID provided...") |
(No difference)
|
Latest revision as of 01:55, 14 July 2021
Contents
Syntax
Syntax: item_delete21CF DWORD
- DWORD = Deletes the slot ID provided, or register value.
Use
Use this opcode if you want to delete a specific slot ID in a player's inventory, use of a register is accepted too. Sega uses this often in Gallon's Shop to delete an item, then recreate a new one with item_create2 to change its properties, such as an s-rank.
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.
item_delete21CF R100//Deletes the item stored in R100.
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, item_create2