obj
var/Obj_id
New()
.=..()
Obj_id=Create_UID()
proc/GetPerfObjs()
for(var/obj/O in world)
for(var/A in O.PerfobjList)
SRMList.Add("[A];[O.Obj_id]")
Problem description:
I need a list of Perfobjs contained within each object in the world. I then need to save these Perfobjs with an ID that can be referenced to find the object it came from.
For some reason, my world crashes when I try to use the above code. Thinking searching every object in the world is causing the crash, but I can't think of any more efficient way to do it. The Perfobjs in each object change rather often, and each time the story-engine is run actually..
Edit: Sorry if I posted this in a bad way, or in the wrong sub-forum. I usually try to fix my problems myself, but I've been stuck on this for three days because the engine requires it to move forward...