This was pretty fun. Here’s my solution’s battlefield:
Would love to hear if you had any further frustrations with the level editor as you were working on this or things you wished you could do but didn’t know how.
Might be interesting to do this with a ranged unit, like an Archer, and a lot more baddies, so that the kiting makes more visual sense (and leads to a more epic battle, with dead ogres everywhere). Adding some doodads would make it look cooler, too.
You should be able to just include
distanceTo in the Programmable’s
programmableProperties to let anyone call it, instead of making them define it or defining it yourself.