You are in a command called attack

attack {foe}

This causes you and your foe to fight till death.

Notes:
- You may not attack anyone while in a location whose material is 'sanctuary'.
- You can only attack if you and the foe are both alive (health > 0).
- You can only attack foes that are made of "living" material.
- The battle ends if either leave the room or die
- If you have more than one weapon wielded, only one will be used in battle
- There is no effect from wielding or not except in the text shown during battle.

Weapon notes:
- The default weapon is your fist, with damage of 1.
- If you are wielding a weapon, the damage will match the weapon's health/10.
- Once in a while during a weapon's hit, it can do a special attack. These are objects that you place inside the weapon. During a special attack, one of these objects is chosen at random and set as follows:
slot1 = the person wielding the weapon
slot2 = the person hit by the weapon
slot3 = the weapon's id.
counter = 0
loc = the location of the battle

You may want to set your object loc back to the weapon when it is done with the special attack.

For a weapon example, find magical flaming sword (it's health is 2)
There is a fire spell, a heat blast spell, and a critical cut inside it.

(Later, I hope to incorporate armor properties)

Code