Ok so I'm fairly new to twine but i've seemed to have gotten the hang of the basics. In my story the character has the option to choose their gender(doesn't affect the story in any way) and i haven't seen the question asked on how to allow the characters to choose their own names. Is there a way to do this, in the same way you would type out your name for a game or website? Im using Twine 2 on Harlowe if that helps.
Comments
Enter this in your first passage:
then you may access the input your secound passage using this variables:
Or course you can rename $yourJob to $playerGender. Also some of the text is displayed for the user, you may want to change that as well. e.g. instead of "Your Job:" you enter "Your gender" and instead of "Update Job", you write: "Confirm Gender" or something.
Also, for this to work, you need javascript code. Enter it in the javascript section:
Don´t ask me about javascript thought... I guess it somehow gets triggert when the user enters name / job / gender whatever.
Hope that code, that works for me, can be used by you and then adapted to serve your purpose.