• 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.

Arena Triggering for my Kingdom Hearts II arena 1.1

Status
Not open for further replies.
So, in my project

Kingdom Hearts II Arena V1.1

Im going to update it to Kingdom Hearts II Arena V1.2

The problem is

how could i check the enemies(heroes/foes) are no more in the arena?

my trigger


  • Move
    • Events
      • Time - Every 160.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Pause all units
      • Game - Display to (All players) the text: The Arena will star...
      • Wait 1.00 seconds
      • Game - Display to (All players) the text: 2....
      • Wait 1.00 seconds
      • Game - Display to (All players) the text: 1....
      • Wait 1.00 seconds
      • Game - Display to (All players) the text: FIGHT!!!!!
      • Unit - Unpause all units
      • Camera - Pan camera for Player 1 (Red) to (Center of Contestant TEam A <gen>) over 0.00 seconds
      • Camera - Pan camera for Player 2 (Blue) to (Center of Contestant TEam A <gen>) over 0.00 seconds
      • Camera - Pan camera for Player 3 (Teal) to (Center of Contestant TEam A <gen>) over 0.00 seconds
      • Camera - Pan camera for Player 4 (Purple) to (Center of Contestant TEam A <gen>) over 0.00 seconds
      • Camera - Pan camera for Player 6 (Orange) to (Center of Contestant Team 2 <gen>) over 0.00 seconds
      • Camera - Pan camera for Player 7 (Green) to (Center of Contestant Team 2 <gen>) over 0.00 seconds
      • Camera - Pan camera for Player 8 (Pink) to (Center of Contestant Team 2 <gen>) over 0.00 seconds
      • Camera - Pan camera for Player 9 (Gray) to (Center of Contestant Team 2 <gen>) over 0.00 seconds
      • Unit - Move PlayerHero[1] instantly to (Center of Contestant TEam A <gen>), facing 0.00 degrees
      • Unit - Move PlayerHero[2] instantly to (Center of Contestant TEam A <gen>), facing 0.00 degrees
      • Unit - Move PlayerHero[3] instantly to (Center of Contestant TEam A <gen>), facing 0.00 degrees
      • Unit - Move PlayerHero[4] instantly to (Center of Contestant TEam A <gen>), facing 0.00 degrees
      • Unit - Move PlayerHero[6] instantly to (Center of Contestant Team 2 <gen>), facing 180.00 degrees
      • Unit - Move PlayerHero[7] instantly to (Center of Contestant TEam 2 <gen>), facing 180.00 degrees
      • Unit - Move PlayerHero[8] instantly to (Center of Contestant TEam 2 <gen>), facing 180.00 degrees
      • Unit - Move PlayerHero[9] instantly to (Center of Contestant TEam 2 <gen>), facing 180.00 degrees
      • Set ArenaFighters = (Number of units in (Units in Region 014 <gen> matching (((Matching unit) is A Hero) Equal to True)))
It works

but how i move it back?

my moving back trigger doesn't work, he must kill his allies =-=
  • Dead Check
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units in Region 014 <gen> matching (((Matching unit) is A Hero) Equal to True))) Equal to 1
        • Then - Actions
          • Game - Display to (All players) the text: Nice Work!!For the ...
          • Unit - Move PlayerHero[1] instantly to (Center of Hero Create <gen>)
          • Unit - Move PlayerHero[2] instantly to (Center of Hero Create <gen>)
          • Unit - Move PlayerHero[3] instantly to (Center of Hero Create <gen>)
          • Unit - Move PlayerHero[4] instantly to (Center of Hero Create <gen>)
          • Unit - Move PlayerHero[6] instantly to (Center of Hero Create <gen>)
          • Unit - Move PlayerHero[7] instantly to (Center of Hero Create <gen>)
          • Unit - Move PlayerHero[8] instantly to (Center of Hero Create <gen>)
          • Unit - Move PlayerHero[9] instantly to (Center of Hero Create <gen>)
        • Else - Actions
          • Set ArenaFighters = (Number of units in (Units in Region 014 <gen> matching (((Matching unit) is A Hero) Equal to True)))


You could try my map , download it at www.epicwar.com/maps , search it by typing Kingdom Hearts
 
Level 3
Joined
Apr 20, 2010
Messages
46
It can be difficult to help without knowing some more details. But working off my interpretation:

Things are happening based on elimination of all opposing teams. In this case, it'd be better to have a variable that holds the number of people in each team. Whenever someone dies (IE: Unit - A Unit Dies event + (Dying unit) is A Hero condition) you append their team's number. Then you check if a Team is at 0. If it is, you do the obligatory elimination message. If there is only 1 Team left, you give the obligatory victory message, and then you reset or whatever it is that is to be done at that stage.

If you understand what I mean.
 
It can be difficult to help without knowing some more details. But working off my interpretation:

Things are happening based on elimination of all opposing teams. In this case, it'd be better to have a variable that holds the number of people in each team. Whenever someone dies (IE: Unit - A Unit Dies event + (Dying unit) is A Hero condition) you append their team's number. Then you check if a Team is at 0. If it is, you do the obligatory elimination message. If there is only 1 Team left, you give the obligatory victory message, and then you reset or whatever it is that is to be done at that stage.

If you understand what I mean.

if it checks, it will check but how to check?:con:
 
Level 3
Joined
Apr 20, 2010
Messages
46
if it checks, it will check but how to check?:con:

God that nearly blew my mind.

There are a few ways to do it. You can have a variable holding the number of remaining teams, when there is only 1 left it loops through the array to find the 1 team which isn't at 0.

you could do the same thing except have it as 2 variables and no loop, just removing teams until there is 1 left, at which point it declares them the winner.

I'm however going along the lines that there can be more than 1 team.
 
Status
Not open for further replies.
Top