Hm. The following code is part of my dinky little paintball system.
Join2() set category = "Paintball" set name = "Join" line = inline inline += 1 paintplayers += 1 remaining -= 1 usr << "<font color=green><b>Joining, please wait...</font></b>" usr.verbs -= /mob/Cheats/verb/Join2 world << "<font color=red><u><b>INFO:</font></u></b><font color=white><b> [usr] has joined the free-for-all! [remaining] player(s) are needed yet!</font></b>" if(paintplayers == 4) paintballin = 1 for(var/mob/M in world) M.verbs -= /mob/Cheats/verb/Join2 if(M.line == 1) M.loc = locate(161,159,2) M.line = 0 M.verbs += /mob/Cheats/verb/Shoot M.client.verbs -= typesof(/mob/Build/verb) M.painty = 1 if(M.line == 2) M.loc = locate(161,122,2) M.line = 0 M.verbs += /mob/Cheats/verb/Shoot M.client.verbs -= typesof(/mob/Build/verb) M.painty = 1 if(M.line == 3) M.loc = locate(199,122,2) M.line = 0 M.verbs += /mob/Cheats/verb/Shoot M.client.verbs -= typesof(/mob/Build/verb) M.painty = 1 if(M.line == 4) M.loc = locate(199,159,2) M.line = 0 M.verbs += /mob/Cheats/verb/Shoot M.client.verbs -= typesof(/mob/Build/verb) M.painty = 1 inline = 0 remaining = 0
|
The vars are defined and assigned correctly to the best of my knowledge, but after the fourth player joins they don't get "teleported" to their specific location on the destination map, or get the shoot verb, etc. Arg.
and close it with <\dm> (use / instead of \)