Hello!
I've made a status bar in my game, which is using four (live:100ms) macros to display actual information about main characteristics (HP, mana, etc.)
Is it wrong method? Because it make hard to click on (click:) macro (click link flickers and you should click very quickly).
What could I done with it?
Comments
and here is code:
"StatusBar" passage:
<abbr title="Health">(set: $HP to (text-style: "fade-in-out") + (colour:"red"))$HP[❤](live:100ms)[$currentHealth/$maxHealth]</abbr> <abbr title="Wealth">(colour:"yellow")[¥](live:100ms)[$money]</abbr> <abbr title="Exp">(colour:"cyan")[★](live:100ms)[$exp]</abbr> <abbr title="Magic">☯(live:100ms)[$mana]</abbr>
Some game passage:
|doors>[You see a massive large doors.]
(click: ?doors)[(append: ?doors)[ It seem to be locked.]]
(display: "StatusBar")
So is it possible to display up-to-date status-bar, which could be changed from any other places?
P.S. (live:) normalliy works with (link:), so I didn't notice it earlier
eg.
Create a new passage, assign it a header tag and place the code that displays your stats area into this new passage. (remove the (live:) macros)
This header tagged passage will appear before each of the passages within your story, you could even use CSS change where the header tagged passage is located.