| 08-19-2004, 05:11 AM | #1 |
Part of my map basically pulls 4 teams of 2 into an arena to fight. I have created the trigger which does this and a trigger which will send them back to where they were when the fight is finished, however i can't come up with a way to run the 2nd trigger, ending the fight, when only 1 team is left standing. Its not as simple as a basic hero arena duel because there are multiple players fighting and teams to make things even more complex. For example, lets say team 1 kills every person in the arena. This team would consist of player 1 and player 2 so i would need some sort of trigger to understand that either player or both of them are still alive and every one else is dead and then run the end fight trigger. If anyone has any ideas let me know. Thanks |
| 08-19-2004, 08:54 AM | #2 |
I've taken up this challenge and found that this is fairly complicated. To save myself and you alot of time, i have decided just to post the map that i used to make the triggers for this. It requires TFT, and also some advanced knowledge of triggers to understand. If you need a easier version just ask me, and i'll make it. |
| 08-20-2004, 12:43 AM | #3 |
Thanks for the help. Its a lot of variable work but its definetely finding a winner now so thanks a lot! |
| 08-23-2004, 01:39 AM | #4 |
Its still not recognizing a winner. See if u can help me out. Heres trigger #1 that starts the duel. It moves everyone to their spots and seems to do everything as it should. However the second trigger doesnt recognize any of the heroes dieing and doesnt recognize a winner to end the duel. Events Time - DuelTimer expires Conditions None Actions Game - Display to (All players) the text: Draw your sword, It... Unit - Pause all units -------- Team 1 -------- Unit Group - Add DuelMan1 to Dueling_Groups[1] Unit Group - Add DuelMan2 to Dueling_Groups[1] -------- Team 2 -------- Unit Group - Add DuelMan3 to Dueling_Groups[2] Unit Group - Add DuelMan4 to Dueling_Groups[2] -------- Team 3 -------- Unit Group - Add DuelMan5 to Dueling_Groups[3] Unit Group - Add DuelMan6 to Dueling_Groups[3] -------- Team 4 -------- Unit Group - Add DuelMan7 to Dueling_Groups[4] Unit Group - Add DuelMan8 to Dueling_Groups[4] Wait 2.00 seconds Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Center of Duel Arena Center <gen>) over 1.00 seconds) For each (Integer A) from 1 to 8, do (Set HeroSavePoints[(Integer A)] = (Position of Heroes[(Integer A)])) For each (Integer A) from 1 to 8, do (Set HeroSaveDirection[(Integer A)] = (Facing of Heroes[(Integer A)])) For each (Integer A) from 1 to 8, do (Unit - Make Heroes[(Integer A)] face (Center of Duel Arena Center <gen>) over 0.00 seconds) For each (Integer A) from 1 to 8, do (Unit - Make Heroes[(Integer A)] Invulnerable) Unit - Move DuelMan1 instantly to (Center of Duel Arena Position A <gen>) Unit - Move DuelMan2 instantly to (Center of Duel Arena Position B <gen>) Unit - Move DuelMan3 instantly to (Center of Duel Arena Position C <gen>) Unit - Move DuelMan4 instantly to (Center of Duel Arena Position D <gen>) Unit - Move DuelMan5 instantly to (Center of Duel Arena Position E <gen>) Unit - Move DuelMan6 instantly to (Center of Duel Arena Position F <gen>) Unit - Move DuelMan7 instantly to (Center of Duel Arena Position G <gen>) Unit - Move DuelMan8 instantly to (Center of Duel Arena Position H <gen>) Unit Group - Pick every unit in (Units in Duel Arena <gen>) and do (Actions) Loop - Actions Unit - Set life of (Picked unit) to 100.00% Unit - Set mana of (Picked unit) to 100.00% Unit - Make (Picked unit) Vulnerable Wait 3.00 seconds Game - Display to (All players) the text: 3! 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: Go! Unit - Pause all units Wait 0.50 seconds Unit Group - Pick every unit in (Units in Duel Arena <gen>) and do (Actions) Loop - Actions Unit - Unpause (Picked unit) Heres Trigger #2 which is supposed to work but theres no indication that it does i never even get the text messages about teams losing so i know its flawed. Events Unit - A unit Dies Conditions None Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Triggering unit) is in Dueling_Groups[1]) Equal to True Then - Actions Unit Group - Remove (Triggering unit) from Dueling_Groups[1] If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in Dueling_Groups[1]) Equal to 0 Then - Actions Set LostDuel[1] = 1 Game - Display to (All players) the text: Team 1 has lost the... Else - Actions Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Triggering unit) is in Dueling_Groups[2]) Equal to True Then - Actions Unit Group - Remove (Triggering unit) from Dueling_Groups[2] If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in Dueling_Groups[2]) Equal to 0 Then - Actions Set LostDuel[2] = 1 Game - Display to (All players) the text: Team 2 has lost the... Else - Actions Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Triggering unit) is in Dueling_Groups[3]) Equal to True Then - Actions Unit Group - Remove (Triggering unit) from Dueling_Groups[3] If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in Dueling_Groups[3]) Equal to 0 Then - Actions Set LostDuel[3] = 1 Game - Display to (All players) the text: Team 3 has lost the... Else - Actions Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Triggering unit) is in Dueling_Groups[4]) Equal to True Then - Actions Unit Group - Remove (Triggering unit) from Dueling_Groups[4] If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in Dueling_Groups[4]) Equal to 0 Then - Actions Set LostDuel[4] = 1 Game - Display to (All players) the text: Team 4 has lost the... Else - Actions Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions LostDuel[2] Equal to 1 LostDuel[3] Equal to 1 LostDuel[4] Equal to 1 Then - Actions Game - Display to (All players) the text: Team 1 Wins the Due... Trigger - Run End Duel <gen> (checking conditions) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions LostDuel[1] Equal to 1 LostDuel[3] Equal to 1 LostDuel[4] Equal to 1 Then - Actions Game - Display to (All players) the text: Team 2 Wins the Due... Trigger - Run End Duel <gen> (checking conditions) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions LostDuel[1] Equal to 1 LostDuel[2] Equal to 1 LostDuel[4] Equal to 1 Then - Actions Game - Display to (All players) the text: Team 3 Wins the Due... Trigger - Run End Duel <gen> (checking conditions) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions LostDuel[1] Equal to 1 LostDuel[2] Equal to 1 LostDuel[3] Equal to 1 Then - Actions Game - Display to (All players) the text: Team 4 Wins the Due... Trigger - Run End Duel <gen> (checking conditions) Else - Actions |
| 08-23-2004, 10:38 PM | #5 |
I cant seem to figure out why the second trigger doesnt recognize a winner. It doesnt even display the text message that a team has lost so theres a problem early in the trigger. See if u can help me out. |
| 08-24-2004, 01:10 AM | #6 |
I'm puzzled too, i'll need some time to figure out whats wrong, i'll get the trig back to you soon. ![]() |
| 02-08-2005, 07:36 AM | #7 |
Guest | Did you guys ever figure out this problem? Im working on a map like this and I need to get this system working. I also need to pause units that are out of the arena area (due to death) Im guessing use Unit - Leaves Region and Unit - Pause. So, Im really hoping you got a fix to this. I really like the idea of last team standing wins, so let me know if you have to it figured out. |
| 02-08-2005, 07:13 PM | #8 |
please, this thread is dead... if they didnt solve it, they arent going to pause their map (if its still being created) to wait for an answer for 6 months. |
