ID:1191877
 
(See the best response by Kaiochao.)
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?
http://www.byond.com/docs/ref/index.html
The DM Reference seems to do a pretty good job, explaining it.
Yes, I have read it. Just looking for other examples to clarify my thoughts.
Best response
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.
Also another time to make a variable a tmp is if you are using it to reference another mob or object. (for save reasons)
Having a whole other mob attached to yours could cause trouble later on.