I am starting to learn PDDL and make a domain where 2 agents fight each other and simulate a fight where my hero should win and maximize it's health points. I am facing Suspected timeout plan error when trying to compile my project on http://editor.planning.domains/
My idea is to create some functions for hit points, mana or attack and use different actions/abilities to decrease the agent's health/mana when they fight each other, for that I needed to decrease the values and to set a goal where the enemy hero is killed.
I started with this simple example, this is my session: http://editor.planning.domains/#read_session=xoSpf2es0Y
The plan I expected to get when writing this code is to get 4 melee attacks in order to kill the enemy.
Can I write something like (:goal (= (health arthas) 0)) in the problem file? I haven't seen any PDDL example write anything similar to that.