I've tried several scripts and none of them will read any variables. They keep outputting the variable names instead. I've dug through tons of forums and can't find any answers.
What I want:
Control Variables : #0022 RanLoot 2 = Random 200...208 (works)
var itemID = $gameVariables.value(22); (works)
$gameParty.gainItem($dataArmors[itemID], 1); (works)
Text: "You found $dataArmors[\V[22]].name!" (does no work)
-----------------------------
What I've tried:
var itemID = $gameVariables.value(22);
$gameMessage.add("\\C[7]You found \\C[17]\\V[itemID]!");
Text:
\C[7]You found \C[17]$dataArmors[\V[22]].name! (Outputs the entire command)
$dataArmors($gameVariables.value(22)).name; (returns that $dataArmors is not a function)
$gameMessage.add('You found \\V[22]!'); (Outputs variable value)
var itemID = $gameVariables.value(22);
$gameParty.gainItem($dataArmors[itemID], 1);
$gameMessage.add("You found" $dataArmors[itemID]"!"); ( gives: Missing ) syntax error after argument)
What I want:
Control Variables : #0022 RanLoot 2 = Random 200...208 (works)
var itemID = $gameVariables.value(22); (works)
$gameParty.gainItem($dataArmors[itemID], 1); (works)
Text: "You found $dataArmors[\V[22]].name!" (does no work)
-----------------------------
What I've tried:
var itemID = $gameVariables.value(22);
$gameMessage.add("\\C[7]You found \\C[17]\\V[itemID]!");
Text:
\C[7]You found \C[17]$dataArmors[\V[22]].name! (Outputs the entire command)
$dataArmors($gameVariables.value(22)).name; (returns that $dataArmors is not a function)
$gameMessage.add('You found \\V[22]!'); (Outputs variable value)
var itemID = $gameVariables.value(22);
$gameParty.gainItem($dataArmors[itemID], 1);
$gameMessage.add("You found" $dataArmors[itemID]"!"); ( gives: Missing ) syntax error after argument)