Hello, sorry for asking this as I feel like this is a rather simple question. I'm trying to create a visual novel and it seems like i'm getting stuck right at the start. I've watched the tutorials and googled around for an answer, but I can't find anything solid to implement in my code. I'm trying to give the player an opportunity at the start of the game to enter in a name (I'm using a text input sequence within a line of dialogue)
This is what my dialogue entry for this line looks like, with the text input sequence and the script.
I'm unsure if how I have it currently formatted is working or not since I can't see what the player name is in runtime. In addition to this, I'm hoping that I can call the player name in the following message and have it change depending on what the user inputs, but I don't know how to go about doing that. And will I need to save this input name to some secondary script or variable to make it persistent or will this keep it permanently updated? If anyone could provide insight I would greatly appreciate it, sorry for the nooby question, but thanks for your time.
How to Change and Store Player Name And Call it in text
Re: How to Change and Store Player Name And Call it in text
Hi,
Please see: How To: Read Input From Player During Conversations
This will store the player's name in the Dialogue System's Actor[] table. The Actor[] table is included in saved games if you use the save system.
Please see: How To: Read Input From Player During Conversations
This will store the player's name in the Dialogue System's Actor[] table. The Actor[] table is included in saved games if you use the save system.
Re: How to Change and Store Player Name And Call it in text
Hello, thank you very much for your reply, I really appreciate it. I tried following the advice in the link however I was still running into issues where the PlayerName variable wasn't saving for some reason even upon text entry. I compared all of the settings between my file and the example scene listed in the link but for some reason mine wasn't working and the example scene was. I'll look into it a bit more but since I'm right at the start I'll probably restart and test until I can get it working.
One issue i'm having though still is:
I got this when trying to use this example code that was given: if you have any idea why I'm receiving this error any assistance would be greatly appreciated. Sorry for bothering you, but thank you very much for your assistance. I hope you're having a great holiday season.
One issue i'm having though still is:
I got this when trying to use this example code that was given: if you have any idea why I'm receiving this error any assistance would be greatly appreciated. Sorry for bothering you, but thank you very much for your assistance. I hope you're having a great holiday season.
Re: How to Change and Store Player Name And Call it in text
Hi,
Regarding the ChangeActorName() warning, that was a typo in the HOWTO article. I just fixed it. ChangeActorName() should be in the Script field.
Regarding the ChangeActorName() warning, that was a typo in the HOWTO article. I just fixed it. ChangeActorName() should be in the Script field.