In my game, I want the player to choose their name (and pronouns later but that’s just a bit more complex version of this), in which my dialogue in Yarn can display that name within the given dialogue. I tried to follow the only source I could find on it, this closed topic here: [Solved] Custom player name in Yarn dialogue?
However the name is distinctly not replacing the string using the Regular Expressions extension as in the tutorial. Instead Yarn just shows the placeholder text “@goodstring@”
Now I need to explain some quick things. I have it set up so the player name can only be made using characters I have said it’s allowed to use. This turns the black text (Black Fish), into the allowable “good string” (Green FISH). When I confirm my name this sends the good string to a global variable of the player name (Red Null). After Confirm is pressed this doesn’t happen. “@goodstring@” should be replaced with FISH as seen in the red text. As you can see it isn’t. As well the white text indicates there is an error with loading the file, but I’m not sure where or why.
(I’m currently allowed one picture )
This is the code for replacing the name, and as far as I know this is identical in form to the previously mentioned tutorial (The “g” was replaced with an “i” to test if that would fix it and it didn’t, both do not work). The blacked out part in the file location is just a privacy thing, and yes there are two confirm button inputs and I have tried many variations and none have worked that was just my last.
Any ideas on how to get it working, or alternatives to achieve the same effect?