I am trying to create unique multiboards for each player of my map that will show how many of each faction or trait type they have, I am trying to make it so rather than it show every single type of faction/trait it will only show what the player actually has. So to do this I have made it so that the rows increase/decrease accordingly - however it has led to some weird text overlaps? I have tried adding to the update trigger to clear and remake the relevant multiboard but that just kept making the game crash instead...
Any idea why this is happening or how to fix it?
Any idea why this is happening or how to fix it?
-
Update Faction Multiboard
-
Events
-
Conditions
-
Actions
-
Set VariableSet TempCount = 0
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Ancient[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Ancient
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Ancient[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Bandit[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Bandit
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Bandit[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Beast[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Beast
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Beast[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Demon[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Demon
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Demon[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Dwarf[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Dwarf
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Dwarf[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Human[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Human
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Human[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Naga[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Naga
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Naga[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_NightElf[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Night Elf
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_NightElf[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Orc[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Orc
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Orc[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Spectre[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Spectre
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Spectre[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in FactionGroup_Undead[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardFactions[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 1, row TempCount to Undead
-
Multiboard - Set the text for MultiboardFactions[TempInt] item in column 2, row TempCount to (String((Number of units in FactionGroup_Undead[TempInt])))
-
-
Else - Actions
-
-
Multiboard - Set the display style for MultiboardFactions[TempInt] item in column 0, row 0 to Show text and Hide icons
-
Multiboard - Set the width for MultiboardFactions[TempInt] item in column 1, row 0 to 6.00% of the total screen width
-
Multiboard - Set the width for MultiboardFactions[TempInt] item in column 2, row 0 to 4.00% of the total screen width
-
-
-
Update Trait Multiboard
-
Events
-
Conditions
-
Actions
-
Set VariableSet TempCount = 0
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Assassin[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Assassin
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Assassin[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Beastmaster[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Beastmaster
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Beastmaster[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Brawler[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Brawler
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Brawler[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Fighter[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Fighter
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Fighter[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Machine[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Machine
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Machine[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Mage[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Mage
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Mage[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Mauler[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Mauler
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Mauler[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Protector[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Protector
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Protector[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Ranger[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Ranger
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Ranger[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Spellcaster[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Spellcaster
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Spellcaster[TempInt])))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TraitGroup_Summoner[TempInt]) Greater than 0
-
-
Then - Actions
-
Set VariableSet TempCount = (TempCount + 1)
-
Multiboard - Change the number of rows for MultiboardTraits[TempInt] to TempCount
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 1, row TempCount to Summoner
-
Multiboard - Set the text for MultiboardTraits[TempInt] item in column 2, row TempCount to (String((Number of units in TraitGroup_Summoner[TempInt])))
-
-
Else - Actions
-
-
Multiboard - Set the display style for MultiboardTraits[TempInt] item in column 0, row 0 to Show text and Hide icons
-
Multiboard - Set the width for MultiboardTraits[TempInt] item in column 1, row 0 to 6.00% of the total screen width
-
Multiboard - Set the width for MultiboardTraits[TempInt] item in column 2, row 0 to 4.00% of the total screen width
-
-