| 01-22-2005, 08:39 PM | #1 |
I'm aware that this has been asked and answered, and I'v searched for it, but can someone please tell me the exact JASS triggering (changed to fit my trigger) and how to implement it? Thanks. Code:
Multiboard
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Multiboard - Create a multiboard with 2 columns and 8 rows, titled Unit Stats
Set UnitStatsMulti = (Last created multiboard)
Multiboard - Hide UnitStatsMulti
Multiboard - Set the text for UnitStatsMulti item in column 1, row 1 to Unit Name:
Multiboard - Set the text for UnitStatsMulti item in column 1, row 2 to Current Speed:
Multiboard - Set the text for UnitStatsMulti item in column 1, row 3 to Default Speed:
Multiboard - Set the text for UnitStatsMulti item in column 1, row 4 to Current Acquisition...
Multiboard - Set the text for UnitStatsMulti item in column 1, row 5 to Default Acquisition...
Multiboard - Set the text for UnitStatsMulti item in column 1, row 6 to Unit HP
Multiboard - Set the text for UnitStatsMulti item in column 1, row 7 to Unit Mana
Multiboard - Set the text for UnitStatsMulti item in column 1, row 8 to Owning Player's Gol...
Multiboard - Set the text for UnitStatsMulti item in column 1, row 9 to Owning Player's Lum...
Multiboard - Set the text for UnitStatsMulti item in column 1, row 10 to Owning Player's Foo...
Multiboard - Set the display style for UnitStatsMulti item in column 1, row 1 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 1, row 2 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 1, row 3 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 1, row 4 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 1, row 5 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 1, row 6 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 1, row 7 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 1, row 8 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 1 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 2 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 3 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 4 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 5 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 6 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 7 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 8 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 9 to Show text and Hide icons
Multiboard - Set the display style for UnitStatsMulti item in column 2, row 10 to Show text and Hide icons
Multiboard - Set the width for UnitStatsMulti item in column 1, row 1 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 1 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 2 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 2 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 3 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 3 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 4 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 4 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 5 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 5 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 6 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 6 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 7 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 7 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 8 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 8 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 9 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 9 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 1, row 10 to 15.00% of the total screen width
Multiboard - Set the width for UnitStatsMulti item in column 2, row 10 to 15.00% of the total screen width
Multiboard - Show UnitStatsMultiCode:
Update Unit Stats
Events
Time - Every 0.20 seconds of game time
Conditions
Actions
Multiboard - Set the text for UnitStatsMulti item in column 2, row 1 to (Name of SelectedUnit)
Multiboard - Set the text for UnitStatsMulti item in column 2, row 2 to (String((Integer((Current movement speed of SelectedUnit)))))
Multiboard - Set the text for UnitStatsMulti item in column 2, row 3 to (String((Integer((Default movement speed of SelectedUnit)))))
Multiboard - Set the text for UnitStatsMulti item in column 2, row 4 to (String((Integer((Current acquisition range of SelectedUnit)))))
Multiboard - Set the text for UnitStatsMulti item in column 2, row 5 to (String((Integer((Default acquisition range of SelectedUnit)))))
Multiboard - Set the text for UnitStatsMulti item in column 2, row 6 to ((String((Integer((Life of SelectedUnit))))) + ( / + ((String((Integer((Max life of SelectedUnit))))) + ( ( + ((String((Integer((Percentage life of SelectedUnit))))) + %))))))
Multiboard - Set the text for UnitStatsMulti item in column 2, row 7 to ((String((Integer((Mana of SelectedUnit))))) + ( / + ((String((Integer((Max mana of SelectedUnit))))) + ( ( + ((String((Integer((Percentage mana of SelectedUnit))))) + %))))))
Multiboard - Set the text for UnitStatsMulti item in column 2, row 8 to (String(((Owner of SelectedUnit) Current gold)))
Multiboard - Set the text for UnitStatsMulti item in column 2, row 9 to (String(((Owner of SelectedUnit) Current lumber)))
Multiboard - Set the text for UnitStatsMulti item in column 2, row 10 to ((String(((Owner of SelectedUnit) Food used))) + ( / + (String(((Owner of SelectedUnit) Food max))))) |
| 01-22-2005, 08:42 PM | #2 |
ouch, that looked painful. why didn't you use the Loop action? |
| 01-22-2005, 09:19 PM | #3 | |
Quote:
|
| 01-25-2005, 08:11 PM | #4 |
Haha. I didn't use it because.. well.. I never thought of it at the moment. o-O You don't think straight when your hit by inspiration like that, you know! Even though you can't see it.. Now, enough with the excuses. Are you going to stop being a smartass and help me or not? =\ |
| 01-25-2005, 08:44 PM | #5 |
This is what I use. I have a Multiboard Array called...Multiboard_Array. It has 10 slots for 10 different players. I do the loop to create the multiboard for each player. Code:
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Custom script: if(GetLocalPlayer()==Player(GetForLoopIndexA() - 1)) then
Custom script: call MultiboardDisplay(udg_Multiboard_Array[GetForLoopIndexA()], true)
Custom script: endifAlso, you should probably run a loop that has this in it to set up every multiboard. (1-10 in my case, coresponding to each player) Code:
Set Multiboard_Array[(Integer A)] = (Last created multiboard) Then, when you're setting values you can do something like this. I suggest loops, or else when making multiplemultiboards, you would have to make some 500+ lines of code to get everyone's multiboard set. Code:
For each (Integer B) from 1 to 8, do (Actions)
Loop - Actions
Multiboard - Set the width for Multiboard_Array[(Integer A)] item in column 1, row (Integer B) to 5.00% of the total screen widthThis is running within a For each (Integer A) from 1 to 10 loop. So, you would have for each run through, the A going as the player's multiboard, and this goes through all 8 rows of column 1. |
