Reply to Re: Question
If you don't have an account, just leave the password field blank.
I just looked it up in the Almighty DinkC Reference. It says:
All make_global_int() variables and all "int" variables of all running scripts share a single pool of 248 slots for variables.
LATE ADDITION: There are also some hints in it to make maximum use of as few as possible variables:
- define them sparingly, re-using variables when it can be done safely;
- define them later in the script when it makes sense. For example, if the defining of a variable can be put off until the "die()" proc of a monster brain, the variable uses no slots until the script is almost ready to be discarded from memory.
- use kill_this_task() to kill scripts no longer needed.
Next to those, there are also a few script tricks. Think of editor_seq() abuse and supervars. If you don't know how they work, don't bother with it
All make_global_int() variables and all "int" variables of all running scripts share a single pool of 248 slots for variables.
LATE ADDITION: There are also some hints in it to make maximum use of as few as possible variables:
- define them sparingly, re-using variables when it can be done safely;
- define them later in the script when it makes sense. For example, if the defining of a variable can be put off until the "die()" proc of a monster brain, the variable uses no slots until the script is almost ready to be discarded from memory.
- use kill_this_task() to kill scripts no longer needed.
Next to those, there are also a few script tricks. Think of editor_seq() abuse and supervars. If you don't know how they work, don't bother with it