• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Trigger screwing up

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
I have this trigger which opens multiboard when you press F2, but the thing that screwes up is, when, let's say player 4 presses F2, and his multiboard opens and he gets the hero he previously had selected selected, all other players get selected triggering player's hero. Same with P5, 6, 7, 8 etc...

I can provide you with more info in neccesary.
Event is: Player[TempInt] Selects a Unit

  • QuickOpen
    • Events
    • Conditions
    • Actions
      • -------- ------------------------------------------------------------------------------------- --------
      • For each (Integer TempInt) from 1 to 8, do (Actions)
        • Loop - Actions
          • -------- ------------------------------------------------------------------------------------- --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering unit) Equal to QuickOpen[TempInt]
            • Then - Actions
              • -------- ------------------------------------------------------------------------------------- --------
              • Selection - Select SelectedUnit[TempInt]
              • -------- ------------------------------------------------------------------------------------- --------
              • Custom script: if GetLocalPlayer() == udg_Player[udg_TempInt] then
              • If ((Multiboard is minimized) Equal to True) then do (Multiboard - Maximize Multiboard) else do (Multiboard - Minimize Multiboard)
              • Custom script: endif
              • -------- ------------------------------------------------------------------------------------- --------
            • Else - Actions
          • -------- ------------------------------------------------------------------------------------- --------
      • -------- ------------------------------------------------------------------------------------- --------
 
Status
Not open for further replies.
Top