- Joined
- Dec 1, 2010
- Messages
- 346
I have the following trigger currently set up in my project.
Simply put this trigger shows you a different multiboard with resources based on which out of 15 regions you are hovering with your mouse.
It's very intuitive to play with in it's current form so i much prefer it over previous iterations of changing the multiboard. However i'm suspsecting this trigger is causing significnt lagg since it basically triggers every time you move your mouse.
I was wondering if there's any ways to increase performance and keep the same functionality. There are certain things i'm not sure about. like does hiding previous multiboards help or not. During testing I've noticed a significant performance increase when turning this trigger off. And since i have many resource intensive systems in my map that's a big issue.
Simply put this trigger shows you a different multiboard with resources based on which out of 15 regions you are hovering with your mouse.
It's very intuitive to play with in it's current form so i much prefer it over previous iterations of changing the multiboard. However i'm suspsecting this trigger is causing significnt lagg since it basically triggers every time you move your mouse.
I was wondering if there's any ways to increase performance and keep the same functionality. There are certain things i'm not sure about. like does hiding previous multiboards help or not. During testing I've noticed a significant performance increase when turning this trigger off. And since i have many resource intensive systems in my map that's a big issue.
-
MouseHoverRegion
-
Events
-
Player - Player 1 (Red) issues Mouse Move event
-
Player - Player 2 (Blue) issues Mouse Move event
-
Player - Player 3 (Teal) issues Mouse Move event
-
Player - Player 4 (Purple) issues Mouse Move event
-
Player - Player 5 (Yellow) issues Mouse Move event
-
Player - Player 6 (Orange) issues Mouse Move event
-
Player - Player 7 (Green) issues Mouse Move event
-
Player - Player 8 (Pink) issues Mouse Move event
-
Player - Player 9 (Gray) issues Mouse Move event
-
Player - Player 10 (Light Blue) issues Mouse Move event
-
Player - Player 11 (Dark Green) issues Mouse Move event
-
Player - Player 12 (Brown) issues Mouse Move event
-
-
Conditions
-
Actions
-
Set VariableSet Temp_Loc1 = (Mouse Position for Triggered Mouse Event)
-
-------- hover tradenode 1 --------
-
-------- 26 is the current most regions in a node (last node is 15) --------
-
For each (Integer A) from 1 to 27, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node1Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Hide TradeNodeMultiboard[3]
-
Multiboard - Hide TradeNodeMultiboard[2]
-
Multiboard - Hide TradeNodeMultiboard[7]
-
Multiboard - Show TradeNodeMultiboard[1]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node2Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Hide TradeNodeMultiboard[1]
-
Multiboard - Hide TradeNodeMultiboard[3]
-
Multiboard - Hide TradeNodeMultiboard[4]
-
Multiboard - Hide TradeNodeMultiboard[5]
-
Multiboard - Show TradeNodeMultiboard[2]
-
Multiboard - Hide TradeNodeMultiboard[7]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 3 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node3Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Hide TradeNodeMultiboard[1]
-
Multiboard - Hide TradeNodeMultiboard[2]
-
Multiboard - Hide TradeNodeMultiboard[4]
-
Multiboard - Hide TradeNodeMultiboard[5]
-
Multiboard - Hide TradeNodeMultiboard[7]
-
Multiboard - Show TradeNodeMultiboard[3]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 4 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node4Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Hide TradeNodeMultiboard[1]
-
Multiboard - Hide TradeNodeMultiboard[2]
-
Multiboard - Hide TradeNodeMultiboard[3]
-
Multiboard - Hide TradeNodeMultiboard[7]
-
Multiboard - Hide TradeNodeMultiboard[4]
-
Multiboard - Hide TradeNodeMultiboard[5]
-
Multiboard - Show TradeNodeMultiboard[4]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 5 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node5Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Hide TradeNodeMultiboard[1]
-
Multiboard - Hide TradeNodeMultiboard[2]
-
Multiboard - Hide TradeNodeMultiboard[3]
-
Multiboard - Hide TradeNodeMultiboard[4]
-
Multiboard - Hide TradeNodeMultiboard[7]
-
Multiboard - Show TradeNodeMultiboard[5]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 6 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node6Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Hide TradeNodeMultiboard[1]
-
Multiboard - Hide TradeNodeMultiboard[2]
-
Multiboard - Hide TradeNodeMultiboard[3]
-
Multiboard - Hide TradeNodeMultiboard[4]
-
Multiboard - Hide TradeNodeMultiboard[5]
-
Multiboard - Hide TradeNodeMultiboard[7]
-
Multiboard - Show TradeNodeMultiboard[6]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 7 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node7Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Hide TradeNodeMultiboard[1]
-
Multiboard - Hide TradeNodeMultiboard[2]
-
Multiboard - Hide TradeNodeMultiboard[3]
-
Multiboard - Hide TradeNodeMultiboard[4]
-
Multiboard - Hide TradeNodeMultiboard[5]
-
Multiboard - Hide TradeNodeMultiboard[6]
-
Multiboard - Show TradeNodeMultiboard[7]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 8 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node8Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Show TradeNodeMultiboard[8]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 9 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node9Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Show TradeNodeMultiboard[9]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 10 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node10Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Show TradeNodeMultiboard[10]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 11 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node11Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Show TradeNodeMultiboard[11]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 12 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node12Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Show TradeNodeMultiboard[12]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 13 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node13Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Show TradeNodeMultiboard[13]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 14 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node14Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Show TradeNodeMultiboard[14]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 14 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Node15Regions[(Integer A)] contains (Mouse Position for Triggered Mouse Event)) Equal to True
-
-
Then - Actions
-
Set VariableSet localplayer = (Triggering player)
-
Custom script: if udg_localplayer == GetLocalPlayer() then
-
Multiboard - Show TradeNodeMultiboard[15]
-
Custom script: endif
-
-
Else - Actions
-
-------- hover tradenode 16 --------
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Custom script: call RemoveLocation(udg_Temp_Loc1)
-
-