User: Fire to monster.
Answer: fire(target="monster")
User: Attack a monster by sword.
Answer: attack(target="monster", weapon="sword")
User: Go to north, and attack a monster by sword.
Answer: goto(direction="north")
attack(target="monster", weapon="sword")
User: Attack a monster by sword. If a monster died, go to north.
Answer: