This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
remove_item [2018/03/16 09:47] – justin | remove_item [2020/02/23 21:13] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Removes the specified item from the player' | + | Removes |
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | remove_item(item_name) | + | remove_item(item_id, count) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |item_name|Name of the item to remove | + | |item_name|ID of the [[item]] (as defined in the [[Item Editor]]).|[[String]]|Yes| |
+ | |count|How many of the [[item]] to take from the player (defaults to 1).|[[Number]]|No| | ||
====Example: | ====Example: | ||
- | < | + | < |
- | remove_item(" | + | remove_item(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> |