Twine Version: sugarcube 2.34.1
I had a question, and I wasn’t sure if it had been asked already. I used the Topic: Default name doesn’t work (by C.Johnny), and it hasn’t elaborated any further than where it finished (makes sense, doesn’t it?). My problem is that I used:
<<link “I like girls.” “Next Passage”>>
<<if $name === “Cloud”>>
<<set $sex = “straight”>>
<>
<<set $sex = “lesbian”>>
<>
<>
<<link “I like boys.” “Next Passage”>>
<<if $name === “Cloud”>>
<<set $sex = “gay”>>
<>
<<set $sex = “straight”>>
<>
<>
<<link “I don’t.” “Next Passage”>>
<<if $name === “Cloud”>>
<<set $sex = “aromantic”>>
<>
<>
And, when I used it in the beginning, I was able to continue. Until I got to the passage “Park the bike and go inside”, which is where the player sees either a girl, boy, or not (last is aromantic). And what’s supposed to happen is that the player sees one of them based on which choice they picked in the beginning:
“I like girls.”
“I like boys.”
“I don’t.”
So, if the player chose their gender to be “male”, their name is “Cloud” and would then choose if they like girls or boys or neither. And if the player is “male” and chooses “I like girls.”, then at the “Park the bike and go inside” passage, they wouldn’t see:
“As you park your bike once you get there, you see someone. You see a…
girl
boy
I don’t see anyone”, and, instead, they would just see “girl”. I’m not sure if I’m explaining this well enough, but I’m stumped here and don’t know how to fix it. After, they’re supposed to talk to the person, and go on a possible romance route. If they don’t see anyone, then it just says that they go inside the convenience store (that’s the “inside” when talking about going inside, just wanted to say that). This is a horror/romance novel, and it’s supposed to be absurd with two totally different genres. The aromantic route is for the horror part only, and I want to keep up with that, as well.
The error I get when testing it:
"Apologies! An error has occurred. You may be able to continue, but some parts may not work properly.
Error: cannot find a closing tag for macro <>.
Stack Trace:
Error: cannot find a closing tag for macro <> at Function.value (:6:21158)
at HTMLAnchorElement. (:8:17076)
at HTMLAnchorElement. (:7:30953)
at HTMLAnchorElement. (:4:4789)
at HTMLAnchorElement. (:4:4565)
at HTMLAnchorElement. (:23:43090)
at HTMLAnchorElement. (:23:41074)"
And I can’t get any farther. I’m working on the script so I have somewhere to go after all of it is fixed, but, at this point, I can’t get any farther with that particular part in the game.
For anyone willing or able to help, it would be highly appreciated! Sorry if there are any mistakes or I need to clarify something, if it’s needed, I can try to give a longer explanation if there’s something that’s unclear. Thanks in advance to anyone that helps! Also, sorry if some of the text isn’t visible, this is the first post I’m making and am a very new user, lol.