| 07-21-2003, 05:09 AM | #1 |
Okay, my hero arena duel is all out of whack because of this one skill. Right now, if I can't fix this, then that means Im gonna have to delete all skills that were based on Storm Earth and Fire. Okay, the duel is a 4 way free for all, since there are 4 teams.... Here is the trigger: Events: - A unit owned by anyplayer dies Conditions: - bDuel Equal to True - ((Dying unit) is A Hero) Equal to True Actions: - If ((Number of units in (Units in Dueling Pit <gen> matching (((Matching unit) is A Hero) Equal to True))) Equal to 1) then do (Trigger - Turn off Duel bug Fix <gen>) else do (Do nothing) - Wait 5.00 game-time seconds - If ((Number of units in (Units in Dueling Pit <gen> matching (((Matching unit) is A Hero) Equal to True))) Equal to 1) then do (Trigger - Run End Duel <gen> (ignoring conditions)) else do (Do nothing) - Wait 2.00 seconds - If ((Number of units in (Units in Dueling Pit <gen> matching (((Matching unit) is A Hero) Equal to True))) Equal to 1) then do (If (bDuel Equal to True) then do (Set bDuel = False) else do (Do nothing)) else do (Do nothing) Now obviously, becuase the hero splits himself into 3, when a hero dies, the number of heroes in that region is no longer equal to 1.... Is there anyway to get around this? Can anyone help me? I am desperate for help, and will gladly give credit to whoever is kind enough to help Here is an attachment of my map: |
| 07-21-2003, 05:11 AM | #2 |
Oh I'm looking for a condition of a trigger similar to this, and believe me, I am trying my hardest to look for it, but I am the worst at finding things. If any of you know how to do this please tell me: Condition: (A player) has control of all units in (region) I think that may fix my problem |
| 07-21-2003, 06:39 AM | #3 |
This might be what you are looking for. If: (Number of units in (Units in (DuelPit) owned by (A player))) Equal to (Number of units in (Units in (DuelPit))) Then: Blah blah. That would be true if the player owns all the units in the region. |
| 07-21-2003, 09:17 PM | #4 |
Okay, this will not work because number of units in the duel pit can equal to 0.. meaning basically... whenever something dies, the duel will end. Right now my condition is this: ((Number of units in (Units in Dueling Pit <gen>)) Equal to (Number of units in (Units in Dueling Pit <gen> owned by Player 1 (Red)))) or (((Number of units in (Units in Dueling Pit <gen>)) Equal to (Number of units in (Units in Dueling Pit <gen> owned by Player 2 (Blue)))) or (((Number of units in (Units in Dueling Pit <gen>)) Equal to (Number of units in (Units in Dueling Pit <gen> owned by Player 3(Teal)))) OR...... Goes all the way to player 12... So Im thinking, if I add AND number if units in dueling pit owned by player 1 not equal to 0..... all the way to player 12 it will work... but the problem is right now, even when I test it, the trigger goes off like 5 times, and the end duel trigger repeats itself Please, someone take a look at it.... I have no idea how its doing this.... First of all, the trigger does not fire when a unit dies, but it does however, when I type: -end duel. I added that trigger to do some testing and incase someone is rechosing their hero, and they have no opponent. Now, to test it, I automatically put in 2 heroes at the top, one of them is yours, one of them the computers..... I then removed the condition: bDuel is True (Which is a variable that turns on when a duel starts) because obviously, at the beginning of a game, the duel hasnt started yet.... Now, use the Ultimate based on Storm, Earth + Fire, and then kill the enemy hero. The duel should end, but it doesnt.... For some reason its not responding to: A unit dies. Someone please take a look at my map, and tell me what is wrong Here is the latest version of my map: |
| 07-21-2003, 10:29 PM | #5 |
i wasnt able to test my theory, but i assume this should work. whenever you move the units into "Dueling Pit", add them to a unit-group (i.e. dueling_heros). this removes the problems with checking to see if a unit is summoned or not, and allows for checks directly on the # of heros. make the following trigger that initiates when a unit dies -- conditions "unit is a hero" "unit in region - dueling pit" actions "remove dying unit from unit group dueling_heros" "if (number of units in dueling_heros group == 1) Call trigger end duel else do nothing" as i said, i couldnt test it without getting someone else to play with me. btw, level looks pretty sweet. :D |
| 07-22-2003, 08:44 PM | #6 |
The problem is when a hero uses storm earth and fire, the 3 units created do not count as heroes... Which poses a serious problem... I have come to the conclusion it is impossible to do using: ((Number of units in (Units in Dueling Pit <gen> )) Equal to (Number of units in (Units in Dueling Pit <gen> owned by Player 1 (Red)))) or (((Number of units in (Units in Dueling Pit <gen> )) Equal to (Number of units in (Units in Dueling Pit <gen> owned by Player 2 (Blue)))) or (((Number of units in (Units in Dueling Pit <gen> )) Equal to (Number of units in (Units in Dueling Pit <gen> owned by Player 3(Teal)))) Because it can always equal to zero, and if i make a condition like: Nmber of units in dueling pit owned by player x NOT equal to zero... then the duel can end at any time because there will always be atleast 1-4 players who have a hero in the dueling pit, which would make it not equal to 0.... I think this is possibly impossible to do... Perhaps I should just delete the spell... |
