• 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] NEEd more Super help

Status
Not open for further replies.
Level 2
Joined
Oct 30, 2007
Messages
12
omg same thing again my arrow selecting trigger is working but the heros arent being chosen so could some1 give me a lil assistance and fix plz heres the map
 

Attachments

  • Hero Selector.w3x
    346 KB · Views: 36
Level 14
Joined
Aug 25, 2005
Messages
1,133
Well it looks like you use the interger "choice" to determine which hero is going to be spawned but the problem is you didnt set the left or right triggers to advance this interger when changing selected heros. and thats why it spawns firemage only because the interger is defaulted to 0 and it is told if you push the up arrow key if the interger equals to 0 spawn firemage.
 
Level 6
Joined
Nov 28, 2007
Messages
203
I changed it :) (btw, always remember to keep a copy of your map)
here are the changed triggers:
  • selection
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Fire Mage 0000 <gen>
        • Then - Actions
          • Unit - Create 1 Fire Mage for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Ice Mage 0001 <gen>
        • Then - Actions
          • Unit - Create 1 Ice Mage for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Aura Mage 0002 <gen>
        • Then - Actions
          • Unit - Create 1 Aura Mage for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Warrior 0003 <gen>
        • Then - Actions
          • Unit - Create 1 Warrior for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Paladin 0004 <gen>
        • Then - Actions
          • Unit - Create 1 Paladin for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • Set Heroselection[(Player number of (Triggering player))] = (Random unit from NoUnitsInThisGroup)
      • Visibility - Destroy heroselection_view[(Player number of (Triggering player))]
      • -------- (up)This makes that the player can't choose a new hero(up) --------
      • Camera - Reset camera for (Triggering player) to standard game-view over 0.00 seconds
      • Camera - Set the camera bounds for (Triggering player) to (Playable map area)
      • Camera - Pan camera for (Triggering player) to (Center of (Playable map area)) over 0.10 seconds
  • selection check
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Fire Mage 0000 <gen>
        • Then - Actions
          • Game - Display to (Player group((Triggering player))) the text: Fire Mage is select...
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Ice Mage 0001 <gen>
        • Then - Actions
          • Game - Display to (Player group((Triggering player))) the text: Ice Mage is selecte...
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Aura Mage 0002 <gen>
        • Then - Actions
          • Game - Display to (Player group((Triggering player))) the text: Aura Mage is select...
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Warrior 0003 <gen>
        • Then - Actions
          • Game - Display to (Player group((Triggering player))) the text: Warrior is selected.
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Heroselection[(Player number of (Triggering player))] Equal to Paladin 0004 <gen>
        • Then - Actions
          • Game - Display to (Player group((Triggering player))) the text: Paladin is selected.
        • Else - Actions
Btw, nice tiger ^^
 

Attachments

  • Hero Selector.w3x
    346.2 KB · Views: 41
Status
Not open for further replies.
Top