• 🏆 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!

Multiboard Problems

Status
Not open for further replies.
Level 2
Joined
Apr 15, 2008
Messages
17
Im having problems with getting my Multiboard to function properly :(
I used this guide: http://world-editor-tutorials.thehelper.net/multiboard.php

I apologise for the "mirrored" pictures, i dont know wtf happened when i took the screenies, but thats how they came out.
multiboard.jpg

If you can manage to read it, it is all titled correctly.
multiboardfail.jpg

But now where the titles "Kills" and "Deaths" were... There is now the number "0"
Below are my triggers, i haven't tested "Unit Level Update" as such, but i can only imagine it doesn't work either.

Create Multiboard
  • Create Multiboard
    • Events
      • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
      • Set Player_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
      • Multiboard - Create a multiboard with 7 columns and (1 + Player_Count) rows, titled Trial Of The Heroes
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player Name
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Level
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Deaths
      • Multiboard - Set the text for (Last created multiboard) item in column 5, row 1 to Race
      • Multiboard - Set the text for (Last created multiboard) item in column 6, row 1 to Unit Count
      • Multiboard - Set the text for (Last created multiboard) item in column 7, row 1 to Revive
      • For each (Integer A) from 1 to (1 + Player_Count), do (Actions)
        • Loop - Actions
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 4, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 5, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 6, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 7, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 8.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 3.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 3.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 3.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 5, row (Integer A) to 5.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 6, row (Integer A) to 3.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 7, row (Integer A) to 3.00% of the total screen width
      • Set List = 2
      • Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
        • Loop - Actions
          • Set Multiboard_Spot[(Player number of (Picked player))] = List
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row List to (Player_Colours[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row List to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row List to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 5, row List to -selecting-
          • Multiboard - Set the text for (Last created multiboard) item in column 6, row List to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 7, row List to 0
      • Multiboard - Minimize (Last created multiboard)
      • Multiboard - Show (Last created multiboard)
Player Kills Update
  • Player Kills Update
    • Events
      • Unit - A unit Dies
    • Conditions
      • (((Owner of (Killing unit)) controller) Equal to User) and (((Dying unit) is A Hero) Equal to True)
    • Actions
      • Set Kill_Count[(Player number of (Owner of (Killing unit)))] = Kill_Count[((Player number of (Owner of (Killing unit))) + 1)]
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spot[(Player number of (Owner of (Killing unit)))] to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
Player Deaths Update
  • Player Deaths Update
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Dying unit)) controller) Equal to User
    • Actions
      • Set Death_Count[(Player number of (Owner of (Dying unit)))] = Death_Count[((Player number of (Owner of (Dying unit))) + 1)]
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row (Death_Count[(Player number of (Owner of (Dying unit)))] + 1) to (String(Death_Count[(Player number of (Owner of (Dying unit)))]))
Player Level Update
  • Player Level Update
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Leveling Hero) is A Hero) Equal to True
    • Actions
      • Set Level_Count[(Player number of (Owner of (Leaving unit)))] = ((Player number of (Owner of (Leveling Hero))) + 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Level_Count[(Player number of (Owner of (Leveling Hero)))] + 1) to (String(Level_Count[(Player number of (Owner of (Leveling Hero)))]))
