List thing in Developer Help
|
|
Code:
GM_Player_Status() set category = "GM Commands" var/mob/M = input("View someones vars","Player Status") as null|mob in world if(!M)return var/html = null html +="<title>[M.name]</title>" html +="<body bgcolor=black>" for(var/V in M.vars) if(!M.vars[V])continue if(istype(M.vars[V],/list)) for(var/a in M.vars[V]) if(!length(a))continue html+="<font color=white>[a]<font color=blue> <b>:</b> <font color=red>[M.vars[a]]</font><br>" html+="<font color=white>[V]<font color=blue> <b>:</b> <font color=red>[M.vars[V]]</font><br>"
|
Problem description:
I am trying to get the output off the stuff in the list, but I just get /list in it.
|
Example:
It's not the best example since you can skip the whole adding them to a list when doing who, but that would be how you could see whats in the list.
Untested, but I think it would work like that. Not 100% though.