Howdy, Stranger!

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

(Harlowe) Setting a timer for responses

Hey folks, I'm what you'd call a complete Twine noob: really, really new to the game.
I'm not going too ambitious with my first project, I just want to simulate a text conversation between the reader and the protagonist of the story.

My question is, how do I make it so that the responses are timed? (As though the protagonist of the story is busy typing).
Ie; After being directed to a passage where there are multiple lines of text each line takes, say 5 seconds, to appear before the reader can select their 'response'.

I'm currently using Harlowe but willing to change if that makes more sense for what Im trying to achieve.
Any help would be super, super appreciated :D

Comments

  • How to use a (live:) macro to delay the updating of the current passage has been covered by previous topics, but here is another example.
    []<chat|
    (set: $tick to 0)\
    (live: 5s)[
    	(set: $tick to it + 1)
    	(if: $tick is 1)[
    		(append: ?chat)[The first line of text]
    	]
    	(else-if: $tick is 2)[
    		(append: ?chat)[<br>The second line of text]
    	]
    	(else-if: $tick is 3)[
    		(append: ?chat)[<br>The third line of text]
    	]
    	(else-if: $tick is 4)[
    		(append: ?chat)[<br>The forth line of text]
    	]
    	(else-if: $tick is 5)[
    		(append: ?chat)[<br>The fifth line of text]
    		(append: ?chat)[<br>[[Continue->Next Passage]]]
    		(stop:)
    	]
    ]
    
    The documentation on each of the macros used, well as as about named hooks and hook references can be found in the Harlow Manual.
Sign In or Register to comment.