This is probably going to sound stupid, but is there any way to create static procs or variables in BYOND?
Basically, I want a global list to store the name of each type of tool object. I figure it would be easiest to do by having each tool object register itself with said list, but I don't want it to have to search the whole list to see if it's already been added. Figured it would be easiest done with static stuff.
ID:270924
Nov 1 2006, 9:55 pm
|
|
In response to Jp
|
|
Jp wrote:
You can have global procs or variables, but that's about it - no statics, I'm afraid. > var/list/toollist Tada! var/static/static_variable btw, static is like global. |
You could generate that list using the typesof() proc, by the way.
Tada!