- Joined
- Mar 3, 2009
- Messages
- 327
My multiboard inventory system, scourge of the help section for thatp ast week still has problems :/ The map desyncs at initialization. If theres a fix, or another way to make multiboards mpi please post it here
-
Inventory Init
-
Events
- Time - Elapsed game time is 2.00 seconds
- Conditions
-
Actions
- Hashtable - Create a hashtable
- Set InvHash = (Last created hashtable)
-
For each (Integer B) from 1 to 10, do (Actions)
-
Loop - Actions
- Custom script: if GetLocalPlayer() == ConvertedPlayer(GetForLoopIndexB()) then
- Multiboard - Create a multiboard with 2 columns and 20 rows, titled Inventory
- Set Inventory[(Integer B)] = (Last created multiboard)
- Multiboard - Set the width for Inventory[(Integer B)] item in column 0, row 0 to 16.00% of the total screen width
- Multiboard - Set the display style for Inventory[(Integer B)] item in column 0, row 0 to Show text and Hide icons
- -------- Equipped stuff --------
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
- Multiboard - Set the width for Inventory[(Integer B)] item in column 2, row (Integer A) to 8.00% of the total screen width
- Multiboard - Set the width for Inventory[(Integer B)] item in column 1, row (Integer A) to 8.00% of the total screen width
-
Loop - Actions
- Multiboard - Set the text for Inventory[(Integer B)] item in column 2, row 1 to (Helm)
- Multiboard - Set the text for Inventory[(Integer B)] item in column 2, row 2 to (body)
- Multiboard - Set the text for Inventory[(Integer B)] item in column 2, row 3 to (Boots)
- Multiboard - Set the text for Inventory[(Integer B)] item in column 2, row 4 to (Gloves)
- Multiboard - Set the text for Inventory[(Integer B)] item in column 2, row 5 to (Left Hand)
- Multiboard - Set the text for Inventory[(Integer B)] item in column 2, row 6 to (Right Hand)
- -------- description --------
- Multiboard - Set the text for Inventory[(Integer B)] item in column 1, row 7 to Description:
- -------- items --------
-
For each (Integer A) from 8 to 20, do (Actions)
-
Loop - Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Hashtable - Save True as (Integer A) of (Key (Picked player)) in InvHash
-
Loop - Actions
- Multiboard - Set the width for Inventory[(Integer B)] item in column 1, row (Integer A) to 13.00% of the total screen width
- Multiboard - Set the width for Inventory[(Integer B)] item in column 2, row (Integer A) to 3.00% of the total screen width
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Multiboard - Minimize Inventory[(Integer B)]
- Multiboard - Maximize Inventory[(Integer B)]
- Custom script: endif
-
Loop - Actions
-
Events
Last edited: