HI, I am wondering if I got something wrong on the following script.
$gameVariables.setValue(3, $dataItems[$gameVariables.value(1)]);
So what I am trying to do is
Game Variable #3= the quantity of a specific item which is determined by the vaule of Variable 1.
Example1:
Item #1 is a Potion
The player has 3 potions in inventory
I want to set Variable #3 to 3.
Example2:
Item #5 is a Rope
The player has 5 potions in inventory
I want to set Variable #3 to 5.
Thanks.
$gameVariables.setValue(3, $dataItems[$gameVariables.value(1)]);
So what I am trying to do is
Game Variable #3= the quantity of a specific item which is determined by the vaule of Variable 1.
Example1:
Item #1 is a Potion
The player has 3 potions in inventory
I want to set Variable #3 to 3.
Example2:
Item #5 is a Rope
The player has 5 potions in inventory
I want to set Variable #3 to 5.
Thanks.