I know this trigger is kinda long, but please look at it! It would save my map if you tell me why this trigger causes desyncs.
Trigger:
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Hero level of (Buying unit)) Greater than or equal to (Level of (Sold unit))
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Sold unit)) Equal to Travel to Crabland
- Then - Actions
- Unit - Remove (Sold unit) from the game
- Cinematic - Disable user control for (Player group((Owner of (Buying unit))))
- Camera - Apply Camera 001 <gen> for (Owner of (Buying unit)) over 0.00 seconds
- Camera - Apply Camera 002 <gen> for (Owner of (Buying unit)) over 2.00 seconds
- Custom script: if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
- Cinematic - Fade out over 2.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Custom script: endif
- Wait 2.00 seconds
- Unit - Move (Buying unit) instantly to (Center of Region 004 <gen>)
- Cinematic - Enable user control for (Player group((Owner of (Buying unit))))
- Camera - Apply Reset Camera <gen> for (Owner of (Buying unit)) over 2.00 seconds
- Camera - Lock camera target for (Owner of (Buying unit)) to (Buying unit), offset by (0.00, 0.00) using Default rotation
- Custom script: if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
- Cinematic - Fade in over 1.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Custom script: endif
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Sold unit)) Equal to Travel to Cartag
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Quest Line 1 for (Buying unit)) Equal to 3
- PlayerCurrentQuest[(Player number of (Owner of (Buying unit)))] Equal to 1
- Then - Actions
- Cinematic - Clear the screen of text messages for (Player group((Owner of (Buying unit))))
- Unit - Remove (Sold unit) from the game
- Unit - Move (Buying unit) instantly to (Center of Region 008 <gen>)
- Cinematic - Disable user control for (Player group((Owner of (Buying unit))))
- Camera - Apply Camera 007 <gen> for (Owner of (Buying unit)) over 0.00 seconds
- Camera - Apply Camera 008 <gen> for (Owner of (Buying unit)) over 5.00 seconds
- Custom script: if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
- Cinematic - Fade out over 2.00 seconds using texture Black Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Cinematic - Fade in over 1.00 seconds using texture Black Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Custom script: endif
- Wait 4.00 seconds
- Custom script: if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
- Cinematic - Fade out and back in over 1.00 seconds using texture Black Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Custom script: endif
- Wait 0.50 seconds
- Camera - Apply Camera 009 <gen> for (Owner of (Buying unit)) over 0.00 seconds
- Wait 0.50 seconds
- Game - Display to (Player group((Owner of (Buying unit)))) the text: |cffFFE663Damn! I k...
- Wait 3.00 seconds
- Game - Display to (Player group((Owner of (Buying unit)))) the text: |cffFFFF08Quest Com...
- Player - Add 10 to (Owner of (Buying unit)) Current gold
- Wait 2.00 seconds
- Game - Display to (Player group((Owner of (Buying unit)))) the text: |cffFFFF08New Quest...
- Sound - Play QuestCompleted <gen>
- Unit - Set level of Quest Line 1 for (Buying unit) to 4
- Set PlayerCurrentQuest[(Player number of (Owner of (Buying unit)))] = 0
- Cinematic - Enable user control for (Player group((Owner of (Buying unit))))
- Else - Actions
- Unit - Remove (Sold unit) from the game
- Unit - Move (Buying unit) instantly to (Center of Region 006 <gen>)
- Cinematic - Disable user control for (Player group((Owner of (Buying unit))))
- Camera - Apply Camera 002 <gen> for (Owner of (Buying unit)) over 0.00 seconds
- Camera - Apply Camera 001 <gen> for (Owner of (Buying unit)) over 2.00 seconds
- Custom script: if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
- Cinematic - Fade out over 2.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Cinematic - Fade in over 1.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Custom script: endif
- Wait 2.00 seconds
- Camera - Apply Reset Camera <gen> for (Owner of (Buying unit)) over 0.00 seconds
- Camera - Lock camera target for (Owner of (Buying unit)) to (Buying unit), offset by (0.00, 0.00) using Default rotation
- Cinematic - Enable user control for (Player group((Owner of (Buying unit))))
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Sold unit)) Equal to Travel to The Ravaged Island
- Then - Actions
- Cinematic - Disable user control for (Player group((Owner of (Buying unit))))
- Unit - Remove (Sold unit) from the game
- Camera - Apply Camera 001 <gen> for (Owner of (Buying unit)) over 0.00 seconds
- Custom script: if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
- Cinematic - Fade out over 2.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Custom script: endif
- Camera - Apply Camera 002 <gen> for (Owner of (Buying unit)) over 2.00 seconds
- Wait 2.00 seconds
- Unit - Move (Buying unit) instantly to (Center of Region 007 <gen>)
- Custom script: if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
- Cinematic - Fade in over 1.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Custom script: endif
- Camera - Apply Camera 006 <gen> for (Owner of (Buying unit)) over 0.00 seconds
- Wait 1.00 seconds
- Camera - Apply Reset Camera <gen> for (Owner of (Buying unit)) over 0.00 seconds
- Camera - Lock camera target for (Owner of (Buying unit)) to (Buying unit), offset by (0.00, 0.00) using Default rotation
- Cinematic - Enable user control for (Player group((Owner of (Buying unit))))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Game - Display to (Player group((Owner of (Buying unit)))) the text: |cffFF0000You are n...
- Unit - Remove (Sold unit) from the game
- If - Conditions