ID:163434
 
Can I make it so that I lose control of my character for a moment. This would be great if there is a cutscene or something. I just want it to be like..
mob
Borb
icon='borb.dmi'
verb
Click()
usr cannot move //this is what i want
sleep(50)
usr can move


that was not true code but that is what I want it to do just to show a visual example. Could you help?

Thanks in advance!
i think that's called freezing or something... i was trying to see if i could make a cutscene or something like that also. but anyways, try looking up Freeze(). that might work...
In response to Jman9901
sorry but I looked and double checked carefully but I fould nothing called Freeze(). Is it something else? Or did I miss it?
In response to Moocow696
i tried it too... i remember people talking about a freeze proc or something... well, just try and ask around, im sure you'll come up with something. :)
In response to Jman9901
sooooooooooo.......does anyone know this "freeze proc"?
Meh, I feel generous so I'll do it for you.
atom/movable   //  This is the parent for /obj and /mob as well.
var/tmp/moving = 1 // tmp makes this variable unsavable.
Move() // This is called when something attempts to move.
if(!moving) return 0 // Return 0 tells the proc to not make the object move. !var checks if the variable is either 0, null or an empty string.
return..() // Calls the rest of the proc to see it can be moved or not


All you have to do is compile that in your game and if you want something to not move, make moving = 0
In response to GhostAnime
um...I did what you said but it keeps telling me that "moving" is an undefined var. I'm not sure if I have to make it fit into MY code but if I have to im not sure how im supposed to do that. I figured that this should work on anybody's code. Is there something else that I may need to make this code work? You said just compile into your code and it should accept moving=0 but for some reason it doesn't.
In response to Moocow696
Are you defining the moving var under atom/movable? And if so, are you typecasting the datum in question correctly when you try to change its moving var?