Author Topic: Lists  (Read 732 times)

I need to know a way to make a list that I can add and remove stuff from, and make so that an output event can read it.

A simSet object is a list of objects. It is similar to the simGroup, except every object is in exactly one simGroup, while it can be in any number of simSets.

If you want better performance, you can use variables on a scriptObject (like %so.brick[%n]) if you add entries and never remove them, and have some mechanism for preventing duplicate entries, but unless you are scanning through and adding 10000s of bricks, a simSet will be far more than enough.

Look at Destiny's Minigame Events, perhaps.

Look at Destiny's Minigame Events, perhaps.
Found an old tool by the above gentleman that is a class of scriptobjects called a stack, read more about them, they are common programming organizational objects, search for Stack SO (or whatever you called it space).

Don't use the StackSO for that. I pretty made it because I didn't know that SimSets existed or how to use them - it's kind of useful if you want to store other arbitrary variables, but when you're storing objects the SimSet mechanism is engine-based and more reliable.