mob
var/list/gm_list = list()
verb
Add_GM_List()
var/gm_name = ckey(input("What key would you like to add?", "Add GM") as text|null)
if((gm_name in gm_list) || !gm_name) return // if the person is already a gm, do nothing
gm_list += gm_name // if the person is not already a gm
world << "[gm_name] is now a gm!"
Remove_GM_List()
var/gm_name = ckey(input("What key would you like to remove?", "Remove GM") in gm_list+"Exit")
if(!(gm_name in gm_list))return // saftey check
gm_list -= gm_name // if the person is a gm
world << "[gm_name] is no longer a gm!"
View_GM_List()
var/gm_name = ckey
if(!(gm_name in gm_list))return
usr<<"[gm_list]"
Problem description:
ok basically what im looking to do, is save any mob to the list "GM list", that way when people relog or the game shuts down, all the people are still in the list. the adding and removing work fine, but whenever i try to view the list of people inside, i either get only myself, or /list
how do i see who all is in this list, and how do i have it so that every person sees the same list?
ive looked at some of the other list help out there but i dont really see what im looking for. would be great if someone could help me out. kinda a newb at this stuff