ID:171265
 
is there a var that i could add that applys to everything? mobs turf and obj and a way to minus it from everything
Strawgate wrote:
is there a var that i could add that applys to everything? mobs turf and obj and a way to minus it from everything

If you define a var for /atom, then it will apply to all objs, mobs, turfs, and areas.

Lummox JR
atom/var? var? What do you mean?
If I understand what you're saying, you want a variable which would be the same for every single type, or that is what I heard from you at least.

If you want that, you should use global variables. When one mob's global variable changes, all of the mob's global variable changes.

mob
var/global/asdf


If asdf were to change for one mob, all mob's "asdf" variable would change.

~~> Dragon Lord
In response to Crashed
um like..
atom/var
Whatever

that would apply the variable to all
turfs
areas
mobs
exc
exc
In response to Lummox JR
but i want it so if it changes for me it changes for EVERYONE
In response to Strawgate
Strawgate wrote:
but i want it so if it changes for me it changes for EVERYONE

Read Dragon Lord's post again.
In response to Unknown Person
but then how do i change the world var
In response to Unknown Person
Unknown Person wrote:
If I understand what you're saying, you want a variable which would be the same for every single type, or that is what I heard from you at least.

If you want that, you should use global variables. When one mob's global variable changes, all of the mob's global variable changes.

There's no such thing as "a mob's global var", because a global var doesn't belong to any mob at all.

mob
var/global/asdf


That could work I guess, but much better would be this:

var/asdf


Lummox JR
In response to Lummox JR
but then how do i change it? during a proc or a verb
In response to Strawgate
You can change a variable anywhere.