Examples
Character: char{
Event: "Attack" {
player.life -= rand(0,damage)
life -= rand(0,player.damage)
// If the property life on player is less than or equal to 0,
// or if the character has the item elfbane and the player is an elf
// the player dies, and the game is ended
if (player.life <= 0 || hasItem("elfbane") && player.race == "Elf")
endGame("You have died to "+getname()+".")
}
}