ID:269653
Aug 26 2005, 8:08 am
|
|
How do you dispense an increase in a var, such as exp, to every player/client/user in the game?
|
In response to Lou
|
|
That will distribute it to everyone in the game at that time?
|
In response to Justin Knight
|
|
Actually, itll just give it to all the mobs, but if you had a special player type, than you can set it to that.
for(var/mob/player/M in world) |
In response to Lou
|
|
Oh, it's that simple? I thought it was more complicated than that. I could have did it without asking the question then, thanks.
|
In response to Justin Knight
|
|
Maybe you should be more specific:
for(var/mob/X in world) if(X.client) X.exp+=10 That will give it to ACTUAL people, instead of every mob, and may indeed create less lag. |
In response to Chrisman767
|
|
Thanks Chris, that's what I was looking for.
|
In response to Chrisman767
|
|
Um...chris? for(var/mob/player/M in world) this checks only the player sub types...
|
this wat u want?