<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="testing game stuff">
<gameid>b073bbfb-0e99-45d3-9786-bb395a6bc6b0</gameid>
<version>1.0</version>
<firstpublished>2015</firstpublished>
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
<attr name="current_life_integer_attribute" type="int">250</attr>
<attr name="maximum_life_integer_attribute" type="int">500</attr>
<attr name="life_string_attribute" type="string">250/500</attr>
<statusattributes type="simplestringdictionary">life_string_attribute = Life: !</statusattributes>
</object>
</object>
<object name="life_50_potion_1">
<inherit name="editor_object" />
<parent type="object">room</parent>
<alias>life 50 potion</laias>
<consume type="script"><![CDATA[
if (player.current_life_integer_attribute < maximum_life_integer_attribute) {
player.current_life_integer_attribute = player.current_life_integer_attribute + 50
msg ("You consume the potion, restoring back 50 life.")
if (player.current_life_integer_attribute > player.maximum_life_integer_attribute) {
player.current_life_integer-attribute = player.maximum_life_integer-attribute
}
}
]]></consume>
<displayverbs type="simplestringlist">look;take;consume</displayverbs>
<inventoryverbs type="simplestringlist">look;drop;consume</inventoryverbs>
</object>
<object name="life_100_elixir_1">
<inherit name="editor_object" />
<parent type="object">room</parent>
<alias>life elixir</alias>
<consume type="script"><![CDATA[
if (player.maximum_life_integer_attribute < 999) {
player.maximum_life_integer_attribute = maximum_life_integer_attribute + 100
msg ("You drink the elixir, increasing your maximum life by 100.")
if (player.maximum_life_integer_attribute > 999) {
player.maximum_life_integer_attribute = 999
}
} else {
msg ("You already have the total maximum life, at~of 999, so you can't increase it any more.")
}
]]></consume>
<displayverbs type="simplestringlist">look;take;consume</displayverbs>
<inventoryverbs type="simplestringlist">look;drop;consume</inventoryverbs>
</object>
<verb>
<property>consume</property>
<pattern>consume</pattern>
<defaultexpression>You can't consume that.</defaultexpression>
</verb>
<turnscript name="global_turnscript">
<enabled />
<script>
player.life_string_attribute = player.current_life_integer_attribute + "/" + player.maximum_life_integer_attribute
</script>
</turnscript>
</asl>
0%60=R0=0
1%60=R1=1
2%60=R2=2
3%60=R3=3
...
59%60=R59=59
60%60=R0=0
61%60=R1=1
...
119%60=R59=59
120%60=R0=0
121%60=R1=1
....
player.hp = player.hp + inc
if (player.hp > player.max_hp) {
player.hp = player.max_hp
}
game.turns = game.turns+1
game.minutes = game.turns%60
game.hours = (game.turns/60)%24
if (game.minutes<10) {
game.clockMinutes = "0"+game.minutes
}
else {
game.clockMinutes = game.minutes
}
if (game.hours<10) {
game.clockHours = "0"+game.hours
}
else {
game.clockHours = game.hours
}
game.Time = game.clockHours+":"+game.clockMinutes
your_contents_here_code_or_text_wall
HK wrote:the_quote
the_quote