ID:271921
Jan 13 2008, 5:41 pm
|
|
I just want to know how to do a who verb for offline & online players.
|
Jan 13 2008, 5:46 pm
|
|
I don't think that BYOND can handle displaying the 6.6 billion+ people that are not currently playing your game.
|
In response to Garthor
|
|
It won't, I'm only going to be listing a very specific thing.
|
You could add a players name to a list when they create a character. Then just display that list, splitting it into who is online and who is not.
|
In response to Yami Yugi Evil
|
|
Two very specific things: people who ARE playing your game, and people who AREN'T. Getting a list of the people who ARE playing your game is easy: use the for loop:
for(var/client/C) Getting a list of the people who AREN'T playing your game consists of subtracting that list from every other person on the planet. |
In response to Garthor
|
|
Unless the offline list is the people who have played before, but logged out.
But you didn't say that, so Garthor is being Garthor. |
Oh, you're making a bleach game right? You want to list captains of the 13 squads offline & online huh? I wish i knew how to do that too...
|
In response to Kuchiki kenpachi
|
|
Wow are you psychic or something that is exactly what I want o.O
|
In response to Yami Yugi Evil
|
|
..Like the other posts said, make a list. On Login(), after all the loading or creation stuff, add them to a list, "online". When they log out, remove them from "online" and add them to "offline".
You can check if they are special or "captains" an if() proc, and if they are, add them to "online". But don't check anything for "offline". |