Ok, i'm still working on this part and it's getting complicated.
Flee_From_Dude works fine and does exactly what i want (i.e makes critter flee from the dude's tile)
THe problem is it doesn't make the critter flee far enough.
Here's the macro in command.h:
#define Flee_From_Dude...