0 votes
by (120 points)
Как Делать условия?

У меня harlowe, и я хочу, чтобы два ответа приводили на одну и ту же страницу, и половина текста была одинаковой, а вторая зависела от ответа. Какой здесь использовать макрос,и как главное?

1 Answer

0 votes
by (63.1k points)
edited by

This is mostly an English language forum; you might need to run this answer through Google Translate or similar, which is how I read your question. 

You want the if macro: (if:). You'll also need what we call a "setter" link. Here's an example: 

::Passage 1
(set: $choice to 0)\
Hello. Make a choice. 

(link: 'choice 1')[\
  (set: $choice to 1)\
  (goto: 'Passage 2')\
]\

(link: 'choice 2')[\
  (set: $choice to 2)\
  (goto: 'Passage 2')\
]\

::Passage 2
Text that doesn't change. 

{
(if: $choice is 1)[
  You chose 1! 
(else:)[
  You chose 2!
]
}

 

by (120 points)
explain please in more detail
...