if ($gameVariables.value(2).match('w')) $gameParty.gainItem($dataWeapons[$gameVariables.value(1)], 1);
if ($gameVariables.value(2).match('a')) $gameParty.gainItem($dataArmors[$gameVariables.value(1)], 1);
if ($gameVariables.value(2).match('i')) $gameParty.gainItem($dataItems[$gameVariables.value(1)], 1);
if ($gameVariables.value(2).match('w')) $gameParty.gainItem($dataWeapons[$gameVariables.value(1)], 1);
if ($gameVariables.value(2).match('a')) $gameParty.gainItem($dataArmors[$gameVariables.value(1)], 1);
if ($gameVariables.value(2).match('i')) $gameParty.gainItem($dataItems[$gameVariables.value(1)], 1);