ID:155221
![]() Aug 17 2011, 12:02 pm
|
|
Hello, I'm trying make a system to choose any one player to be the killer, so I dont idea how to make it.
|
![]() Aug 17 2011, 12:54 pm
|
|
Could you explain better what you exactly want?
|
Idk if i'm correct, but u can probably make a new list that has all the players in it and assign them a number, then randomly select one from the list using the pick proc Im guessing. I doubt I'm right but it could possibly work?
|
SoulGamesProductions wrote:
I think so, but I'm not a great Cooder, I do not know how to do it right I'm not on either, but read the DM guide and use the DM reference(f1) while you're in the dream maker. |
SoulGamesProductions wrote:
I want to know how to select any one player in the game There are many ways to do this. You have to be more specific. |
I'm not a mind reader. I don't know why you want this, what you are applying it to, or what you are searching for. I don't know how you want someone to be picked. At random? Based on stats? What? All I have to go on is your one-sentence descriptions of what you want.
|
I'm trying to do an automated system in which only select a player to be a character, as kira, naruto, the killer...
|
var list/l = list()//Populate this list with mobs to pick from |
Just a word of advice: you generally do not want to loop through every mob in the game if you're trying to locate players. Instead, you want to loop through clients:
var/list/possible = list() This saves you a lot of CPU power if you have a lot of /mobs in the game. |