ID:1555436
 
Keywords: code, coding, dodge, help, movement
Code:
mob
verb
Dodge()
set category = "Fighting"
var/list/Menu = list()
for(var/mob/M in world)
if(M.z == usr.z)
Menu.Add(M)


Problem description:
I'm new to the whole coding thing so bare with me.

I'm creating a new move in a players fighting tab called Dodge.

What I want it to do is activate, freeze users movement, and unfreeze user in 5 seconds.

During that five second freeze, if any player gets within 2 tiles of the user, the user will move 2 tiles away from the other player.

If anyone can help explain this too me please do.

Thanks a bunch.


Little example below
http://gickr.com/results3/ anim_d605478f-b85f-8024-bd3d-75b29cb9f1d3.gif