• 🏆 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] 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