Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

Update health stats live as hooks are clicked?

$
0
0
At the head of each passage, I have a very simple health count:
Health: $health

The way my passages are written, each sentence is a clickable hook that then reveals the next sentence:
[The knight stabs you!]<stab1| (click: ?stab1)[[He stabs again!]<stab2|] (click: ?stab2)[[And again!]<stab3|]

Is there some way to make certain hooks, when clicked, incrementally lower the $health value, have the $health count at the head of the passage update live, AND reveal the next hook?

Viewing all articles
Browse latest Browse all 3830

Trending Articles