【Foxy's】Character Customization

Was it useful?


  • Total voters
    3

FoxySeta

Cleric, script kiddie and fudanshi
Veteran
Joined
May 6, 2017
Messages
270
Reaction score
110
First Language
Italian
Primarily Uses
RMMV
Tutorial topic: how to let the player customize their character (hence the title)
Brief description
Even if I'm not into tutorials about something an extension/studying documentation could do just fine, I've recieved an offer for doing this, so… here comes nothing. Check this tutorial if you'd like the player to choose their character's name/gender (much like in an RPG).​
Template used for this tutorial: Sample Scripted-based UI, 720 x 1280 (my patron wants to develop a mobile game)
Requirements
  • Having read the Beginner's Guide. I can't help you either otherwise.
Tutorial body
  • Gender selection (in new scene)
    1. First of all, we need to ask the player about their gender. Here's a possible set up:
      Setup 0.PNG Screenshot 0.PNG
    2. Next is the player's choice. Since the we are considering only binary genders (he and she), the player has only two choices: switches are the perfect type of variable in these cases (just consider OFF = "Boy" and ON = "Girl"). Also, we want the game to remember this piece of information for the entire duration on the game (you may need the player's gender anytime during the story), but still having a different copy of it for each save file (no every save file's character may have the same gender); because of that, we are going to use a global switch. I named it "Gender". Please note that while the second choice switches on the desired switch in my example, I haven't set up an action for the first one instead. While it apparently should switch OFF "Gender", all of the switches are automatically initialized at OFF at the start of the game. If you find this coding style too obscure or simply desire to use this scene more than once in your game, just switch it OFF manually at some point before "Show Choices".
      Setup 1.PNG Screenshot 1.PNG
    3. All done! Of course, memorizing the player's gender is pointless, if you don't use it later at some point of the game. Here's an example:
      Setup 2.PNG
    4. Please keep in mind that if your otome is not one of those that never show the MC on screen (like Doki Doki Literature Club for example), you'll need to use this tecnique every time you need to choose your MC's expression, since VNM doesn't let you calculate an expression without scripting (up to 1.0.1077). If you do so, it is higly recommended that you shorten your code using command events.
  • Name input (either in the same scene or not)
    1. First of all, we need to ask the player their name. Here's a possible set up (in a new scene):
      Setup 3.PNG Screenshot 3.PNG
    2. Next is the player's input. We need to save it in a text variable before transferring it to our character. Since we won't need this variable again later, we should use a local text variable. Please notice how the default text input popup window is not optimized for our current resolution. You can fix this using either a better resolution (which will end up making the message box smaller though) or a custom interface which is more suited for our custom resolution.
      Setup 4.PNG Screenshot 4.PNG
    3. It is now time to create our MC: let us move to the database and work on it!
      Setup 5.PNG
    4. After saving your project (so that VN Maker can notice there's a new character), it's finally time to transfer the player's input where we really want it to be.
      Setup 6.PNG
    5. All done! I'm testing to see if it really worked.
      Setup 7.PNG Screenshot 7.PNG Screenshot 8.PNG
Patron: @Valadilene
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

So I need to come up with quite a few action sequences.
Was stressing about this plugin earlier, but pretty happy with how its looking now! Purple makes it pop more too!! :)
A friend requested me to do a pfp for his twitch channel, so far he approved one of my sketches, so going to digital now. The style he's looking for is quite different from my usual, hopefully I can get it right... :kaoback:
I am so hyped! A new post update and im anxious to see reactions..eeeeeeee

Forum statistics

Threads
105,483
Messages
1,014,057
Members
137,127
Latest member
noicchi
Top