0 votes
by (260 points)
Using Twine 2.2.1

I have an action sequence in my game and I want to make it feel alive.

I want my players to have a limited amount of time to make certain decisions.

How can I do this?

3 Answers

0 votes
by (880 points)
See the answer by @HiEv to this more recent question:

https://twinery.org/questions/47978/how-can-i-trigger-a-link-without-the-reader-doing-anything

 

Briefly, you can use the SugarCube2 macro <<timed>>
0 votes
by (68.6k points)

You have a few basic options for implementing a limited-time feature.  How you want the feature to work will determine which is the best fit.

  1. Check the time elapsed since the player has been on a passage upon player action and do something if it's less/more than a specified time.  The SugarCube time() function may be used for this.
  2. Run a local (passage) timer that does something at a specified time if it's not interrupted by a player action.  The SugarCube <<timed>> macro may be used for this.
  3. Run a global timer that does something at a specified time if some criteria is/isn't met.  The web API setTimeout() function may be used for this.
 
0 votes
by (159k points)
edited by

@Introspected
You have specificed two different Story Formats (Harlowe & SugarCube) in your question tags, which one are you actually using for your project?

We need to know because the answers we give you can vary based on (the name and full version number of) the story format you are using.

by (68.6k points)
Ugh.  I missed that both tags were there.
...