ID:168206
 
Ok, I'mm having a problem with Jail and Unjail verbs. On my map I have an enclosed area with no door to act as a jail... I tried coding it to teleport the mob to the Jail:

mob
GM
proc
Jail(mob/M in world)
set category="GM Verbs"
set src in oview()
usr.loc = locate(25,14,1)
Unjail(mob/M in world)
set category="GM Verbs"
set src in oview()
usr.loc = locate(1,1,1)
Then with my login i added:

mob
Login()
if(client.key == "Legonian1")
usr.verbs += mob/GM/proc/Jail
usr.verbs += mob/GM/proc/Unjail


I would appreciate any help, but I'd like to keep it simple. :)

Thanks,
~Chris
1) It says proc instead of verb... but that shouldn't matter much I guess, first time I saw that style

2) After the set category for jail, you need to indent the next two lines


Also, you may want to add safechecks for jails..such as have a jail var to use in death procs (because if someone commits suicide...they're out of the jail)

- GhostAnime
mob
GM
verb
Jail(mob/M in world)
set category="GM Verbs"
set src in oview()
usr.loc = locate(25,14,1)
Unjail(mob/M in world)
set category="GM Verbs"
set src in oview()
usr.loc = locate(1,1,1)

mob
Login()
if(client.key == "Legonian1")
usr.verbs += mob/GM/verb/Jail
usr.verbs += mob/GM/verb/Unjail

there...it should work now.use verb instead of proc. procs call.verbs use.