At the start of my game I have the option to change the main character from male to female, depending on your preference. Each gender has 4 different sprites. These 8 sprites are copied and made smaller for use on the World Map. This means though, that my code when teleporting to different places from the world map is extremely long-winded, using 8 different branches with 8 different switches:
<>Branch if Switch [0001:Azrael Male 1] is ON
<>Change Sprite Association: Azrael Hero 1-1
<>Teleport: 0003:Forest(0003,098), Retain Facing
<>
: Else Handler
<>Branch if Switch [0002:Azrael Male 1] is ON
<>Change Sprite Association: Azrael Hero 1-3
<>Teleport: 0003:Forest(0003,098), Retain Facing
<>
: Else Handler
...and so on.
Is there any way to cut this down, without actually creating 8 different characters for just the one main character???
Obviously, the common events would be the part with all of the branches and such - but it's handled outside of all your teleport events. I don't have RPG Maker installed at the moment (Windows directory decided to kill itself after a power outage, so I had to reinstall) or I would do a screenshot of the process.
Basically, the screen would go dark, you go to your location, your character will change, and the screen is revealed. Nothing too complicated.
Edit: Don't forget to put the <>Show Screen event command as the last command in your common events.