<!--Saved by Quest 5.6.5783.24153-->
<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="progress test">
<gameid>23d85b56-0b5f-48c3-8fb1-e28d47a63179</gameid>
<version>1.0</version>
<firstpublished>2015</firstpublished>
<statusattributes type="stringdictionary">
<item>
<key>percent</key>
<value><![CDATA[<div style="width:100%; height:24px; border:1px solid black;"><div style="background-color:blue;width:!%;height:100%"></div></div><div style="text-align:center">!%</div>]]></value>
</item>
</statusattributes>
<percent>25</percent>
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
</object>
</object>
</asl>
jaynabonne wrote:If you want it to look different, let me know, and I'll give you modified HTML, unless you can work that part out yourself.
<statusattributes type="stringdictionary">
<item>
<key>percent</key>
<value><![CDATA[<div style="width:100%; height:24px; border:1px solid black;"><div style="background-color:blue;width:!%;height:100%"></div></div><div style="text-align:center">!%</div>]]></value>
</item>
</statusattributes>
and it worked. But, I need to know how to calculate the % progression. I assume I need to have the arithmetic in this part <percent>25</percent>
somewhere but... again... NO clue!<!--Saved by Quest 5.6.5783.24153-->
<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="progress test">
<gameid>23d85b56-0b5f-48c3-8fb1-e28d47a63179</gameid>
<version>1.0</version>
<firstpublished>2015</firstpublished>
<statusattributes type="stringdictionary">
<item>
<key>percent</key>
<value><![CDATA[<div style="width:100%; height:24px; border:1px solid black;"><div style="background-color:blue;width:!%;height:100%"></div></div><div style="text-align:center">!%</div>]]></value>
</item>
</statusattributes>
<percent type="int">0</percent>
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
<score type="int">0</score>
<maxscore type="int">100</maxscore>
<changedscore type="script">
game.percent = player.score*100 / player.maxscore
msg("percent is now " + game.percent)
</changedscore>
</object>
</object>
<command>
<pattern>inc</pattern>
<script>
player.score = player.score + 5
msg("score is now " + player.score)
</script>
</command>
</asl>
<score type="int">0</score>
<maxscore type="int">100</maxscore>
<score type="int">0</score>
<maxscore type="int">100</maxscore>
<changedscore type="script">
game.percent = player.score*100 / player.maxscore
msg("percent is now " + game.percent)
</changedscore>
<statusattributes type="stringdictionary">
<item>
<key>percent</key>
<value><![CDATA[<div style="width:100%; height:24px; border:1px solid black;"><div style="background-color:blue;width:!%;height:100%"></div></div><div style="text-align:center">!%</div>]]></value>
</item>
</statusattributes>
<percent type="int">0</percent>
jaynabonne wrote:I hope you're able to do this in CodeView. If you need a GUI approach to this, I'd have to think about that more.
player.score = player.score + 2
IncreaseScore (5)
player.score = player.score + X
directly below every line I found where I increased the score. Obviously I changed the 'X' to the IncreaseScore value found in parentheses and the 'player' to Xanadu (my player name). Everything is now working properly!