mob/verb/Staff()
var
GM
var/savefile/F= new("Staff.sav")
F["GM"] >> GM
for(var/i in GM)
var/html = {"
<HTML><HEAD>
</HEAD>
<BODY BGCOLOR=black TEXT=white>
<p align="center"><font size=5>Staff List</p>
</STYLE>
<hr>
</head>
<body bgcolor=Black bgproperties=fixed>
<font size=2 color=white>GMs"}
if(i.Status == "Online") html += "<p><font size=2 color=white>-[GM] (Online)"
else html += "<p><font size=2 color=white>-[GM] (Offline)"
html += {"
</font>
</body>
</html>
</center>
"}
usr << browse(html,"window=name;file=name;display=1;clear=0; size=300x500;border=0;can_close=1; can_resize=0;can_minimize=1")
Problem description:
Okay so this confuses me a lot x.x so I'll try to explain it.
What I did - When you add a GM in-game it saves their 'key' to a sav file called "staff" in the game's folder as a list.
What I'm trying to do - When you use the 'Staff List' verb in-game I would like it to display all keys in the 'staff' save file AND show if they're online/offline.
The problem - I can get it to display the keys or if they're online or offline which is a var for every client mob called 'status'. Thanks for any help I hope I explained it okay D:.