function AttackerCreatureMove()
The creature roots itself or does something else.
end
(I don't remember the exact syntax of this function)
Also, does anyone know how to randomize values (I looked something up online about Lua, but I couldn't find it)?