How to display 2 attributes in the status tab in a row?
Korpsian
04 Jun 2016, 13:20I want to display the following in the Status Tab:
player.hitpoints = 10
player.hitpointsMax = 20
Output in the Status Tab in the game:
Health: 10 / 20
This is the code for display just the hitpoints but that's not exactly what i want...
<statusattributes type="stringdictionary">
<item>
<key>hitpoints</key>
<value>Health: !</value>
</item>
</statusattributes>
I saw it in some other games so its possible but how do i do it?
player.hitpoints = 10
player.hitpointsMax = 20
Output in the Status Tab in the game:
Health: 10 / 20
This is the code for display just the hitpoints but that's not exactly what i want...
<statusattributes type="stringdictionary">
<item>
<key>hitpoints</key>
<value>Health: !</value>
</item>
</statusattributes>
I saw it in some other games so its possible but how do i do it?
The Pixie
04 Jun 2016, 15:42The trick is to have a string that is "10 / 20", and display that. And the trick to that is to use a change script to have a string change whenever the hits do.
Here is a page about change scripts, just say if you need more help.
viewtopic.php?f=18&t=5307
Here is a page about change scripts, just say if you need more help.
viewtopic.php?f=18&t=5307
Korpsian
04 Jun 2016, 17:07thank you so much!
HegemonKhan
04 Jun 2016, 23:56here's a guide on status attributes if you still need help:
viewtopic.php?f=10&t=5387&p=37393&hilit=statusattributes#p37375
if you got any questions, or are confused, let me know.
viewtopic.php?f=10&t=5387&p=37393&hilit=statusattributes#p37375
if you got any questions, or are confused, let me know.