ID:179629
Nov 26 2001, 12:32 pm
|
|
Is there a command like sleep() that makes it so the player can't do any thing?
|
Nov 26 2001, 1: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
|
In response to Nadrew
|
|
so It would look like
var/client.Move() if(client.Move() == TRUE) wait..what goes here? if(client.Move() == fales) and what goes here? |
In response to TK6000
|
|
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.
|
In response to Foomer
|
|
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 |
In response to Pillsverry
|
|
Yes, true returning 1 = TRUE and 0 = FALSE.
|
In response to Nadrew
|
|
Thanks alot man.
|
In response to Homes123
|
|
Are you mad because he banned you from his stupid dbz game?
|
In response to Nadrew
|
|
Yes i am pissed cuz i did nothng
|
In response to Homes123
|
|
Cheer up, I would find it an honor to be banned from a dbz game.
|
In response to Nadrew
|
|
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...) |
In response to Foomer
|
|
Yes, me too I think I've been banned from around 12 on this key and alot on my Dbzsucks key.
|