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 25 2012, 12:44 am
|
|
#1 Feb 25 2012, 7: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()))")
| ||
#2 Feb 25 2012, 8:34 am
|
||
You could make modifications on New.
| ||
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()))") Tried it, and it came up with this error: Test.dm:8:error: =: expected a constant expression | ||
#4 Feb 25 2012, 3:39 pm
|
|
You'll probably just have to put it in mob/New(), then.
| |