Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
kimayushi

Character face display help.

Recommended Posts

Okay, I'm working on a project in RMVX and I'm going to set it up so that you can choose your gender. My question is, is there any way to call your character's face in a conversation without manually placing the graphic?

Share this post


Link to post
Share on other sites

Oh, I read something about something like this yesterday, I'm pretty sure you can script it to call the face graphic that matches the index of the actor that you want to use, I'm not familiar with RMVX hardly at all since I prefer RMXP. If I had VX handy I'm sure I could figure something out to make it simple. It shouldn't be to hard, if I was doing this in RMXP I would start by creating a hash that references the array of actors (in the database) and make it hold the data for the face graphic you want to use the rest would be placing the graphic on the screen, you'd have to call the class that the hash was created in, in the event editor. I don't know how it works in RMVX with RGSS2, RGSS2 is supposed to be a cut back and simplified version of RGSS, and I'm not entirely sure if that's how it can be done in RMXP since I haven't actually tried it. Maybe one of the scripting pros on here like Leon or Polraudio could help better since I'm just learning how to script myself.

 

I'm attempting to do something like this with RMXP now just to give a general idea of what I'm talking about. Though if you don't want to manually place the graphic for every time a conversation, you'll most likely need to learn how to script it. I'll get back when I figure out how to do it with what I have.

Edited by Crym

Share this post


Link to post
Share on other sites

Not that I know of but, as I said I'm not really familiar with RMVX. You could probably do a conditional branch in a common event that would place the graphic of the actor you want to show up and have it set a variable 0 = before you choose a gender 1 = female actor 2 = male actor the conditional would test if an actor is in the party and if so set's it to that value then you would have 2 pages in your conversation event's one for female and one for male. Though this doesn't work if you have both of them in your party at once and would also only place the graphic of one character throughout the game which would probably cut work down a lot when you get that done. Though with the scripted method that I was talking about before it would show for every character in the database leaving only NPCs the needed placement of their face graphic.

Share this post


Link to post
Share on other sites

Not that I know of but, as I said I'm not really familiar with RMVX. You could probably do a conditional branch in a common event that would place the graphic of the actor you want to show up and have it set a variable 0 = before you choose a gender 1 = female actor 2 = male actor the conditional would test if an actor is in the party and if so set's it to that value then you would have 2 pages in your conversation event's one for female and one for male. Though this doesn't work if you have both of them in your party at once and would also only place the graphic of one character throughout the game which would probably cut work down a lot when you get that done. Though with the scripted method that I was talking about before it would show for every character in the database leaving only NPCs the needed placement of their face graphic.

 

Okay, Thank you. ^.^

Share this post


Link to post
Share on other sites

Okay, Thank you. ^.^

I'm going to try to look into it more see if there's a better way to do it but I think the common event would be the easiest without scripting. I might try to download a trial RMVX just for this not sure what good it will do.

Hope that it does what you wanted it to.

 

Edit, seems that I was making it way harder than it really is. You'll have to set it every time but you can have it set depending on the characters gender.

Create a common event with a conditional branch

Should look something like this:

 

@>Conditional Branch: [Ralph] is In the Party
 @>Control Variables: [0001:gender] = 1
 @>
: Else
  @>Conditional Branch: [Ylva] is In the Party
    @>Control Variables: [0001:gender] = 2
    @>
  : Branch End
 @>Control Variables: [0001:gender] = 0
 @>
: Branch End
@>

 

Only yours would have your characters names instead of Ralph and Ylva

You would then have the 2 pages in the each event conversation with the conditions variable [0001:gender] then it would depend on what gender you had on 1 and 2 (my example was male = 1 female = 2)

Edited by Crym

Share this post


Link to post
Share on other sites

I'm going to try to look into it more see if there's a better way to do it but I think the common event would be the easiest without scripting. I might try to download a trial RMVX just for this not sure what good it will do.

Hope that it does what you wanted it to.

 

the funny thing here is that I downloaded the RMVX a week ago and knew nothing about it. Now with every day that passes I learn a little more. I will definitely look into the common event conversation i just know if I do it that way it'll take a bit longer, but I'll do just about anything I have to to try and make this game the best I can make it.

Share this post


Link to post
Share on other sites

I'm going to try to look into it more see if there's a better way to do it but I think the common event would be the easiest without scripting. I might try to download a trial RMVX just for this not sure what good it will do.

Hope that it does what you wanted it to.

 

Edit, seems that I was making it way harder than it really is. You'll have to set it every time but you can have it set depending on the characters gender.

Create a common event with a conditional branch

Should look something like this:

 

@>Conditional Branch: [Ralph] is In the Party
 @>Control Variables: [0001:gender] = 1
 @>
: Else
  @>Conditional Branch: [Ylva] is In the Party
    @>Control Variables: [0001:gender] = 2
    @>
  : Branch End
 @>Control Variables: [0001:gender] = 0
 @>
: Branch End
@>

 

Only yours would have your characters names instead of Ralph and Ylva

You would then have the 2 pages in the each event conversation with the conditions variable [0001:gender] then it would depend on what gender you had on 1 and 2 (my example was male = 1 female = 2)

 

Okay cool thanks but you said I would have to use the character's name...I have a problem there as well...The player can input the name. What would I do then?

Share this post


Link to post
Share on other sites

Make a common name. Name the first character MALE and the second FEMALE. RPGVX is inteeligent enough that it recognizes the actor ID, not the name. If they rename the characterr, the event would still be called for the gender. Hope this helped :) .

Share this post


Link to post
Share on other sites

Make a common name. Name the first character MALE and the second FEMALE. RPGVX is inteeligent enough that it recognizes the actor ID, not the name. If they rename the characterr, the event would still be called for the gender. Hope this helped :) .

 

It did thank you very much.

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...