• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Disabled Trigger

Status
Not open for further replies.
What is wrong with the custom script???
  • [x]ChoseHero
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 4 (Purple) Selects a unit
      • Player - Player 5 (Yellow) Selects a unit
      • Player - Player 6 (Orange) Selects a unit
      • Player - Player 7 (Green) Selects a unit
      • Player - Player 8 (Pink) Selects a unit
      • Player - Player 9 (Gray) Selects a unit
      • Player - Player 10 (Light Blue) Selects a unit
      • Player - Player 11 (Dark Green) Selects a unit
      • Player - Player 12 (Brown) Selects a unit
    • Conditions
      • Hero_Selection_Enabler[(Player number of (Triggering player))] Equal to True
    • Actions
      • Set HeroSelectionLocationStart = Region 000 <gen>
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Hero_Selection_Detector[(Player number of (Triggering player))] Equal to True
        • Then - Actions
          • Cinematic - Clear the screen of text messages for (Player group((Triggering player)))
          • Camera - Reset camera for (Triggering player) to standard game-view over 0.00 seconds
          • Unit - Create 1 Hero_Selector[Hero_Selector_UnitInt[(Player number of (Triggering player))]] for (Triggering player) at (Center of HeroSelectionLocationStart) facing Default building facing degrees
          • Game - Display to (Player group((Triggering player))) the text: (You have chosen to become a + ((Name of (Last created unit)) + !))
          • Camera - Pan camera for (Triggering player) to (Position of (Last created unit)) over 0.00 seconds
          • Selection - Select (Last created unit) for (Triggering player)
          • Set Hero_Selection_Enabler[(Player number of (Triggering player))] = False
          • Set Hero_Selection_Detector[(Player number of (Triggering player))] = False
          • Unit - Remove Hero_Selection_Viewer[(Player number of (Triggering player))] from the game
        • Else - Actions
          • Cinematic - Clear the screen of text messages for (Player group((Triggering player)))
          • Game - Display to (Player group((Triggering player))) the text: ((Name of Hero_Selection_Viewer[(Player number of (Triggering player))]) + Hero_Selection_UnitDescription[Hero_Selector_UnitInt[(Player number of (Triggering player))]])
          • Set Hero_Selection_Detector[(Player number of (Triggering player))] = True
      • Custom script: call RemoveLocation(udg_HeroSelectionLocationStart)
 
Status
Not open for further replies.
Top