- Joined
- Jun 6, 2020
- Messages
- 22
- Reaction score
- 7
- First Language
- english
- Primarily Uses
- RMMV
Hi folks 
So im looking for a little help as im abit stumped.
So i am trying to make it so a player can enter a password/code and receive specific item(s).
The code i have so far is this:
if ($gameActors.actor(9).name() == "M")
{
$gameSwitches.setValue(20, true);
}
which works fine for 1 code = 1 item(s).
What i need is something along the lines of:
Password:M = Item(s): 7 gold, 1 sword
Password:S = Item(s): 30 gold, 1 sword, 2 potions
Etc etc.
But i need it to all be in one event, common event. I also need it so each password can only be used once, while the rest of the event/script/passwords remain working until purchased.
Does this make sense?
I am currently not good with variables or the script, which is why im struggling.
Many Thanks
Mat
So im looking for a little help as im abit stumped.
So i am trying to make it so a player can enter a password/code and receive specific item(s).
The code i have so far is this:
if ($gameActors.actor(9).name() == "M")
{
$gameSwitches.setValue(20, true);
}
which works fine for 1 code = 1 item(s).
What i need is something along the lines of:
Password:M = Item(s): 7 gold, 1 sword
Password:S = Item(s): 30 gold, 1 sword, 2 potions
Etc etc.
But i need it to all be in one event, common event. I also need it so each password can only be used once, while the rest of the event/script/passwords remain working until purchased.
Does this make sense?
I am currently not good with variables or the script, which is why im struggling.
Many Thanks
Mat