I want to add or remove an item which id is defined by certain variable (variable #1 for example)
I tried using those scripts:
$gameParty.gainItem($dataItems[$gameVariables[1]], 1)
$gameParty.gainItem($gameVariables[1], 1)
But it didn't work.
But when I use this
$gameParty.gainItem($dataItems[1], 1)
It still gives an item with id#1
Is there any way to do this?
I tried using those scripts:
$gameParty.gainItem($dataItems[$gameVariables[1]], 1)
$gameParty.gainItem($gameVariables[1], 1)
But it didn't work.
But when I use this
$gameParty.gainItem($dataItems[1], 1)
It still gives an item with id#1
Is there any way to do this?