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

Autosave + Variables issue

$
0
0
Hi! I am using Harlowe 1.2.4, I was able to add an autosave feature by following @sgranade 's tutorial. My game has a small reward feature, the player is getting rewards at several passages, I used (set: reward1 to true) . He can view the rewards at another passage dedicated only for this, (if: reward1 is true)[Reward1] and so on.

When I start the game I have a menu, "New Game", "Continue" and "Rewards". The first two items are working. The third one does not display anything. I have to start a new game to unlock a reward and then to go to the Rewards passage, when the rewards are showing up (this is fine if it's my first play).

If I exit the game (after I started to play it), the Rewards passage (accessed from the home menu) does not display anything again when I am back. However if I first "Continue" the game and then I go back to the Rewards passage I can see the rewards that I unlocked in my previous session. So, the game is saving, but the rewards (the true variables) are showing up only after I start a new or load a game.

Another issue is when I open the game and I'd like to go with a different storyline (to unlock/get more rewards), so I go with "New Game", the rewards from the previous sessions are cleared, which is bad from this point of view. However if I first press "Continue" and then I go back and start a new game, my previous rewards are saved and I can get new ones.

Any solutions for my problems? Thanks so much in advance. I made and attached a quick demo that presents clearly my problem.

Viewing all articles
Browse latest Browse all 1844

Trending Articles