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

[SugarCube 2.7] Change and display custom variable after moving to a new passage

$
0
0
Hey ho,

I am currently working on a story in which I want to integrate a mood system. What I mean by that is that the main character you play is supposed to have a certain mood that changes (or stays the same) when you move to a new passage depending on what passage that it.
For Example, there could be the moods "good", "mediocre" and "bad". I like to imagine them like a rating system: "good" = 3; "mediocre" = 2 and "bad" = 1. So if the player clicks in a passage where the mood is set to "mediocre" (2) on a link which results in an increased mood value the new passage should output the mood "good". And if he chooses in this new passage a link which results in a decreased mood value the new mood should be set to "mediocre" again. This way every player could end up with different mood settings in different passages therefore customizing the experience at least on the surface.
Is there a possibility to build something like that in Twine 2 using SugarCube 2.7? I searched for tutorials which maybe do something similar, but couldn't find anything. I am new to scripting so I am not quite sure where to start.

Every hint is greatly appreciated :)



Viewing all articles
Browse latest Browse all 1844

Trending Articles