- Joined
- Dec 13, 2018
- Messages
- 2,368
Is it possible to reference specific multiboard items/rows? I have a trigger that dynamically creates multiboard items/rows, but I can't find a way to reference the specific rows that was created, only how to reduce the row count by one.
Here is my create row trigger:
I was thinking maybe saving the row to a hashtable and loading it again but I know nothing about hashtables so how to go about it is very unclear to me. I still find hashtables immensely confusing, and don't know how to use them.
Here is my create row trigger:
-
Create Key Items Multiboard
-
Events
-
Time - Elapsed game time is 0.00 seconds
-
-
Conditions
-
Actions
-
Set MultiBoardRows = 0
-
Multiboard - Create a multiboard with 1 columns and 1 rows, titled Key Items:
-
Set KeyItemsMultiBoard = (Last created multiboard)
-
Multiboard - Minimize KeyItemsMultiBoard
-
Multiboard - Set the width for KeyItemsMultiBoard item in column 1, row 1 to 15.00% of the total screen width
-
-
-
Create Item 1
-
Events
-
Player - Player 1 (Red) types a chat message containing 1 as An exact match
-
-
Conditions
-
Actions
-
Trigger - Turn off (This trigger)
-
Set MultiBoardRows = (MultiBoardRows + 1)
-
Multiboard - Change the number of rows for KeyItemsMultiBoard to MultiBoardRows
-
Multiboard - Set the display style for KeyItemsMultiBoard item in column 1, row MultiBoardRows to Show text and Show icons
-
Multiboard - Set the text for KeyItemsMultiBoard item in column 1, row MultiBoardRows to Key Item 1
-
Multiboard - Set the icon for KeyItemsMultiBoard item in column 1, row MultiBoardRows to ReplaceableTextures\CommandButtons\BTNAcorn.blp
-
Multiboard - Set the width for KeyItemsMultiBoard item in column 1, row MultiBoardRows to 15.00% of the total screen width
-
-
-
Create Item 2
-
Events
-
Player - Player 1 (Red) types a chat message containing 2 as An exact match
-
-
Conditions
-
Actions
-
Trigger - Turn off (This trigger)
-
Set MultiBoardRows = (MultiBoardRows + 1)
-
Multiboard - Change the number of rows for KeyItemsMultiBoard to MultiBoardRows
-
Multiboard - Set the display style for KeyItemsMultiBoard item in column 1, row MultiBoardRows to Show text and Show icons
-
Multiboard - Set the text for KeyItemsMultiBoard item in column 1, row MultiBoardRows to Key Item 2
-
Multiboard - Set the icon for KeyItemsMultiBoard item in column 1, row MultiBoardRows to ReplaceableTextures\CommandButtons\BTNSpellShieldAmulet.blp
-
Multiboard - Set the width for KeyItemsMultiBoard item in column 1, row MultiBoardRows to 15.00% of the total screen width
-
-
-
Create Item 3
-
Events
-
Player - Player 1 (Red) types a chat message containing 3 as An exact match
-
-
Conditions
-
Actions
-
Trigger - Turn off (This trigger)
-
Set MultiBoardRows = (MultiBoardRows + 1)
-
Multiboard - Change the number of rows for KeyItemsMultiBoard to MultiBoardRows
-
Multiboard - Set the display style for KeyItemsMultiBoard item in column 1, row MultiBoardRows to Show text and Show icons
-
Multiboard - Set the text for KeyItemsMultiBoard item in column 1, row MultiBoardRows to Key Item 3
-
Multiboard - Set the icon for KeyItemsMultiBoard item in column 1, row MultiBoardRows to ReplaceableTextures\CommandButtons\BTNJanggo.blp
-
Multiboard - Set the width for KeyItemsMultiBoard item in column 1, row MultiBoardRows to 15.00% of the total screen width
-
-
I was thinking maybe saving the row to a hashtable and loading it again but I know nothing about hashtables so how to go about it is very unclear to me. I still find hashtables immensely confusing, and don't know how to use them.
Last edited: