let me know if you got any questions, or need any help with anything. I don't explain things clearly, so if you're confused by anything, feel free to say so, and I'll try to make it more clear for you so you can understand it.
because the ">" and "<" characters are used for the 'tagging' in coding, when you want to use these characters for their computational meaning (greater than and lesser than), you need to add this (only when typing in your code directly):
<![CDATA[ (your scriptings) ]]>
(an example)
<object name="zombie_1">
<inherit name="editor_object" />
<alias>zombie</alias>
<attr name="dead" type="boolean">false</attr>
<attr name="hit_points" type="int">100</attr>
<attr name="fight" type="script"><![CDATA[
if (this.dead = true) {
msg ("The zombie is already dead, silly.")
} else if (this.dead = false) {
if (player.speed > this.speed) {
this.hit_points = this.hit_points - player.damage
msg ("You damage the " + this.alias + " for " + player.damage + " points, and this.article now has only " + this.hit_points + " HPs left.")
if (this.hit_points <= 0) {
this.dead = true
}
} else {
player.hit_points = player.hit_points - this.damage
msg ("You're damaged for " + this.damage + " points, and you now have only " + player.hit_points + " HPs left.")
if (player.hit_points <= 0) {
msg ("GAME OVER")
}
}
}
]]></attr>
<attr name="ingest" type="script">
if (this.dead = true) {
player.hit_points = player.hit_points + 50
player.hunger = player.hunger + 10
msg ("You eat the zombie, restoring 50 of your HPs and 10 of your hunger level.")
} else if (this.dead = false) {
msg ("The zombie is still alive, you'll have to kill it first, before you can eat it.")
}
</attr>
<attr name="displayverbs" type="listextend">Fight;Eat</attr>
</object>