How would you have the game go through all the icon file names?
I'm coming up with an indexing system, basically I'm going to store every icon_state for every icon file in an array of images so that equipment overlays won't require new image objects everytime someone equips something
ID:162016
![]() Mar 4 2008, 11:44 am
|
|
![]() Mar 5 2008, 10:06 am
|
|
No one?
|
Consider the shell proc. The DM F1 help includes an example of using it to get directory of files. You'd have to parse out the dmi ones. Then IconStates proc for the rest.
I'm no expert, so there might be a better way... |
I was just reviewing savefiles in the DM guide and noticed some interesting code. Maybe you could do something like for(var/V in vars) if(isicon(V) ...
|
I've never seen this vars thing before used that way.
I have a question, if I define an object in the code, is it possible to reference the default variables of that object type without creating an instance of the object? |