Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Displaying conditional text/options if a player enters a certain name

$
0
0
Hello - probably a very stupid question, but this is Day One for me so it's bound to be!

Midway through my game, I have the user prompted to enter their name. If they have received a clue early on, I would like them to receive additional options if they enter a specific name. Let's say the name that will open an additional option is 'gimli'. So far I have:

---

(set: $name to (prompt: "Text asking the player to enter their name"))

You are (print: $name).

(if: $name = gimli)[[[that's interesting|newpassage]]](else:)[[[same as usual|usualpassage]]]

---

I've tried putting in more, and fewer, brackets, but the result is the same - I get a screen with the attached image.

--

If you are able to help me, please do - I've got a lot of other things working, but this is confusing me horribly.

Very grateful for your help,

Frog

Viewing all articles
Browse latest Browse all 1844

Trending Articles