(190) _SUB_ITEM
Effect
Remove an Item from the player's bag.
Syntax
_SUB_ITEM(item, amount, result)
| Argument | Description | Types | Required |
|---|---|---|---|
| item | The ID of the item to remove | Work, Float | Required |
| amount | the amount | Work, Float | Required |
| result | The work to put the result into | Work | Required |
info
The result parameter is always 1 no matter what.
Example
ev_dummy:
_LDVAL(@SCWK_TEMP0, 7); Dive Ball
_LDVAL(@SCWK_TEMP1, 1); Amount
_SUB_ITEM(@SCWK_TEMP0, @SCWK_TEMP1, @SCWK_ANSWER)
The above script will take away 1 Dive Ball from the player's bag.