View Single Post
  #6  
Old 07-13-2006, 08:39 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
the scope of non-prefixed vars:
An NPC's static variables - local to the NPC (can be written x= or this.x=).
Any other vars that are built-in (ex. players, npcs arrays)
A function parameter- local to the function.
Otherwise, it's a global variable that all scripts share.

If you're using a variable temporarily, like send some data into a function and simply returning a value, I'd use a temp.var.
Reply With Quote