To give armor:
$gameParty.gainItems($dataArmors(X));
replace X with the ID of the armor you want to give.
To give a weapon:
$gameParty.gainItems($dataWeapons(X));
again, replace X with the ID of the weapon you want to give.
View attachment 141152
The 'Show Text' command is there to let the player know they have received an item.
This is a common event. Call the common event from a local event:
View attachment 141153
Can i get some question one more?
your image's script
var armor = $gameVariables.value(299);
$gameParty.gainItem($dataArmors[armor], 1);
like this
but i was testing
var item = $gameVariables.value(299);
$gameParty.gainItem($dataArmors[item], 1);
and that is working too
what is different var OOO dataAAA[OOO] 's OOO?
and...
$gameParty.gainItems($dataArmors(X));
replace X with the ID of the armor i want to give.
what is this exactlly???
if i put the number in X to 233
then i can get ID 233's armor?
If what I think is right
var item = this is a script for Replace the letter or number after "=" with the letter item.
In this case, variable. with random 201~231
and
$gameParty.gainItems($dataArmors(X));
here's X, in this case, word "item".
so am i right them
$gameParty.gainItems($dataArmors(item));
is
$gameParty.gainItems($dataArmors(random 201~231));
and get the item $dataArmors ID 201~231 chosen that right?
I don't speak English very well so I hope you understand.