• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Multiboard lovin

Status
Not open for further replies.
Level 7
Joined
Dec 8, 2005
Messages
319
ok so my multi board works fine as far as every new unit that is added to the game. the multiboard adds the correct number of units. yet if a tower kills one of player 9 units, it adds one unit to player 10 side and vise versa. the multi board will add that 1 dead unit to player 10 yet it does not subtract the 1 unit from player 9

example:
player 9 has 20 units
player 10 has 20 units

multiboard says:
player 9 = 20 units
player 10 = 20 units

I kill 1 of player 9 units

multiboard says:
player 9 = 20 units
player 10 = 21 units

although player 9 only has 19 units... any ideas? this is my trigger
  • trigger update
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Multiboard - Set the text for Multiboard item in column 2, row 2 to (String((Number of units in (Units in (Playable map area) owned by Player 9 (Gray)))))
      • Multiboard - Set the text for Multiboard item in column 2, row 1 to (String((Number of units in (Units in (Playable map area) owned by Player 10 (Light Blue)))))
 
Level 7
Joined
Dec 8, 2005
Messages
319
I swear, the second I make the post... I finally see the thing I was over looking... wow feel dumb now... but for who ever this might help this is the trigger you need to keep count
  • trigger update
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Multiboard - Set the text for Multiboard item in column 2, row 2 to (String((Number of living Sea Giant units owned by Player 9 (Gray))))
      • Multiboard - Set the text for Multiboard item in column 2, row 1 to (String((Number of living Sea Giant units owned by Player 10 (Light Blue))))
 
Status
Not open for further replies.
Top