| 08-08-2003, 12:01 AM | #1 |
ok will these triggers work? im setting up a team vs team duel in my hero arena and im having problems ending the duel and i really dont have a clue what to do if u can help me solve this problem ill add u 2 credits o and heres what the varibles r DuelTeam2Fighter-region Team2Duel-unit group DuelArena-region bDuel-bolean varible Team1Leader-unit varible(not used its from the old duels but doesnt affect new 1s i think.....) Team1leaderHero- same as above(i think) bpaused-boolean varible ---------------------this 1 sets up the team2 hero unit group----------- team2 hero duel group Events Unit - A unit enters DuelTeam2Fighter <gen> Conditions Or - Any (Conditions) are true Conditions (Owner of (Triggering unit)) Equal to Player 7 (Green) (Owner of (Triggering unit)) Equal to Player 8 (Pink) (Owner of (Triggering unit)) Equal to Player 9 (Gray) (Owner of (Triggering unit)) Equal to Player 10 (Light Blue) (Owner of (Triggering unit)) Equal to Player 11 (Dark Green) (Owner of (Triggering unit)) Equal to Player 12 (Brown) ((Triggering unit) is A Hero) Equal to True Actions Unit Group - Add (Entering unit) to Team2duel ------------------------starts the team 2 losing end duel trigger-------- start end duel team 2 Events Time - Every 2.00 seconds of game time Conditions bDuel Equal to True (All units of Team2duel are in DuelArena <gen>) Equal to False Actions Trigger - Run End Duel Copy <gen> (ignoring conditions) --------------end duel trigger------------------------------------------ End Duel Copy Events Conditions Actions Unit - Pause all units Wait 5.00 seconds Player Group - Pick every player in (All players) and do (Camera - Reset camera for (Picked player) to standard game-view over 0.50 seconds) Unit Group - Pick every unit in Crowd and do (Unit - Move (Picked unit) instantly to (Random point in Crowd <gen>), facing (Center of Starting <gen>)) Unit - Move Razormane Chieftain 0124 <gen> instantly to (Center of UtherHome <gen>) Unit - Unpause all units For each (Integer A) from 1 to 12, do (Unit - Move Heroes[(Integer A)] instantly to HeroSavePoints[(Integer A)], facing HeroSaveDirection[(Integer A)] degrees) For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Vulnerable) For each (Integer A) from 1 to 12, do (Camera - Pan camera for (Player((Integer A))) to HeroSavePoints[(Integer A)] over 0.00 seconds) Set Team1Leader = 14 Set Team2Leader = 14 Set Team1LeaderHero = No unit Set Team2LeaderHero = No unit Unit Group - Remove all units of Team1duel from Team1duel Unit Group - Remove all units of Team2duel from Team2duel Wait 5.00 seconds Set bDuel = False Set bPasued = False Player Group - Pick every player in (All players) and do (Camera - Reset camera for (Picked player) to standard game-view over 0.50 seconds) Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 240.00 seconds ---------------------------start duel trigger--------------------------- Start teamvteam duel Events Time - DuelTimer expires Conditions Actions Game - Display to (All players) the text: Duel Time! Unit - Pause all units Set bPasued = True Set bDuel = True Wait 1.00 seconds Unit - Move Razormane Chieftain 0124 <gen> instantly to (Center of UtherDuel <gen>) Unit Group - Pick every unit in Crowd and do (Unit - Move (Picked unit) instantly to (Random point in DuelCrowd <gen>), facing (Center of DuelArena <gen>)) Unit Group - Pick every unit in Crowd and do (Unit - Unpause (Picked unit)) For each (Integer A) from 1 to 12, do (Set HeroSavePoints[(Integer A)] = (Position of Heroes[(Integer A)])) For each (Integer A) from 1 to 12, do (Set HeroSaveDirection[(Integer A)] = (Facing of Heroes[(Integer A)])) For each (Integer A) from 1 to 12, do (Unit - Move Heroes[(Integer A)] instantly to (Center of HeroDuelSpots[(Integer A)])) For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] face (Center of DuelArena <gen>) over 0.00 seconds) For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Invulnerable) For each (Integer A) from 1 to 12, do (Unit - Set life of Heroes[(Integer A)] to 100.00%) For each (Integer A) from 1 to 12, do (Unit - Set mana of Heroes[(Integer A)] to 100.00%) For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Vulnerable) If ((Number of units in (Units in DuelArena <gen>)) Less than or equal to 1) then do (Trigger - Run End Duel Copy <gen> (ignoring conditions)) else do (Do nothing) Wait 1.50 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! Wait 0.50 seconds Unit - Unpause all units Item - Create (Random level 4 item-type) at (Center of Item <gen>) |
| 08-08-2003, 08:13 PM | #2 |
any1? |
| 08-08-2003, 08:22 PM | #3 |
Ummm...wouldn't it be quicker to cut down your triggers in smaller peices, run each trigger and see if they execute properly? If one doesn't, you can just solve that little peice. Try not predict a problem, find one first and then post it here. |
| 08-08-2003, 08:40 PM | #4 |
well i no they dont work i should of typed the thread name differently but i dont no what part isnt working except i no the start duel works but i thought it might cause problems so i posted as well |
| 08-08-2003, 08:46 PM | #5 |
As I said, cut your whole into peices and run each one individually. When you come into a problem, you will know of which trigger your running into. My suggestions for future triggering - make one trigger at a time, run, see if it works. So if you made 100 triggers and something screwed up all of them, you wouldn't be able to find that glitch in the trigger. Also, make sure you use proper grammar and use complete sentences, it really bugs my eyes out when you just put words together. |
| 08-09-2003, 02:51 PM | #6 |
ok im almost positive i no what it it its the condition in the start end duel trigger is there a trigger to say duel arena contaians no units from teamduel2 equal to true does a condition like that exist? |
