(310) _ITEM_NAME
Effect
Puts the item name in the Buffer at the given index.
info
If the amount is greater than 1 the plural is used.
Syntax
_ITEM_NAME(index, item, amount)
Argument | Description | Types | Required |
---|---|---|---|
index | The index of the buffer to write the value to | Work, Float | Required |
item | The item ID | Work, Float | Required |
amount | The amount | Work, Float | Required |
Example
ev_dummy:
_LDVAL(@SCWK_TEMP1, 7); Dive Ball
_ITEM_NAME(0, @SCWK_TEMP1)
_TALKMSG('dp_dummy_file%dummy_msg')
The above script will put the item name of Dive Ball in buffer position 0 and then print out the message from dp_dummy_file%dummy_msg
.