I'm making a game where the "dungeon master" asks the player a question and the player is required to write an answer in a prompt. My problem is getting the code to work where, depending on the answer given, the player will either go to the "correct answer" passage or "incorrect answer" passage. BTW I'm using Harlowe to make this game.
This is the code I'm using.
(set: $easy1answer to (prompt: "Give your answer:"))
(if: $easy1answer contains yesterday)[[[continue|Correct Easy 1]]]
(else:)[[[continue|Incorrect Easy 1]]]
This is the code I'm using.
(set: $easy1answer to (prompt: "Give your answer:"))
(if: $easy1answer contains yesterday)[[[continue|Correct Easy 1]]]
(else:)[[[continue|Incorrect Easy 1]]]