ID:159616
 
How would one define a variable? Sorry, noob question.
Two ways, and 6 different parents of those variables.

var/variable //global var
var
variable //global var

mob/var/variable //mob var
mob
var
variable //mob var

//And so on for obj, turf, atom, and world
In response to Spunky_Girl
A little confused? More detail, please.
In response to Xorbah
There's no detail to be added. You asked how to define variables. That's how.

By the way, local variables work the same way, but can only be referenced by the proc/verb/loop it's defined under.
In response to Xorbah
Xorbah wrote:
A little confused? More detail, please.

http://www.byond.com/docs/guide/