ID:176910
 
ok i have a system (for making weapons) it works all fine, But i wouldnt mind knowing the code...how to stop a person from moving...then a code to enable them to move again...thank you for who ever answers this!
mob
var
locked = 0
verb
LockMovement()
if(!usr.locked)
usr.locked = 1
else
usr.locked = 0
Move()
if(locked)
return 0
else
return..()

If the users lock is 1 then he wont move, the verb is just to help
<font color = "black">Kudos to Nads, whom i took the code from</font>
Maz
In response to Maz
kewl thanks dood
In response to Wanabe
sorry diddnt quite get that,heres my code (i could make it work but i gotta go to bed) Night, thanks ya'll


verb//verb command
make()
sleep(20)
usr<<"*You Start making a weapon..you must wait till You can move again*"
sleep(100)
new/obj/weapons/Basic_sword(usr)
usr.Made=1
usr<<"the Weapon is cooled down now (look in your inventory)"
oview() <<"[usr] Makes a weapon!"
In response to Wanabe
Wanabe wrote:
sorry diddnt quite get that,heres my code (i could make it work but i gotta go to bed) Night, thanks ya'll
verb
make()
sleep(20)
usr<<"*You Start making a weapon..you must wait till You can move again*"
<B>usr.locked=1</b>
sleep(100)
new/obj/weapons/Basic_sword(usr)
usr.Made=1
<B>usr.locked=0</b>
usr<<"the Weapon is cooled down now (look in your inventory)"
oview() <<"[usr] Makes a weapon!"

mob
var
locked = 0
Move()
if(locked)
return 0
else
return..()

There. that should work, but next time, give it a few digs before you bring it onto the forum ok? :)
Maz
In response to Maz
lol, ok