Running_dap
New Member
- Reaction score
- 3
Im making a multiboard, that shows the stats of the hero. If the current stats are higher than the stats excluding the bonus, then i want the stats "numbers" to be shown in green. If the current stats are equal than those without the bonus, then they must be shown white. If the current stats are lesser than the stats excluding the bonus, then i want them in red. The trigger i've created works on the first 2 occassions (greena and white), but for some reason, the red color just wont show up if the hero got a negative bonus in the stats... here is my code:
If some stat has a negative bonus, then the number shown in the multiboard is the right one, but it's not in red... :/
EDIT: Just ignore the event and the conditions to run this trigger. It is run through an other trigger.
Code:
Creation of the Multiboard
Events
Conditions
Actions
Multiboard - Create a multiboard with 2 columns and 6 rows, titled Stats
Multiboard - Set the display style for (Last created multiboard) item in column 0, row 0 to Show text and Hide icons
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (Name of Summoner 0000 <gen>)
Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to |cffffcc00Strength:...
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Strength of Summoner 0000 <gen> (Include bonuses)) Greater than (Strength of Summoner 0000 <gen> (Exclude bonuses))
Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to ((|cff07fe2d + (String((Strength of Summoner 0000 <gen> (Include bonuses))))) + |r)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Strength of Summoner 0000 <gen> (Exclude bonuses)) Less than (Strength of Summoner 0000 <gen> (Exclude bonuses))
Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to ((|cffff0000 + (String((Strength of Summoner 0000 <gen> (Include bonuses))))) + |r)
Else - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String((Strength of Summoner 0000 <gen> (Include bonuses))))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to |cffffcc00Agility:|...
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Agility of Summoner 0000 <gen> (Include bonuses)) Greater than (Agility of Summoner 0000 <gen> (Exclude bonuses))
Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to ((|cff07fe2d + (String((Agility of Summoner 0000 <gen> (Include bonuses))))) + |r)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Agility of Summoner 0000 <gen> (Exclude bonuses)) Less than (Agility of Summoner 0000 <gen> (Exclude bonuses))
Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to ((|cffff0000 + (String((Agility of Summoner 0000 <gen> (Include bonuses))))) + |r)
Else - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to (String((Agility of Summoner 0000 <gen> (Include bonuses))))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to |cffffcc00Intellige...
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Intelligence of Summoner 0000 <gen> (Include bonuses)) Greater than (Intelligence of Summoner 0000 <gen> (Exclude bonuses))
Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to ((|cff07fe2d + (String((Intelligence of Summoner 0000 <gen> (Include bonuses))))) + |r)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Intelligence of Summoner 0000 <gen> (Exclude bonuses)) Less than (Intelligence of Summoner 0000 <gen> (Exclude bonuses))
Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to ((|Cffff0000 + (String((Intelligence of Summoner 0000 <gen> (Include bonuses))))) + |r)
Else - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to (String((Intelligence of Summoner 0000 <gen> (Include bonuses))))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to |cffffcc00Spell Pow...
Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to (String((Custom value of Summoner 0000 <gen>)))
Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 10.00% of the total screen width
For each (Integer A) from 2 to 6, do (Actions)
Loop - Actions
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 10.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
If some stat has a negative bonus, then the number shown in the multiboard is the right one, but it's not in red... :/
EDIT: Just ignore the event and the conditions to run this trigger. It is run through an other trigger.