(Twine 2.1.3, Harlowe 2.0.1)
Hi!
I'd like to be able to adapt certain parts of my story to the player's name - specifically, what letter it starts with.
I've read about Javascript code that can do this, but I can't seem to get it to work (perhaps because I have no knowledge of Javascript or the proper syntax for it - even if I copy/paste the "if" part, I don't know how to set up the rest of it).
It's not a feature I desperately need so it's no big deal if I never figure it out, but it would be great if i could get it to work. My plan is to create a $FirstLetter variable that can be set to "A", "B", "C", etc. depending on what the first letter of the name is. Now the hard part is extracting that info!
I've already set the player's name to start with an uppercase no matter how they type it in, so I only need to check for uppercase letters.
I'd really appreciate any help!