{ "profile": { "target_acquired": 0, "target_lost": 1, "target_in_warhead_range": 2, "target_dead": 3 }, "actions": [ { "name": "searchSpiral", "cost": 10, "needs": { "target_acquired": false, "target_lost": true }, "effects": { "target_acquired": true } }, { "name": "searchSerpentine", "cost": 5, "needs": { "target_acquired": false, "target_lost": false }, "effects": { "target_acquired": true } }, { "name": "searchSpiral", "cost": 5, "needs": { "target_acquired": false, "target_lost": true }, "effects": { "target_acquired": true } }, { "name": "interceptTarget", "cost": 5, "needs": { "target_acquired": true, "target_dead": false }, "effects": { "target_in_warhead_range": true } }, { "name": "detonateNearTarget", "cost": 5, "needs": { "target_in_warhead_range": true, "target_acquired": true, "target_dead": false }, "effects": { "target_dead": true } } ], "states": { "test_start": { "target_acquired": false, "target_lost": true, "target_in_warhead_range": false, "target_dead": false }, "test_goal": { "target_dead": true } }, "scripts": { "test1": [ "searchSpiral", "searchSerpentine", "searchSpiral", "interceptTarget", "detonateNearTarget"] } }