Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
scythe4u

[XP][Solved] NPC's

Question

I'm very new to RPG Maker. I am currently running RPG Maker xp. I get how to make an NPC, how to make them move, show text, show choices and things like that. I'm trying to get an NPC to recognize my character as a boy or a girl. I give the player the choice to be a boy or girl when the game starts and to input their name. Their character graphic changes according to which sex they pick. Now I know you can have an npc show a text line \n[1] to display the player's name, but is there a similar command for the npc to recognize the player's gender? For example if the player walks up to an npc, the npc could say "hello sir, or hello ma'am according to what the player is.

 

 

Thanks for any help.

Share this post


Link to post
Share on other sites

16 answers to this question

Recommended Posts

  • 0

You could make a switch or two for this. If you choose boy, then the boy switch is on. Same thing if you chose girl, I'm kind of doing the same but a little bit different.

Share this post


Link to post
Share on other sites
  • 0

either switches of variables.

 

For switches, just turn on either the switch for boy or girl and use conditionals to follow through, for variables, it's the same except just set Boy=1 and girl=2 so the variable "sex" can be set to that number and you can use conditionals to carry through.

 

I suggest variables for any kind of set up based off of this kind of problem, it saves alot of space, event hough this is just a boy and girl, if you get into a bit more complex eventing you're going to want to use variables alot alot more.

Share this post


Link to post
Share on other sites
  • 0

Yeah, what Nisage said would be a good way to go. It is really simple. Make two switches, on called "Player is Boy" and one called "Player is Girl". Now with your NPC, Make two event pages, each with a switch condition. The conditions are to the left of the event box, above the graphic. Click in there and a condition for the two pages of the event. On the boy page, make the boy stuff, and visa verse. Here is a demo: -almost done-

Share this post


Link to post
Share on other sites
  • 0

Demo: link

 

 

EDIT: I just found out that if you choose pessimism for nature and female for gender, the dude, says the wrong thing, but that has nothing to do with actual errors. :/

Share this post


Link to post
Share on other sites
  • 0

Something like Kiriashi's demo. Also Kiriashi, the Angel event you made in Heaven, it doesn't have the "Player is a girl" switch anywhere, just two "Player is a boy switches for both tabs.

 

Edit: Nice song for background Kiriashi.

Share this post


Link to post
Share on other sites
  • 0

Wow 4mb lets just hope they dont have dialup. 15-20min download if so.

 

Nice demo. Couldn't have done better.

Share this post


Link to post
Share on other sites
  • 0

Need any other help fell free to stop by again.

 

Full edit your first post and add [XP/Solved] in the title before the text.

Share this post


Link to post
Share on other sites
  • 0
Something like Kiriashi's demo. Also Kiriashi, the Angel event you made in Heaven, it doesn't have the "Player is a girl" switch anywhere, just two "Player is a boy switches for both tabs.

 

Edit: Nice song for background Kiriashi.

 

Haha, yeah. I think he gets the idea though. I just spent 2 minutes on it.

 

Song is Nemo sung by Tarja Turunen in the band Nightwish before they became crappy. Seriously, they kicked off my favorite singer ever (Tarja, the girl singing).

Share this post


Link to post
Share on other sites
  • 0
either switches of variables.

 

For switches, just turn on either the switch for boy or girl and use conditionals to follow through, for variables, it's the same except just set Boy=1 and girl=2 so the variable "sex" can be set to that number and you can use conditionals to carry through.

 

I suggest variables for any kind of set up based off of this kind of problem, it saves alot of space, event hough this is just a boy and girl, if you get into a bit more complex eventing you're going to want to use variables alot alot more.

 

 

I understand the switches, but how do I set up and use variables for this?

Share this post


Link to post
Share on other sites
  • 0

The conditional branch when you are making a new event. If variable "gender" is equal to 1, then you are male, if 2 then you are female.

Share this post


Link to post
Share on other sites
  • 0

I am really sorry I'm necro-posting, but I need to know if anyone still has that demo I made, I need it for something. If you do please send it to me, the media-fire link expired.

 

 

Thanks!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...