• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Create Multiboard

Status
Not open for further replies.
Level 1
Joined
Jul 3, 2010
Messages
2
Hi,
im razzzerr from germany and have the problem, that i am not able to create a multiboard.

i use the wood to count kills, and want to show them in a multiboard.


if someone could help me it would be very great :)
 
Level 16
Joined
May 1, 2008
Messages
1,605
Moin moin =)

First of all: Welcome to hive =) - hope you have a good time here with us in a great community ^^

Ok first of all you create an -integer- variable with array, to store the kills in it. The storing in one trigger action looks like this:
  • TestTrig2144
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set CountWood[(Player number of (Owner of (Killing unit)))] = (CountWood[(Player number of (Owner of (Killing unit)))] + 1)

1) Create a new triggeraction. Use the action: Set Variable, and pick your variable and click ok.

2) Now you see after the variable [Index]. Click on it and in the new window you search in the function list for "Player - Player Number" and select this.

3) Now you see there (Triggering Player). Click on it and in the new window you search in the function list for: "Owner of Unit" and select instead of Triggering Unit - Killing unit

4) Now press twice ok and the first part is finished. Now we we after the = the Value and click on it.

5) In the new windows you select in the function list: "Arithmetic" and again there's Value and click this. Now select your variable in the new window and do the same points ( 1 - 4 ) again

6) Done


Now you can simple show this stored variable in the multiboard with:
  • Multiboard - Set the text for (Your Multiboard) item in column X, row X to (String(CountWood[(Player number of Player 1 (Red))]))
So at the end the trigger looks like this:
  • TestTrig2144
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set CountWood[(Player number of (Owner of (Killing unit)))] = (CountWood[(Player number of (Owner of (Killing unit)))] + 1)
      • Multiboard - Set the text for (Your Multiboard) item in column X, row X to (String(CountWood[(Player number of Player 1 (Red))]))

Also grundlegend ganz einfach. Du machst dir eine integer variable mit einem Array ( einfach array markieren und fertig )

Dann machst du die Aktion die ich oben gesagt habe - Sorry aber den Weg für "Player number of (Owner of(Killing unit)) werde ich nicht ins deutsche übersetzten, weil des zu lange dauert ^^ )

Nach dem du die Variable gemacht hast, fügst du die letzte Aktion ein, das die Variable auch gezeigt wird. Dabei musst nur drauf achten, dass du für den richtigen Spieler, die richtige reihe und Zeile nimmst.

[ Hilfe kann ich dir aber über TS oder skype oder so geben dann via Headset ]


Note: In this forum please write only English!! This is only an exception that I write in German. ( private massage are ok in every language )
Hinweis: Bitte nur Englisch in dem Forum schreiben. Es ist nur eine Ausnahme das ich auf Deutsch schreibe ( privat Nachrichten sind auf deutsch aber ok )

Greetings
~ The Bomb King > Dr. Boom
 
Status
Not open for further replies.
Top