• 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

Status
Not open for further replies.
Level 9
Joined
Feb 20, 2014
Messages
409
Hi,here is what I tried to do but it doesn't work:
I have 2 column with 4 raws
kills : 0
lumber : 0
silver : 0
stone : 0

Firstly,I don't know how to add + 1 on kill when i kill unit.
Then,lumber silver and stone are items but they are removed when you picked them so I want to have + 1 on the multiboard when you picked one of them.
Help please.
 
Under the assumption each value is specific to a player, you just need to store it an integer array using the player number of the player as the index. Then when you need to change it, all you need to do is use the Multiboard - Set Item Text function:

  • Multiboard - Set the text for YourMultiboard item in column SomeColumn, row SomeRow to SomeInteger[Player number of Player]
You will of course need to convert SomeInteger to a string.
 
Level 3
Joined
Jun 18, 2016
Messages
68
Event - a unit dies

conditions - dying unit is an enemy of killing unit equal to true

actions -
Set Kill[Player numbers of (Owner of (Killing Unit)) = Kill[Player numbers of (Owner of (Killing Unit)) + 1

Multiboard - Set the text for (Multiboard) item in column (kill column), row (Player numbers of (Owner of (Killing Unit)) to Kill[Player numbers of (Owner of (Killing Unit))

Try this, this may work
 
Level 3
Joined
Jun 18, 2016
Messages
68
  • Multiboard Kill
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
    • Actions
      • Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Multiboard - Set the text for Multiboard item in column (Your Column), row (Your Row) to (String(Kills[(Player number of (Owner of (Killing unit)))]))
Try this, this may work

  • Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
Player number of (Owner of (Killing unit)) means that the player number of it, example if the killing unit are Player 1, so its mean Kills[Player 1], if the killing unit are Player 7, and its mean Kills[Player 7]. I hope you get it

and i set it Kills[x] = Kills[x] + 1 because you kill one enemy unit and you increases the number of killed unit by killing unit. Example you start with 0, you kill 3 enemy in a row and you get +1 for 3 times and your killing score are 3.

Then, set the multiboard text at where your killing score should be, column and row for which player....

sry for my bad english
 
Last edited:
Status
Not open for further replies.
Top