• 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.

Multiboard Help

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
set maxKills = 0
pick players in All players
-if kills[player number of picked player] >= maxKills then
--add picked player to playerGroup1
--set maxKills = kills[player number of picked player]
-else
--add picked player to playerGroup2
-endif
pick players in playerGroup1
-game - victory for picked player
pick players in playerGroup2
-game - defeat for picked player
 
The only way to keep track of kills is by using varibles. Make a integer varible an check the array checkbox. An array is a varible where you can store a lot of items. Lets name it 'PlayerKills'

Now the player number represents the 'page' of the array (player 1 kills = PlayerKills[1]; Player 2 kills = PlayerKills[2]; ect.)

Now you make a event: when a unit dies
condition: if triggering unit is a hero equal to true

actions -----Increases the player's kills by 1-----
PlayerKills[player number of (owner of killing unit)] = PlayerKills[player number of (owner of killing unit)] + 1

-----add a condition to see if the player has enought kills.
if PlayerKills[player number of (owner of killing unit)] = 50 (the required kills)
then you can do what maker said.

The muliboard is very simple to use. you create one with the periods and coloms you need and store it in a varible. Then you just display the 'PlayerKills[x]' in the multibord with the titles and stuff. There are some tutrials around the web
 
Level 6
Joined
May 13, 2013
Messages
111
Ummm.... But my game has a time limit and the player who have the highest kills will win the game. How can I do that?

EDIT: I mean, the player who have the most highest kills in the game within the time limit will win the game.
 
Last edited:
Level 12
Joined
Mar 24, 2011
Messages
1,082
set maxKills = 0
pick players in All players
-if kills[player number of picked player] >= maxKills then
--add picked player to playerGroup1
--set maxKills = kills[player number of picked player]
-else
--add picked player to playerGroup2
-endif
pick players in playerGroup1
-game - victory for picked player
pick players in playerGroup2
-game - defeat for picked player

playerGroup1 should be cleaned when a new maxKills is registered.
Like this he can get multiple victors.

Edit: Ah, I see what you did there but maybe another if-then-else should be added in case of a par.
 
Status
Not open for further replies.
Top