• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Whats wrong with this?

Status
Not open for further replies.
Level 20
Joined
Jan 6, 2008
Messages
2,627
Hi, i got this trigger for my inventory

  • Test
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Dummy Inventory Slot
    • Actions
      • Set Inv_Group = (Units currently selected by Player 1 (Red))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in Inv_Group) Greater than 1
        • Then - Actions
          • Selection - Clear selection for Player 1 (Red)
          • Selection - Add PLAYER_CONTROLLER to selection
          • Skip remaining actions
        • Else - Actions
          • Set Inv_Dummy = (Triggering unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Inv_Dummy Equal to Dummy Inventory Slot 0138 <gen>
            • Then - Actions
              • For each (Integer A) from 1 to 13, do (Actions)
                • Loop - Actions
                  • Trigger - Turn on Movement_CameraTriggers[(Integer A)]
              • Trigger - Turn off Inv Cam <gen>
              • Game - Hide creep camps on the minimap
              • Game - Enable selection and deselection functionality (Enable selection circles)
              • Game - Enable drag-selection functionality (Enable drag-selection box)
              • Game - Enable pre-selection functionality (Enable pre-selection circles, life bars, and object info)
            • Else - Actions
      • Selection - Clear selection for Player 1 (Red)
      • Selection - Add PLAYER_CONTROLLER to selection
      • Custom script: call DestroyGroup( udg_Inv_Group )
But when i select multiple Units, the If then else will run.

Thyrael sent me a Pm and told me to take away the Skip actions, and it worked
 
Last edited:
Status
Not open for further replies.
Top