[Trigger] Hero Selection Help

Status
Not open for further replies.
Level 3
Joined
Jun 14, 2007
Messages
33
Could someone help me with this?
I want a Circle of Power Hero Selection, but I want a certain ammount of numbers per character... hmm, well, just say this, if 2 units enter the region, and I want the Region and Circle of Power to go away, how could I do that? any suggestions? please help, ty for your time! :thumbs_up:
 
Quite simple. First, you create a variable. And integer with array at the number of heroes you have. Now follow this trigger:

  • Trigger
    • Events
      • Unit - A unit enters Hero 1 <gen>
    • Conditions
    • Actions
      • Set Integer[1] = (Integer[1] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer[1] Equal to 2
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Unit - Remove Circle of Power 0001 <gen> from the game
          • Set L = (Center of (Playable map area))
          • Unit - Create 1 Paladin for (Owner of (Triggering unit)) at L facing Default building facing degrees
          • Custom script: call RemoveLocation(udg_L)
        • Else - Actions
          • Set L = (Center of (Playable map area))
          • Unit - Create 1 Paladin for (Owner of (Triggering unit)) at L facing Default building facing degrees
          • Custom script: call RemoveLocation(udg_L)
 
Status
Not open for further replies.
Back
Top