Make it so file() can access compiled resources along with added resources.
Uses:
Changing a mobs icon to another icon without a placeholder
The ability to loop threw a set of icons
for(var/A=1,A<10,A++)
usr.icon=file("[A].dmi")
The ability to assign an icon with a string
mob/verb/ChangeMyIcon(var/A as text)
var/B=file([A].dmi)
if(isicon(B))
usr.icon=B
Yeah crappy examples but I'm just trying to get a point threw. o.o
There's even a chance that it not being able to do this is a bug.
In the built-in help file it says under
icon var (atom)
"... You can also assign this to an external file at run-time with an expression such as file("wall.dmi"), but you would only want to do that when the other method is not possible, because it requires addition of the file to the resource cache, which can take a little time."
Meaning it finds the file and adds it to the resource catchy
But if it cant find the file it checks if it has one and uses that, but its not returning resource files
I would be happy with an option on it to include compiled resources in its search.
Thank you for reading. o.o
Edit:
If there's a method that I am unaware of please prove me wrong.
http://www.byond.com/developer/forum/?id=713773
I really don't care if I'm wrong or right as long as I can finish my script.