I want to add multiple objects to a list and when I create a new object, that one is automaticly added to the list. Is there a possible way to do this. I know it would be something like:
mob/var/list/BattleChips = typesof(/obj/Battle_Chips/Regular).
ID:345660
Feb 24 2012, 9:44 pm
|
|
Feb 25 2012, 4:55 am
|
|
I think I made a feature request for a newlist/typesof hybrid a long time ago, but that never stuck. (I tried doing "newlist(arglist(typesof()))")
|
You could make modifications on New.
mob |
In response to Kaiochao
|
|
Kaiochao wrote:
I think I made a feature request for a newlist/typesof hybrid a long time ago, but that never stuck. (I tried doing "newlist(arglist(typesof()))") > proc/newtypes(types[]) Tried it, and it came up with this error: Test.dm:8:error: =: expected a constant expression |