the first 3 defines i made is for defining an idle, attacking and running of my A.I. in my game. what is wrong in that code? why is the "define" in .wdl replace with "#define" in .c? and skill do not work? because after that, i save it to .c code, i debug it so many times and i found a result, it works! the player_code() action but the my_enemy() action did not work anymore, the vec_dist cannot calculate the vertex of my player and monster. what will i supposed to do?? To all of the game developers who replied in my question thank you very much...i will try the code of mr. 'heinekenbottle' did. i pray that it will works...tnx!!!