ID:179629
![]() Nov 26 2001, 1:32 pm
|
|
Is there a command like sleep() that makes it so the player can't do any thing?
|
![]() Nov 26 2001, 2:29 pm
|
|
sleep() delays thing, but to disable movement make a var and check that in client.Move() if it is TRUE move and it's FALSE return 0
|
so It would look like
var/client.Move() if(client.Move() == TRUE) wait..what goes here? if(client.Move() == fales) and what goes here? |
Actually, if you're going to take up programming you should learn to spell things correctly. It's not "fales" it's "FALSE" and noticed the capitals.
|
Havent you heard of typos?
I asked about somthing like this, a while back, Try searching the forums next time but for now here is vortezz's reply: mob/var/locked = 0 mob/Move() if(locked) //if they're locked return 0 //prevent movement else //otherwise, . = ..() //allow them to move mob/verb/stop(mob/M as mob in view()) //"Stop" spell if(rand(1,2)) M.locked = 1 M << "[usr] has cast Stop on you!" usr << "You cast Stop on [M]!" else oview() << "[usr]'s spell fizzles." the verb is an example of how to use the var, Again, This is Vortezz's code, so thank you vortezz |
I've been banned from about five of them :o)
(Of course, that's because I go in with the distinct purpose of getting banned...) |