• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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