It looks like you're new here. If you want to get involved, click one of these buttons!
<div id="statmenu">(display: "hide stats")
</div>
"show stats" passage:
[
|stats>[''Your Profile'']
Honesty: (print: $player's Honesty)
Bravery: (print: $player's Bravery)
Wits: (print: $player's Wits)
Kindness: (print: $player's Kindness)
]<statlist|
(click: ?stats)[
(replace: ?statlist)[]
(replace: ?stats)[(display: "hide stats")]
]
"hide stats" passage:
[''Your Stats'']<stats|
(click: ?stats)[
(replace: ?stats)[(display: "show stats")]
]
Is there something I'm missing, or a better way of doing this without resorting to Actual Javascript?
Comments
A (replace:) macro replaces the contents of a hook, not the hook itself.
I got it to work now! For posterity's sake:
"menu" "hide stats" "show stats"