Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Twine: Choices and Consequences

Hello! I'm new to twine and so far I'm finding it fun to tinker with! However, I've come across a problem I can't seem to solve. Now I've looked up tutorials, but for some reason, they just aren't clicking with me. Honestly, software never was my strong point. And no matter how hard I tried, I often found myself flailing in the dark with it. >_< My problem is this; I'm writing a story on twine that has choices, and consequences for those choices, which will show up at the end. My story would have 4 potential endings. MY problem is, how do I create all of these endings, but only allow the player to see the one that matches the choices they've made?

I hope that doesn't sound too confusing. xD To help, I've included the story I'm currently working on, in case what I'm trying to say is too confusing. x)

Comments

  • I'm new as well, but I think I know how to answer this.

    You could set a variable to be triggered through each choice. Using a karma meter as an example, then you could put something like this on the first passage.

    <<set $karma = 0>>

    If they pick a passage like "Heal a Baby", then at the top of that passage put

    <<set $karma = $karma + 1>>

    If they decide instead to "Trip an Old Lady", then at the top of that passage put

    <<set $karma = $karma - 1>>

    Then at the end, you could have something like

    <<if $karma is -1>>
    [[Terrible Ending|Terrible Ending]]
    <<endif>>

    <<if $karma is 0>>
    [[Bad Ending|Bad Ending]]
    <<endif>>

    <<if $karma is 1>>
    [[Normal Ending|Normal Ending]]
    <<endif>>

    <<if $karma is 2>>
    [[Good Ending|Good Ending]]
    <<endif>>

    <<if $karma is 3>>
    [[Golden Ending|Golden Ending]]
    <<endif>>

    I'm pretty sure this will work for your story. It's a bit loose, as any combination of passages that gets the total to 3 will trigger the Golden ending, not a specific string of passages, but I think it's easy to work with. Especially if you have a lot of these "choice passages",  because this allows pretty much any combination of "choice passages" to be accounted for.

    Here's some links to some articles on the twine wiki that seem relevant.

    http://twinery.org/wiki/if

    http://twinery.org/wiki/variable

    http://twinery.org/wiki/expression

    http://twinery.org/wiki/function

    http://twinery.org/wiki/actions

    http://twinery.org/wiki/choice

    I hope I was helpful.
Sign In or Register to comment.