ID:1633459
 
(See the best response by WSHGC.)
Code:


Problem description:
How do i code in a stun or atleast the road to coding in a stun sometimg to make a player completely stop moving


Best response
This isn't tabbed right at all since I'm mobile, so it isn't best to copy paste this, but here's an idea of how to do it or even use as your own.

Make a variable which would cause movement to be returned.
mob/var/stun = 1  //True

mob/Move()
if(stun) //if True, return
return
..() //else, continue with the normal procedure

mob/verb/Stun_Player()
if(!stun) //if NOT True
stun = 1 //True
usr << "You're stunned"
else
stun = null //NOT True
usr << "You're Not stunned"
works