hi there.
i am really new here and english is not my first language, so please excuse expression mistakes.
at the moment i attend a game design class at my university and we have to built quite simple games with twine2.0
so now i have the following problem:
i want to build a simple structure where you have to make 5 decisions (one after the other). each is either a or b. for each time you chose a the $var gets plus1, if you chose b, it remains constant.
so after 5 decisions the $var can be everything from 0 till 5.
now i need something that does the following:
if $var is 0 it should lead you (goto) to result1
if $var is 1, 2, 3 or 4 it should lead you to result2
and if $var is 5 it should lead you to result3
i tried different combinations of (if:) and (goto:) versions, but it just does not work.
so is there anyone who has a good idea that might help me?
thanks a lot!
Comments
Tim
thanks. i just tried out your suggestion, but it just doesn't work. and i don't really understand why.
that is what twine shows me:
http://twinery.org/forum/uploads/Uploader/31/fee4cc7ff1eac9ca26d347a1d3bd88.jpg
do you or anyone else understand what's wrong?
thanks for all your help!
The Harlowe story format documentation is here
the thing is that different "if"s work with simple text to be shown, e.g. (if: $var is 0)[text]
that works in different combinations. but as soon as i add a (goto:) or a link it just does not work anymore and shows what you can see in the picture above..
i guess i have to try out a little more.. but maybe someone has a sudden inspiration.
but thank you all for your help!
Anyway, put the following into a single passage called "Go!" and you’ll see that it’s working: