Changing a messages graphics based on a variable

Status
Not open for further replies.

Stupidbro

Veteran
Veteran
Joined
Jul 8, 2019
Messages
87
Reaction score
8
First Language
English
Primarily Uses
RMVXA
Last time I ran into this problem, I tried to avoid using scripts because they were intimidating, but my antiscript solution ended up being tedious and not looking as nice as it could have. I'm hoping that someone here could help me out with this:

The basic idea is that you, the player, can choose the gender of the character, which changes the graphic sprite used. That's easy enough. Where I run into issues is trying to include dialogue that the player character is involved in. Long story made short, I want to know if I could use a script call to create the message box as normal with the picture being controlled by a variable.
 

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
441
Reaction score
1,405
First Language
Indonesia
Primarily Uses
RMMV
It's been a long time since I use VX Ace, but I think it's doable with switch.
Basically you can turn on certain switch based on your gender selection.
If you choose male, turn on "Male" switch. If you choose female, turn on "Female" switch.
In every dialogue where the character is involved, you can put conditional branch.

If "Male" is on, show a text message with male face.
If "Female" is on, show a text message with female face.

It might be somewhat tedious if the character have many dialogues in the game,
but it's the only way I can think of. Maybe there's a better way I don't know of.

Hope this helps!
 

Stupidbro

Veteran
Veteran
Joined
Jul 8, 2019
Messages
87
Reaction score
8
First Language
English
Primarily Uses
RMVXA
It's been a long time since I use VX Ace, but I think it's doable with switch.
Basically you can turn on certain switch based on your gender selection.
If you choose male, turn on "Male" switch. If you choose female, turn on "Female" switch.
In every dialogue where the character is involved, you can put conditional branch.

If "Male" is on, show a text message with male face.
If "Female" is on, show a text message with female face.

It might be somewhat tedious if the character have many dialogues in the game,
but it's the only way I can think of. Maybe there's a better way I don't know of.

Hope this helps!
I'd considered that, but it's incredibly inefficient and doesn't really solve the greater problem.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,433
Reaction score
7,712
First Language
German
Primarily Uses
RMMV
you need to add a message script that has those options - it can't be done with a simple script call, but there are more than enough people who wanted the same for it to be included as textcode uptions in messaging scripts (basically a textcode to use a face based on party/actor data).

the most commonly used are Modern Algebra's Advanced Text System or Yanfly's Message Script.
I consider the ATS to be the better one (has much more animation options), but others prefer Yanfly's because they already have other scripts from him installed.
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
151
Reaction score
42
First Language
German
Primarily Uses
RMVXA
Try Hime's "Placeholder Graphics" script, it should do exactly what you want. Link here
 

Stupidbro

Veteran
Veteran
Joined
Jul 8, 2019
Messages
87
Reaction score
8
First Language
English
Primarily Uses
RMVXA
you need to add a message script that has those options - it can't be done with a simple script call, but there are more than enough people who wanted the same for it to be included as textcode uptions in messaging scripts (basically a textcode to use a face based on party/actor data).

the most commonly used are Modern Algebra's Advanced Text System or Yanfly's Message Script.
I consider the ATS to be the better one (has much more animation options), but others prefer Yanfly's because they already have other scripts from him installed.
Try Hime's "Placeholder Graphics" script, it should do exactly what you want. Link here
I'll look into these and get back to you. Thanks!

Edit:
If anyone else has this problem, there's also an option here:
 
Last edited:

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,479
Members
137,824
Latest member
dobratemporal
Top