ID:272580
Sep 29 2008, 4:10 am
|
|
I have a point system working for multiple houses, and was considering modifying my interface so that there could be a label or something that people could look at and see the current standings in the points system. I have just one problem: how would I make it so that the labels or whatever I ended up using would update themselves?
|
In response to Lummox JR
|
|
Okay, I see what you're getting at.
I tried something similar for a little announcements box made out of a label using: world<<output("[msg]","label") but that only changed it for the person who called the proc, so I'm guessing I would do it this way: for(var/mob/M in world) |
In response to Demon_F0rce
|
|
You would want to make sure you were looping though all the clients, rather than all the mobs, to avoid errors, but yes.
|
In response to Jeff8500
|
|
Thanks for that, and that post was surprisingly lecture free, no offence.
|
In response to Demon_F0rce
|
|
I don't see why you'd need a for() loop for this. Outputting something to world (world.contents) or a list already loops through it and outputs to everything in it internally, so your for() loop is simply doing the same thing the one-liner does, only slower since it's softcoded.
Outputting to world should affect all players, if it didn't looping through it manually wouldn't have really made a difference on that - unless there's some kind of BYOND bug involved or something. |
In response to Kaioken
|
|
Well I'll look at it and see if it makes a difference.
|
Well, nothing really self-updates. Usually the way to do this would be a grid, which you would show whenever a user logs in and update for all users whenever the points change.
Lummox JR