0 votes
by (310 points)

I've got the text of my passage tagged with a hook, so that when a condition is met, that text is replace with what amounts to a game over screen.

(if: $hitpoints < 1)[
	(replace: ?text)[###You have died.
	(link: "RESTART")[(reload:)]
	]]
(else:)[]
	|text>[this is the original passage text.] 

But when I test it, the passage text still loads, about a second after the "game over" message.  Am I missing something?

1 Answer

+1 vote
by (68.6k points)
selected by
 
Best answer
Try placing the named hook and its contents above the (if:) macro.

Also.  Unless you're planning on filling the (else:) macro's hook with something, you don't need either.
by (310 points)
Huh.  That worked.  Thanks, bud.  :)
...