Hello, I'm compeletly new to twine (using 1.4.2. since I found more solutions to my problems there, still not sure if I should switch to 2 though) and I can't for the life of me figure out how to do what I want to.
What I want to do:
- The player will enter their name
- An NPC will not like that name and give the player a new one out of a list of names (go to Passage 01B)
OR the name the player gave is on that list and the NPC will like it (got to 01A)
I got the first part working:
<<textinput $playername [[Done|01]] >>
<<set $setlistname to either("Carl", "Bob", "Ted")>>
But I can't get the second working. I found a similar topic that explains part of the problem ""Either" only choosing last option on specific variable" , so "Ted" is always true but the others are false... Should I be using a different function/operator? Is there a logic error? Would it be easier and/or should I switch to Twine 2?
<<if $playername is ("Carl", "Bob", "Ted")>> [[NPC likes|01A]] <<else>> [[NPC dislikes|01B]] <<endif>>