Changing individual parts of a actor bio

A bit of a stretch i know, but its quite important to me.

You see i got the Ace status menu Script form Yanfly, and with it i can change the characters bio,

but i don't want to change all of it, just sentences, and no this isn't a one time thing, i cant re-write the text.

look at it like this.

Gerald of Salasam went ''changeable part that depends on ingame values'' he saw ''another changeable part'' 

then he'' another changeable part''... you get where im going with this?

there are tons of paths and variations, so individually writing all the combinations is impossible.

so i need a way to change part of a characters bio via script.

Any help is much appreciated 🙂  

ps. the Gerald text is just a example, not real game content 😛
Link to the script, please.
and no this isn't a one time thing, i cant re-write the text.
Will this bio change as the game progresses, and will the player be able to view it before all of the choices have been made?

Could you store the "choices" in variables temporarily until it's complete and then use a script to construct the bio once all the choices have been made?

I'm no good with regex in ruby, so I won't be writing the script myself, however to start you off...

I suggest setting the actor's bio to a template bio like the following:

"Gerald of Salasam went <0> he saw <1> then he <2>".

The rest would be a simple find and replace script similar to: replaceBio(actorID,"<0>","your bio section"). For each section of the bio, I recommend a dedicated common event with a list of conditional branches (querying an in-game variable) to determine which one is chosen.

If at any point you need to re-alter the bio, you reset it back to the template first, then using the in-game variables I mentioned, re-enter the sections.
Link to the script, please.
https://dl.dropboxusercontent.com/u/17078211/Scripts/YEA/Ace_Status_Menu.rb

but i think there might be slightly irrelevant, as i do believe i would need a new menu script.

im thinking to replace the party member select menu with a character bio menu as i don't think

party member management will be necessary in the game, and i would like to put more focus on the main character.
Will this bio change as the game progresses, and will the player be able to view it before all of the choices have been made?

Could you store the "choices" in variables temporarily until it's complete and then use a script to construct the bio once all the choices have been made?

I'm no good with regex in ruby, so I won't be writing the script myself, however to start you off...

I suggest setting the actor's bio to a template bio like the following:

"Gerald of Salasam went <0> he saw <1> then he <2>".

The rest would be a simple find and replace script similar to: replaceBio(actorID,"<0>","your bio section"). For each section of the bio, I recommend a dedicated common event with a list of conditional branches (querying an in-game variable) to determine which one is chosen.

If at any point you need to re-alter the bio, you reset it back to the template first, then using the in-game variables I mentioned, re-enter the sections.
yes, i think that might work, ill give it a try, 

i was going for the variable option, using common events, and conditional branches with variables to alter the character bio depending a path he chose. 

so yh, that might work, it would take some effort since im a dunce at ruby 😛 but it could work

tnx 🙂

ps. if anyone has a better idea, of has the aforementioned script, don't hesitate to post 🙂
Fylnn, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


To quote several people and reply all at once, use the MulitQuote button in the lower right corner of each post.

Original thread: https://forums.rpgmakerweb.com/threads/changing-individual-parts-of-a-actor-bio.18908/