[HELP] How do I store character´s name into variable?

Gilink

Villager
Member
Joined
Nov 17, 2015
Messages
6
Reaction score
0
First Language
Portuguese
In the game player can choose character´s name. Using the command that let they type name just like in Zelda series. Then I want to store this name into a var for future use. It let me do things like letting the player to give fake names to npcs and compare with the var stored name and see if he is lying. I know how to make all the process except for the name storing into var thing.
 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Control Variables: [001: Real Name] = Script: $gameActors.actor(n).name


where n is the actor id (no leading zeros).
 

Gilink

Villager
Member
Joined
Nov 17, 2015
Messages
6
Reaction score
0
First Language
Portuguese
Control Variables: [001: Real Name] = Script: $gameActors.actor(n).name

where n is the actor id (no leading zeros).
where do I use this code?

EDIT

GOT IT! THANK YOU SO MUCH!

EDIT 2

When I use the \V[number of the var with no leading zero]  comand to show the name on message it just appear the code function(){return this._name;] then the message. should I use this code in any place to actually show the name?
 
Last edited by a moderator:

Gilink

Villager
Member
Joined
Nov 17, 2015
Messages
6
Reaction score
0
First Language
Portuguese
sorry - $gameActors.actor(n).name()
Name appear but there is a zero besides it. Do you know what could be the problem? almost solved!

EDIT

for some reason the zero just disappeared without I doing anything. XD Thanks for all the help.
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top