Unit Death Update
  • Unit Death Update
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to False
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 11 (Dark Green)
        • Then - Actions
          • Set Unit_Count[1] = (Unit_Count[1] - 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 6, row 2 to (String(Unit_Count[1]))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 10 (Light Blue)
        • Then - Actions
          • Set Unit_Count[2] = (Unit_Count[2] - 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 6, row 3 to (String(Unit_Count[2]))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 9 (Gray)
        • Then - Actions
          • Set Unit_Count[3] = (Unit_Count[3] - 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 6, row 4 to (String(Unit_Count[3]))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 12 (Brown)
        • Then - Actions
          • Set Unit_Count[4] = (Unit_Count[4] - 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 6, row 5 to (String(Unit_Count[4]))
        • Else - Actions
Also, my heroes dont seem to respawn either. As well as the respawn countdown timer counting negatives :/
The following triggers are my respawning triggers.

  • Revive Level 1to4
    • Events
      • Unit - A unit Dies
    • Conditions
      • (((Dying unit) is A Hero) Equal to True) and (((Level of (Dying unit)) Greater than or equal to 1) and ((Level of (Dying unit)) Less than or equal to 4))
    • Actions
      • Set Revive_Penalty = 5.00
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 7, row 2 to (String((Integer(Revive_Penalty))))
          • Trigger - Turn on P1 Revive Timer <gen>
          • Wait Revive_Penalty seconds
          • Trigger - Turn off P1 Revive Timer <gen>
          • Hero - Instantly revive (Dying unit) at (Center of TL Hero Spawn <gen>), Show revival graphics
          • Camera - Pan camera for (Owner of (Dying unit)) to (Center of TL Hero Spawn <gen>) over 1.00 seconds
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 7, row 2 to (String((Integer(Revive_Penalty))))
          • Trigger - Turn on P2 Revive Timer <gen>
          • Wait Revive_Penalty seconds
          • Trigger - Turn off P2 Revive Timer <gen>
          • Hero - Instantly revive (Dying unit) at (Center of TR Hero Spawn <gen>), Show revival graphics
          • Camera - Pan camera for (Owner of (Dying unit)) to (Center of TR Hero Spawn <gen>) over 1.00 seconds
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 3 (Teal)
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 7, row 2 to (String((Integer(Revive_Penalty))))
          • Trigger - Turn on P3 Revive Timer <gen>
          • Wait Revive_Penalty seconds
          • Trigger - Turn off P3 Revive Timer <gen>
          • Hero - Instantly revive (Dying unit) at (Center of BR Hero Spawn <gen>), Show revival graphics
          • Camera - Pan camera for (Owner of (Dying unit)) to (Center of BR Hero Spawn <gen>) over 1.00 seconds
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 4 (Purple)
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 7, row 2 to (String((Integer(Revive_Penalty))))
          • Trigger - Turn on P4 Revive Timer <gen>
          • Wait Revive_Penalty seconds
          • Trigger - Turn off P4 Human Spawns <gen>
          • Hero - Instantly revive (Dying unit) at (Center of BL Hero Spawn <gen>), Show revival graphics
          • Camera - Pan camera for (Owner of (Dying unit)) to (Center of BL Hero Spawn <gen>) over 1.00 seconds
        • Else - Actions
P1 Revive Timer
  • P1 Revive Timer
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Revive_Time[1] = (Revive_Time[1] - 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 7, row 2 to (String(Revive_Time[1]))


Lastly, how do i get rid of that ugly icon just before the playername?

Cheers for the help, muchly appreciated.
 

Attachments

  • multiboard.jpg
    multiboard.jpg
    17.5 KB · Views: 69
  • multiboardfail.jpg
    multiboardfail.jpg
    19 KB · Views: 59
Level 17
Joined
Feb 11, 2011
Messages
1,860
1. When do the titles change? When you get a kill or a death?
2. Use Revive (Triggering unit) instead of (Dying unit). If another unit dies it will clash with the trigger.
3. Put this in when you create the board:
  • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
Repeat this for all rows.
 
Level 2
Joined
Apr 15, 2008
Messages
17
There is one trigger for dying, and another for getting a kill. Both of these triggers have the same error.

And my multiboard already has that action in it. It's in the first trigger I posted.
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
And my multiboard already has that action in it. It's in the first trigger I posted.

Yes, but it says column 1, row 1, column 2, row , column 3, row 3.....
The column must ALWAYS be 1.

In your death count and level count, it should say

  • Multiboard - Set the text for (Last created multiboard) item in column x, row Multiboard_Spot[(Player number of (Owner of (Killing unit)))] to (String(Kill_Count[(Player number of (Owner of (Killing unit)))])
x = 4 for deaths
x = 2 for level
 
Status
Not open for further replies.
Top