• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help with a system over here! :p

Status
Not open for further replies.
Level 2
Joined
Jan 16, 2011
Messages
6
Well, I'm kinda stuck with a player-checking related problem, so I hope here I will find the solution :p

I'm slowly learning all this whole Editor thing so there will be things I understand, but if you have the time to directly create a test map it would be much better.

However, to the point. If you have any doubts about this system feel free to ask. There is a map with 4 playable slots. There also is 1 pre-defined region near the start point of each one, but as in standard games the starting location of a player is randomized between those 4 points, you don't know which player will be in which slot unless you start the game.

I would need:
  • A trigger to check how many players are actually playing. Max. is 4, but it could also be a 1v1 match.
  • A system who checks what is the nearest pre-defined region to each player's starting point, and creates a unit for that player (a "House") in the center of the region.
    So if there are 4 players, they would start each one with a "House" for their own, created in the region that "belongs" to them.
  • It is possible for other people to enter as observers/referees, so the system should work even if the first four game slots (for example) are filled with observers instead of players.
  • When a House dies, another one replaces it after a few seconds, but that's easy. What I'm also looking forward to, is to create a small and simple scoreboard which would show how many Houses has each player destroyed.
    I'm not asking you to make the whole scoreboard thing for me (i don't know if thats difficult) but if you could then give me some advice on it, it would be also appreciated.

Thanks in advance, to all of you!
 
http://www.hiveworkshop.com/forums/jass-functions-413/system-pt-player-tracking-142554/ for players

->A system who checks what is the nearest pre-defined region to each player's starting point, and creates a unit for that player (a "House") in the center of the region.

Impossible without registering the regions >.>. Why not not just assign each player a starting point? ;|

->It is possible for other people to enter as observers/referees, so the system should work even if the first four game slots (for example) are filled with observers instead of players.

Make custom player slot state. If the player slot state is ref or observer, don't make a unit for them.

->When a House dies, another one replaces it after a few seconds, but that's easy. What I'm also looking forward to, is to create a small and simple scoreboard which would show how many Houses has each player destroyed.
I'm not asking you to make the whole scoreboard thing for me (i don't know if thats difficult) but if you could then give me some advice on it, it would be also appreciated.

When a unit dies, if that unit is of type house, get the owner id of the killing unit and increase it's kill count by 1 and then update the multiboard ; |.



All rather simple really : )
 
Level 2
Joined
Jan 16, 2011
Messages
6
Impossible without registering the regions >.>. Why not not just assign each player a starting point? ;|

The map itself wouldn't have much sense if everyone started always at the same place depending of their slot in the game. Hmm, what about this: instead of regions, what about having the Houses already created in the map (property:neutral)?

The game should then check if there is an active player near the House, and then transfer its property to him. But I'm still kinda lost on how that should be triggered.
 
->The game should then check if there is an active player near the House, and then transfer its property to him. But I'm still kinda lost on how that should be triggered.

No... just assign your own start location to each player via locations or reals.

set playerStartLocationX[0] = //wherever you want
set playerStartLocationY[0] = //wherever you want
 
Status
Not open for further replies.
Top