The heat has probably gotten to me, I've been thinking of a way to make all this work but unfortunately I can't think of a simple solution of which I am sure there is..
As far as I know the obj.vars list is read-only. But my goal is to check each var for a different setting using:
if(var != initial(var))
list["[var]"] = var
Thats the easy part and should work for what I want it to do, but just what is the simplest method of checking both the list and the object variables and setting those that have changed?
So far this is the best I could come up with:
for(var/variable in AM.vars)
if(PO["[variable]"] == AM.vars["[variable]")
AM:variable == PO["[variable]"]
Some help would be great!
Be careful with this, and never use it on a player mob or client, or they will be disconnected!