ID:1641127
 
(See the best response by Pirion.)
var
list
clans = list()

mob/Login()
switch(alert(usr, "Do you want to start in a clan? You'll adopt mods similiar to the clan leader.",, "Yes", "No"))
if("Yes")
for(var/c in clans)
if(c.clanlogin == 1)
usr << "1"


Clans are their own datum and have variables. Clans are saved to clans list. How do I check if any clans in the clan list have a clanlogin value of 1? Would I have to check the savefile to do this and if so, how?

here is the basic clan system for reference:
http://www.byond.com/forum/?post=1476153#comment8538817
Best response
If you want to check the values even when players are offline, you will want to load them even when no players are online.

While you could check the save files, it wouldn't really be much different to just keep them in memory.