| 02-14-2005, 02:23 PM | #1 |
Well. I want my multiboard to show the name of the players and at which level their heroes are. At first it would look like: <Nick> - <Level of Hero> And when hero levels up the number on the multiboard rises too. But I have no idea how the heck I'm going to do this.. Any help will be appreciated. This is my second attempt at making multiboards so treat me like a newbie, please.. |
| 02-14-2005, 07:08 PM | #2 |
Create multiboard with X rows and Y columns Set text in row X column Y to Whatever In the cell you want the level, you'll either do a conversion, integer to string(Level of (blah blah)) or just record the level of the hero in a variable and display that. Have a trigger that fires when a unit levels up, if unit == hero, set text in Row X, Column Y to Level of the hero. See above. |
| 02-16-2005, 02:40 AM | #3 |
Could you please be little bit more clearer, because I didn't understand anything.. Like what do I have to exactly do. Code:
Creating the Multiboard Events Time - Elapsed game time is 0.50 seconds Conditions Actions Multiboard - Create a multiboard with 2 columns and 5 rows, titled |CFF005B7FP|CFF0964... Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 1, row 3 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 2, row 3 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 1, row 4 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 2, row 4 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 1, row 5 to 40.00% of the total screen width Multiboard - Set the width for (Last created multiboard) item in column 2, row 5 to 40.00% of the total screen width 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 1 to Show text and Hide icons Multiboard - Set the display style for (Last created multiboard) item in column 2, row 2 to Show text and Hide icons Multiboard - Set the display style for (Last created multiboard) item in column 2, row 3 to Show text and Hide icons Multiboard - Set the display style for (Last created multiboard) item in column 2, row 4 to Show text and Hide icons Multiboard - Set the display style for (Last created multiboard) item in column 2, row 5 to Show text and Hide icons Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |CFF005B7FP|CFF0F6B... Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |CFF005B7FL|CFF1B78... If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 1 (Red) slot status) Equal to Is playing Then - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Goku Else - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to |CFF545454-|CFF5F5F... If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 2 (Blue) slot status) Equal to Is playing Then - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to Piccolo Else - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to |CFF545454-|CFF5F5F... If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 3 (Teal) slot status) Equal to Is playing Then - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to Xi Else - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to |CFF545454-|CFF5F5F... If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 4 (Purple) slot status) Equal to Is playing Then - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to Android #13 Set AndroidLevel = 1 Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to AndroidLevel Else - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to |CFF545454-|CFF5F5F... Code:
Android 13 Gains Level Events Unit - Android #13 0003 <gen> Gains a level Conditions (Owner of (Triggering unit)) Equal to Player 4 (Purple) Actions Set AndroidLevel = (AndroidLevel + 1) Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to AndroidLevel |
| 02-16-2005, 03:27 AM | #4 |
what does it do/don't do that you want it to do/don't do? |
| 02-16-2005, 04:04 AM | #5 |
It's not ready yet so.. it does pretty much nothing, BUT it should show the names of all the heroes (and it does) and 'Android' heroes level, but the level won't show up. So, if anyone has a better or more working style how to make this then could that person share that style with me..? Please.. I really need some help. |
| 04-14-2005, 05:06 AM | #6 |
Guest | I'm having problems with the multiboard also. Some of my columns are off the screen! I have them set to 10%, 4%, 4% for the 1, 2, and 3rd columns respectively. If someone could help me that would be great. Thanks in advance! |
| 04-14-2005, 07:48 AM | #7 |
@Albino - I would of presumed it to work looking at your code at first glance. Unless androidlevel variable must be converted into a string before being able to display on multiboard. If you trying to display the integer value whole it may not work... But i doubt this is the case. Or maybe you are testing as player 1/2/3, meaning that you are playing so none of the actions for android run because the earlier options ran. |
| 04-14-2005, 08:02 AM | #8 |
Wait, wait, is AndroidLevel a string variable? It just seems that way... Did you copy and paste these triggers from the editor, or write them down? They seem copied, except for the fact that there are no spaces at the beginning of the rows (which makes it difficult to read). Anyway, if it's copied then AndroidLevel seems to be a string variable, when in fact it should be an integer. Oh, and here's a shorter way to write your initialisation trigger (just the first part, the second part is still the same, got a question about that before I can make that shorter too, are those texts that are displayed for players that are not in the game the same for all players? because I can't see them entirely, they get cut off): Code:
Creating the Multiboard Events Time - Elapsed game time is 0.50 seconds Conditions Actions Multiboard - Create a multiboard with 2 columns and 5 rows, titled |CFF005B7FP|CFF0964... Multiboard - Set the width for (Last created multiboard) item in column 0, row 0 to 40.00% of the total screen width Multiboard - Set the display style for (Last created multiboard) item in column 1, row 0 to Show text and Hide icons Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |CFF005B7FP|CFF0F6B... Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |CFF005B7FL|CFF1B78... If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 1 (Red) slot status) Equal to Is playing Then - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Goku Else - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to |CFF545454-|CFF5F5F... If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 2 (Blue) slot status) Equal to Is playing Then - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to Piccolo Else - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to |CFF545454-|CFF5F5F... If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 3 (Teal) slot status) Equal to Is playing Then - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to Xi Else - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to |CFF545454-|CFF5F5F... If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 4 (Purple) slot status) Equal to Is playing Then - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to Android #13 Set AndroidLevel = 1 Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to AndroidLevel Else - Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to |CFF545454-|CFF5F5F... |
| 04-14-2005, 09:52 AM | #9 |
Guest | I'm afraid this thread was more than 1 month old... |
| 04-14-2005, 11:12 AM | #10 | |
Quote:
|
| 04-14-2005, 02:21 PM | #11 |
Indeed. This thread is old and I have already found the answer I requested. Thank you for your help, but this time it wasn't really required. |
