Skip to main content

(189) _ADD_ITEM

Effect

Add an Item to the player's bag.

Syntax

_ADD_ITEM(item, amount, result)
ArgumentDescriptionTypesRequired
itemThe ID of the item to giveWork, FloatRequired
amountthe amountWork, FloatRequired
resultThe work to put the result intoWorkRequired
info

The result parameter is always 1 no matter what.

Example

ev_dummy:
_LDVAL(@SCWK_TEMP0, 7); Dive Ball
_LDVAL(@SCWK_TEMP1, 1); Amount
_ADD_ITEM(@SCWK_TEMP0, @SCWK_TEMP1, @SCWK_ANSWER)

The above script will give the player 1 Dive Ball.