I just want to familiarize myself on when to use the tmp var command. What are other clear examples of instances on when/where to use this var?
|
It's very straightforward. If you don't want a variable saved, you declare it as a tmp variable. You should really know if a variable should be tmp or not, as it very much depends on what the variable was made to do.
Technically, if you're making savefiles the long and tedious way (by doing savefile["variable"] << variable for each variable you want to save), you don't really need tmp aside from being able to read it and know it's not meant to be saved, from where it's declared. |
The DM Reference seems to do a pretty good job, explaining it.