Getting the names right

Status
Not open for further replies.
Joined
Jan 2, 2014
Messages
21
Reaction score
1
First Language
English
Primarily Uses
Hello all. I come to you today with a small problem. I'm currently working on a project where you have the option of being four different characters. Each character has a their own back story and a few exclusive scenes but the main quest is the same for all of them. (Kinda like Dragon Age) My issue is: when I get to the scenes and maps that they all share, I want NPCs to speak to them by their own names. I don't want to have to make four maps that look the same and send each one to their own map. Is there something in the text box I can use that calls up the current actor's name? I tried the \N[n] but that just uses whoever is the nth in your list of actors, not the actor you're playing as. Any ideas?
 

cabfe

Cool Cat
Veteran
Joined
Jun 13, 2013
Messages
2,353
Reaction score
2,549
First Language
French
Primarily Uses
RMVXA
Even with \N[0] ?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
you can use either conditional branches (lot of work and typing) or one of the advanced messaging scripts (which add more text codes to the game, making this easy) or you can use ruby commands to save names into variables when starting the game (a bit tricky, but doesn't need scripts added).


For most people, the advanced messaging scripts from the master script list would be best, but that depends on how many scripts you want into your game and possible script incompatibilities.
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
Use \P[n] instead, it uses the current party. \N[n] will check the actors in the database, in the order you made them, while \P[n] will check the current party.

Edit: If you hover your mouse over the the textbox that shows up when you click 'Show Text...', you can see all the built-in 'escape' codes you can use. \P[n] is listed right under \N[n]
 
Last edited by a moderator:
Joined
Jan 2, 2014
Messages
21
Reaction score
1
First Language
English
Primarily Uses
Use \P[n] instead, it uses the current party. \N[n] will check the actors in the database, in the order you made them, while \P[n] will check the current party.

Edit: If you hover your mouse over the the textbox that shows up when you click 'Show Text...', you can see all the built-in 'escape' codes you can use. \P[n] is listed right under \N[n]
This is exactly what I needed! I actually did see the list of 'escape codes' but I misunderstood what \P[n] meant. Thanks for clarifying. And thanks to everyone else who answered too :)
 

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.
 
Status
Not open for further replies.

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,072
Members
137,578
Latest member
JamesLightning
Top