Changing individual parts of a actor bio

Fylnn

Warper
Member
Joined
Oct 10, 2013
Messages
3
Reaction score
0
First Language
English
Primarily Uses
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 :p
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Link to the script, please.
 

Venima

Treasure experiences and sensations, not progress.
Veteran
Joined
Oct 8, 2013
Messages
128
Reaction score
48
First Language
English
Primarily Uses
N/A
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.
 

Fylnn

Warper
Member
Joined
Oct 10, 2013
Messages
3
Reaction score
0
First Language
English
Primarily Uses
Last edited by a moderator:

Fylnn

Warper
Member
Joined
Oct 10, 2013
Messages
3
Reaction score
0
First Language
English
Primarily Uses
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 :p but it could work

tnx :)

ps. if anyone has a better idea, of has the aforementioned script, don't hesitate to post :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top