Hi,
Ive been racking my brains for several hours with this thinking of different ways to do it without too much javascript as my skills with it are pretty basic.
I would like to count the turns using a variable $turns,so as per another post I know i can use <<set $turns to 0>> in the PassageReady. I already have the variable in my $player.turns so can reuse it. What I would like to do is for every lets say 20 turns set another variable $timeofday ["morning", "afternoon", "evening", "night"] and eventually also have seasons as a variable based on the amount of turns. I can figure out how to do the latter though I know its probably something basic I dont know how to count the amount of turns, I was thinking of lets say every 10 turns the $timeofday changes and every 200 the time of season changes. I am going to do these as widgets and add them to PassageReady/PassageDone
To add some more information the purpose is basic 2 different sets of text/actions occur depending on the time of day (the passages can be revisited), also random events will occur depending on time of day. In addition to this other factors such as health (health system already in place) will be effected depending on $season.
I am using Twine 2.1.1 and SugarCube 2.14
Any illumination on this would be greatly appreciated as I think if I can get this one figuered out it should cascade to the other few features I would like to implement.
Ive been racking my brains for several hours with this thinking of different ways to do it without too much javascript as my skills with it are pretty basic.
I would like to count the turns using a variable $turns,so as per another post I know i can use <<set $turns to 0>> in the PassageReady. I already have the variable in my $player.turns so can reuse it. What I would like to do is for every lets say 20 turns set another variable $timeofday ["morning", "afternoon", "evening", "night"] and eventually also have seasons as a variable based on the amount of turns. I can figure out how to do the latter though I know its probably something basic I dont know how to count the amount of turns, I was thinking of lets say every 10 turns the $timeofday changes and every 200 the time of season changes. I am going to do these as widgets and add them to PassageReady/PassageDone
To add some more information the purpose is basic 2 different sets of text/actions occur depending on the time of day (the passages can be revisited), also random events will occur depending on time of day. In addition to this other factors such as health (health system already in place) will be effected depending on $season.
I am using Twine 2.1.1 and SugarCube 2.14
Any illumination on this would be greatly appreciated as I think if I can get this one figuered out it should cascade to the other few features I would like to implement.