proc/SaveVars(Unit/L)
var/list/Saved=list()
for(var/stat/S in L.vars)
Saved+=S
spawn(30) world<<"list: [Saved]"
Problem description:
Is there a way to store a list of variables? If not, I just want to save the names of the variables.
Code:
proc/SaveVars(Unit/L) Problem description: Is there a way to store a list of variables? If not, I just want to save the names of the variables. |
Feb 26 2015, 8:20 am
Best response
|
|
Maybe vars.Copy()?
|
mob/verb/dump() Source: The marvelous power of ctrl+f What I believe you are doing wrong is you are adding the variable and not the text of it. Wrap it in quotations. |