Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

[Eventing] Make NPC's refer to a renamed character by name?

devmako

Villager
Xy$
0.00
I'm trying to get NPC's to refer to a character that the player names, and the old Ace script doesn't work. Suggestions?
 

Akod

Praised Adventurer
You could use an actor slot in the database combined with the 'name input processing' command and call it with the text \n[#] function. This is what I always used for custom named anything in RPG Maker. Just make sure to never initialize the actor slot or the name will revert to it's default, and make sure to take into consideration the size of the name when max characters is used in your text boxes so it doesn't cut off any text.
 

devmako

Villager
Xy$
0.00
You could use an actor slot in the database combined with the 'name input processing' command and call it with the text \n[#] function. This is what I always used for custom named anything in RPG Maker. Just make sure to never initialize the actor slot or the name will revert to it's default, and make sure to take into consideration the size of the name when max characters is used in your text boxes so it doesn't cut off any text.
Ends up, \p[1] is how it's done, I tried \n[1] or whatever the number was and it just wouldn't work. I finally checked the character creation demo i'd been using to help build my creator and it had that script in it. I appreciate the help though!
 

Akod

Praised Adventurer
I'm glad you figured it out. Just make sure you're aware that \p[#] calls the name of the party member in that party slot, so if the player will have the ability to change the party formation it could change what that function calls.
 
Top