I am making a D&D game system and I need help on the login part here ius the code:
mob
Login()
var/mob/M
for(M in world)
if(M.DM==1)
usr.loc=locate(1,1,1)
else
switch(input("Do you want to be a DM?","DM")in list("Yes","No"))
if("Yes")
usr.DM=1
usr.name="[usr] (GM)"
usr<<"You are a DM"
usr.loc=locate(1,1,1)
usr.client.mob = new /mob/DM
return 0
if("No")
usr.loc=locate(1,1,1)
return 0
the red part makes it keep popping up the switch message. need help please.
Thanks,
Air _King
Copyright © 2025 BYOND Software.
All rights reserved.
You'll want to do this in client/New(), not mob/Login()
Time to change my demo..