Im using " $gameParty.gainItem($dataWeapons[$gameVariables.value(20)], 1, true); " to add a weapon based of a random number.
What I'm wanting to achieve is to display the added weapon in a 'show text' so the player can see what they have received.
I can add a String to a variable using, " $gameVariables.setValue(19, 'String Here'); " and then display that string with " \v[19]. "
But I'm struggling to find the right syntax to be able to add the weapon database entry to the String
I have tried " $gameVariables.setValue(19, '$dataWeapons[$gameVariables.value(20)]') " - Which just displays what is in bold as text.
I have also tried " $gameVariables.setValue(19, $dataWeapons[$gameVariables.value(20)]) " - Which just displays the word 'object'
Any help steering in my the right direction will be greatly appreciated
What I'm wanting to achieve is to display the added weapon in a 'show text' so the player can see what they have received.
I can add a String to a variable using, " $gameVariables.setValue(19, 'String Here'); " and then display that string with " \v[19]. "
But I'm struggling to find the right syntax to be able to add the weapon database entry to the String
I have tried " $gameVariables.setValue(19, '$dataWeapons[$gameVariables.value(20)]') " - Which just displays what is in bold as text.
I have also tried " $gameVariables.setValue(19, $dataWeapons[$gameVariables.value(20)]) " - Which just displays the word 'object'
Any help steering in my the right direction will be greatly appreciated