Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Change Actor Name Question

Nolund

Sponsor

Alright, so, I'm making a small project for a website I frequent (sort of a little gift for the community sort of thing) and I have no desire to go all out with it, so for the most part it will be RTP. However, I have likely a relatively simple question, but since my experience is mostly with XP, I don't know if I need a script for it or not.

Simply put, I want to have it so players can choose the name of the actor (easy enough, I know that part no problem), but I want to have NPCs interact with said character, and I don't really know what I need to put to recall the name inputted by the player.

So yeah...might be a dumb question with a simple answer, but I am gonna have to ask it anyway.
 

Nolund

Sponsor

/facepalm

I knew it was something easy like that, but it's been a few weeks since I last used RPG Maker (any version) and I kept putting /n instead of \n.

Anyway, should've made it more clear in my initial question, but I'll pose it again here.

I have it set so players can choose between male and female characters as well. I use switches to set it so every time a player talks the appropriate face comes up, and NPCs and enemies use the appropriate name. correct?
 
Well frankly I think I need to know more. Are you asking that when the Player speaks his face shows up in the MESSAGE box, next to his Text. Or would you rather have it show up on screen? Answer this and I can give an answer, for i know how to do both and more. Also everything I can tell you applies to all NCPs too. You could use a switch, but if you want is within one of the questions i asked, it could be done a different way. It will save you a switch(s) and alot of space on your game.
 

Nachos

Sponsor

I would do something like:
Whne game starts choose:
Code:
 

-Male---->Sets 001Variable to  "1"

-Female-->Sets 001Variable to  "2"

Sets name.

 

Then recall that as:

 

If 001Variable = 1

  Text: \n[x], You're a guy

 Else

Text: \n[x], You're a girl

End

In the "Add text" function on the events tab, press F1 and a message will pop telling hints like \n 
 
@Nachos: Well to be honest you only have to set the Variable to one if they pick a male. If they pick female then you could leave it lone. The Conditional branch will still work because when you pick female the variable will be set as zero. But other than that, it's fine.

But I'm kinda waiting for Nolund to reply so i can help him farther, but he doesn't need it, then i'd hope he'd tell us and put this topic as resolved.
 
Def could do with a switch, but either way is good. a switch is proably better for this sit. If you were asking them to choose a race for the Character, then a variable would be better. You'd have more races than two so a switch wouldn't work unless you had more than one.
 

Nolund

Sponsor

Yeah, sorry for the late reply. No laptop right now (my hard drive and RAM are completely fried) and I forgot I made this topic.

I'm doing it with variables, and I changed how my message system works. So rather than having to say \n 
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top