Examples
Character: char{
Event: "Attack" {
// If player wins the roll, drop all items carried by char and then remove char
// Else end the game because the player was defeated instead
if (rand(0,player.power) > rand(0,power)){
screenMessage("You defeated "+getName()+" in combat.")
dropItems()
remove()
}
else
endGame("You were defeated by "+getName()+" in combat.")
}
}