Question about code for changing clothes

What is the best way to implement a clothing system with the following parameters.

I want my Main Character to have a closet and obtain clothes (not necessarily stat based clothes, just looks that affect how people interact with him).

He goes to the closet and selects Casual, Business or Athletic clothes. If he goes to work in Athletic clothes people notice and their comments are altered. If he goes to the gym in business clothes he can't even start the event to work out.

I'm sure its probably a variable for checking what set he is wearing and some script type to for an event at the closet to change clothes, but I just started and its not "common" knowledge for me how best to do it.

Anyone have an example map?

I've moved this thread to MV Support. Thank you.



You really don't need any code. You will need the separate graphics of the character wearing the different clothes. Then, you can use choices and have the actor graphic change to the character wearing that outfit when it is selected.

In order to effect how NPCs react, you can set a variable when the outfit is selected (var = 1 for casual, var = 2 for business, etc). Then have the NPC event check the variable and react based on that.

edit: Just to make it a bit more clear, I've made a mockup of how the events might look. Please note, I chose the same graphic for the Change Actor Image, just out of laziness. You would need to actually select whatever graphic is appropriate for that outfit.

Spoiler
clothes_help_01.png
clothes_help_02.png
You can also turn on a switch when the changing clothes event takes place.
It can be done by showing choices on the closet.
When you choose athletic for example, create switch commands:
-Athletic ON
-Business OFF
-Casual OFF

Then create NPCs with multiple event pages.
The one with athletic switch turned on, the one with business turned on, and so forth.

Hopefully this can help you. 😀
You people rock!! Thanks so much!!
Where do I find the "If" statement shown above?
"Conditional Branch" on page 1 of event commands.
I'm a doofus! I was looking all over for "If/then" should have picked up on "Conditional"


Thanks Logan!

Original thread: https://forums.rpgmakerweb.com/threads/question-about-code-for-changing-clothes.88411/