- Joined
- Oct 18, 2008
- Messages
- 1,591
Hy guys!
I just solved my multiboard problem, and i thought everything is fine... It works even in multiplayer, everyone has his own multiboard. But when anyone changes his own multiboard, everyone except the host gots DC!
The code:
I just solved my multiboard problem, and i thought everything is fine... It works even in multiplayer, everyone has his own multiboard. But when anyone changes his own multiboard, everyone except the host gots DC!
The code:
-
Init
-

Events
-


Time - Elapsed game time is 0.00 seconds
-
-

Conditions
-

Actions
-


For each (Integer A) from 1 to 12, do (Actions)
-



Loop - Actions
-




Set X = (X + 1)
-




Game - Display to (All players) the text: (String(X))
-




Custom script: if ( GetLocalPlayer() == Player(( udg_X-1)) ) then
-




Multiboard - Create a multiboard with 6 columns and 20 rows, titled Skills
-




Set Abi_Table[X] = (Last created multiboard)
-




Multiboard - Hide (Last created multiboard)
-




For each (Integer B) from 1 to 1, do (Actions)
-





Loop - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-







Then - Actions
-








For each (Integer C) from 1 to 20, do (Actions)
-









Loop - Actions
-










Multiboard - Set the text for (Last created multiboard) item in column 2, row C to (Name of Necro_Abilitys[C])
-










Multiboard - Set the text for (Last created multiboard) item in column 4, row C to (Name of Necro_Abilitys[(C + 20)])
-










Multiboard - Set the text for (Last created multiboard) item in column 6, row C to (Name of Necro_Abilitys[(C + 40)])
-
-
-
-







Else - Actions
-
-
-
-




For each (Integer C) from 1 to 20, do (Actions)
-





Loop - Actions
-






For each (Integer B) from 1 to 6, do (Actions)
-







Loop - Actions
-








Multiboard - Set the display style for (Last created multiboard) item in column (Integer B), row C to Show text and Show icons
-
-
-






Multiboard - Set the width for (Last created multiboard) item in column 1, row C to 1.00% of the total screen width
-






Multiboard - Set the width for (Last created multiboard) item in column 3, row C to 1.00% of the total screen width
-






Multiboard - Set the width for (Last created multiboard) item in column 5, row C to 1.00% of the total screen width
-






Multiboard - Set the width for (Last created multiboard) item in column 2, row C to 10.00% of the total screen width
-






Multiboard - Set the width for (Last created multiboard) item in column 4, row C to 10.00% of the total screen width
-






Multiboard - Set the width for (Last created multiboard) item in column 6, row C to 10.00% of the total screen width
-
-
-




For each (Integer B) from 1 to 6, do (Actions)
-





Loop - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








Or - Any (Conditions) are true
-









Conditions
-










(Integer B) Equal to 1
-










(Integer B) Equal to 3
-










(Integer B) Equal to 5
-
-
-
-







Then - Actions
-








For each (Integer C) from 1 to 20, do (Actions)
-









Loop - Actions
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












SkillSelect[(Integer A)] Not equal to (((Integer B) x 10) + C)
-
-











Then - Actions
-












Multiboard - Set the display style for (Last created multiboard) item in column (Integer B), row C to Show text and Hide icons
-
-











Else - Actions
-












Multiboard - Set the display style for (Last created multiboard) item in column (Integer B), row C to Show text and Show icons
-












Multiboard - Set the icon for (Last created multiboard) item in column (Integer B), row C to ReplaceableTextures\CommandButtons\BTNWispSplode.blp
-
-
-
-
-
-







Else - Actions
-
-
-
-




Trigger - Run Loops <gen> (ignoring conditions)
-




Wait 0.01 seconds
-




Game - Display to (All players) the text: Still works...
-




Game - Display to (All players) the text: Does it work?
-




Multiboard - Show Abi_Table[X]
-




Custom script: endif
-
-
-
-



