It just examples, not my problems, don't offer me workarounds to this code:
for(var/i in content)
if(isref(i))
world.log << "[i] is reference. Deleting from inventory."
del(i)
for(var/i in overlays)
if(isref(i))
del(i)
ID:2532845
![]() Dec 28 2019, 12:31 am
|
|||||||
Redundant
| |||||||
This proc must contain isicon, isloc, istype(reference, /image) istype(reference, /list) and etc.
It just examples, not my problems, don't offer me workarounds to this code: for(var/i in content) |
Lummox, i want to for(var/i in vars) and if in i - reference do something and i don't want to create macros or long if with istype(), isicon, isloc, islist and etc....
And man. i said it isn't my problem, it is JUST EXAMPLE of code |
And with an overlays list of course the items within are all appearances, which you can't delete.