I made a multiboard, my first ..... and its glitch, when i click on a unit the unit become mine O_O
its from the multiboard for sure i tested all my trigger 1 by 1
heres the code, The ninja Real is used to show Ninja Level of the current Player Hero he is playing, they only play 1 hero at a time,
the clock is also weird
its from the multiboard for sure i tested all my trigger 1 by 1
heres the code, The ninja Real is used to show Ninja Level of the current Player Hero he is playing, they only play 1 hero at a time,
the clock is also weird
code
Create MultiBoards
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 2, do (Actions)
Loop - Actions
Multiboard - Create a multiboard with 2 columns and 19 rows, titled Naruto Tribute Worl...
Set multiBoardArray[(Integer A)] = (Last created multiboard)
Multiboard - Hide multiBoardArray[(Integer A)]
-------- Row 1: Game Time and Countdown to Duel --------
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 1, row 1 to 7.50% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 2, row 1 to 3.50% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 3, row 1 to 7.50% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 4, row 1 to 3.50% of the total screen width
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 0, row 1 to Show text and Hide icons
Multiboard - Set the text for multiBoardArray[(Integer A)] item in column 1, row 1 to |cffffcc00Game Time...
Multiboard - Set the text for multiBoardArray[(Integer A)] item in column 3, row 1 to |cffffcc00Next Duel...
-------- Row 2: Empty --------
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 0, row 2 to Hide text and Hide icons
-------- Row 3: Headings ( Ninja real) --------
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 1, row 3 to 10.00% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 2, row 3 to 4.00% of the total screen width
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 0, row 3 to Show text and Hide icons
Multiboard - Set the text for multiBoardArray[(Integer A)] item in column 2, row 3 to |cffffcc00Ninja Lev...
-------- Row 4: ---------------------------------------------------------- --------
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 1, row 4 to 22.00% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 2, row 4 to 0.00% of the total screen width
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 0, row 4 to Show text and Hide icons
Multiboard - Set the text for multiBoardArray[(Integer A)] item in column 1, row 2 to -------------------...
-------- Row 5: Team 1 Details --------
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 1, row 5 to 10.00% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 2, row 5 to 4.00% of the total screen width
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 0, row 5 to Show text and Hide icons
Multiboard - Set the text for multiBoardArray[(Integer A)] item in column 1, row 5 to |cffffcc00Team 1|r
-------- Row 6: Player 1 Details --------
For each (Integer B) from 6 to 11, do (Actions)
Loop - Actions
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 1, row (Integer B) to 10.00% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 2, row (Integer B) to 4.00% of the total screen width
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 1, row (Integer B) to Show text and Show icons
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 2, row (Integer B) to Show text and Hide icons
Multiboard - Set the text for multiBoardArray[(Integer A)] item in column 1, row (Integer B) to (Name of (Player(((Integer B) - 5))))
-------- Row 7: Player 2 Details --------
-------- Row 8: Player 3 Details --------
-------- Row 9: Player 4 Details --------
-------- Row 10: Player 5 Details --------
-------- Row 11: player 6 detail --------
-------- Row 12: Team 2 Details --------
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 1, row 12 to 10.00% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 2, row 12 to 4.00% of the total screen width
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 0, row 12 to Show text and Hide icons
Multiboard - Set the text for multiBoardArray[(Integer A)] item in column 1, row 12 to |cffffcc00Team 2|r
-------- Row 13: Player 6 Details --------
For each (Integer B) from 13 to 18, do (Actions)
Loop - Actions
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 1, row (Integer B) to 10.00% of the total screen width
Multiboard - Set the width for multiBoardArray[(Integer A)] item in column 2, row (Integer B) to 4.00% of the total screen width
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 1, row (Integer B) to Show text and Show icons
Multiboard - Set the display style for multiBoardArray[(Integer A)] item in column 2, row (Integer B) to Show text and Hide icons
Multiboard - Set the text for multiBoardArray[(Integer A)] item in column 1, row (Integer B) to (Name of (Player(((Integer B) - 6))))
Wait 1.00 seconds
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Custom script: if GetLocalPlayer() == ConvertedPlayer(GetForLoopIndexA()) then
Multiboard - Show multiBoardArray[1]
Custom script: endif
For each (Integer A) from 7 to 12, do (Actions)
Loop - Actions
Custom script: if GetLocalPlayer() == ConvertedPlayer(GetForLoopIndexA()) then
Multiboard - Show multiBoardArray[2]
Custom script: endif
code2
Update Game Time and Ninja level
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set integerGameTimeElapsed = (integerGameTimeElapsed + 1)
Multiboard - Set the text for multiBoardArray[1] item in column 2, row 1 to (String(integerGameTimeElapsed))
Multiboard - Set the text for multiBoardArray[2] item in column 2, row 1 to (String(integerGameTimeElapsed))
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Multiboard - Set the text for multiBoardArray[1] item in column 2, row ((Integer A) + 5) to (String(((Integer(RealTest1_Copy[(Integer A)])) + (Integer(.00X)))))
Multiboard - Set the text for multiBoardArray[2] item in column 2, row ((Integer A) + 5) to (String(((Integer(RealTest1_Copy[(Integer A)])) + (Integer(.00X)))))
For each (Integer B) from 6 to 11, do (Actions)
Loop - Actions
Multiboard - Set the text for multiBoardArray[1] item in column 2, row ((Integer B) + 7) to (String(((Integer(RealTest1_Copy[(Integer B)])) + (Integer(.00X)))))
Multiboard - Set the text for multiBoardArray[2] item in column 2, row ((Integer B) + 7) to (String(((Integer(RealTest1_Copy[(Integer B)])) + (Integer(.00X)))))
code3
Update Icon Select Hero
Events
Player - Player 1 (Red) Selects a unit
Conditions
(Unit-type of (Triggering unit)) Not equal to Lich
Actions
Unit - Change ownership of (Triggering unit) to (Triggering player) and Change color
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player number of (Owner of (Triggering unit))) Less than 6
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Multiboard - Set the icon for multiBoardArray[1] item in column 1, row ((Player number of (Owner of (Triggering unit))) + 5) to ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
Multiboard - Set the icon for multiBoardArray[2] item in column 1, row ((Player number of (Owner of (Triggering unit))) + 5) to ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Archmage
Then - Actions
Multiboard - Set the icon for multiBoardArray[1] item in column 1, row ((Player number of (Owner of (Triggering unit))) + 5) to ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
Multiboard - Set the icon for multiBoardArray[2] item in column 1, row ((Player number of (Owner of (Triggering unit))) + 5) to ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Multiboard - Set the icon for multiBoardArray[1] item in column 1, row ((Player number of (Owner of (Triggering unit))) + 7) to ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
Multiboard - Set the icon for multiBoardArray[2] item in column 1, row ((Player number of (Owner of (Triggering unit))) + 7) to ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Archmage
Then - Actions
Multiboard - Set the icon for multiBoardArray[1] item in column 1, row ((Player number of (Owner of (Triggering unit))) + 7) to ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
Multiboard - Set the icon for multiBoardArray[2] item in column 1, row ((Player number of (Owner of (Triggering unit))) + 7) to ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
Else - Actions