Keeping player name/avatars DRY

ashes999

Uber Coder
Veteran
Joined
May 18, 2012
Messages
114
Reaction score
6
First Language
English
Primarily Uses
Hi,

I had a problem in my first released game where I had a character (major or main/player) in a bunch of conversations; each message box had their name and avatar. Then, when I changed their name/avatar, I had to manually find each and every event in my game with that person, and change it by hand.

Aside from time-consuming, this was very error-prone and required way too much testing effort.

Is there a way to keep this information DRY (Don't Repeat Yourself)? Can I store it in some sort of variable/global which I can then use in each message/conversation with that character?

How do other people solve this?

Edit: I ended up using character references (eg. \N[1]) and Yanfly's Message System for avatars (eg. \af[1])
 
Last edited by a moderator:

Clord

Nya~
Veteran
Joined
Aug 5, 2012
Messages
2,358
Reaction score
385
Primarily Uses
Use command in textbox to call name from Actor's ID.
 

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
you should be able to use \N[x] where x is the id of the actor. That will put actor x's name. If you mouse over the text field in the message boxes when you're typing in them, a pop up help window will appear with a bunch of neat little codes like that :)
 

ashes999

Uber Coder
Veteran
Joined
May 18, 2012
Messages
114
Reaction score
6
First Language
English
Primarily Uses
you should be able to use \N[x] where x is the id of the actor. That will put actor x's name. If you mouse over the text field in the message boxes when you're typing in them, a pop up help window will appear with a bunch of neat little codes like that :)
That solved it, thanks.
 

Shaz

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

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Reopened at OP's request
 

ashes999

Uber Coder
Veteran
Joined
May 18, 2012
Messages
114
Reaction score
6
First Language
English
Primarily Uses
For anyone who stumbles upon this later, I ended up using character references (eg. \N[1]) and Yanfly's Message System for avatars (eg. \af[1]). There are also other message system mods that allow referencing avatars through code.
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top