- Joined
- Sep 24, 2007
- Messages
- 300
Well, I have some triggers that are bugged and I don't know where is the problem, so I am asking you guys here. :]
1. These are 2 triggers for 1v1 arena fight. It goes like this: Hero from Team 2 enters his region and then hero from Team 1 enters his own region. Ofc trigger must check if they belong to the right force and the number of heroes in region. BUT...nothing happens.
Trigger for TEam 2:
2. This trigger is made to prevent teamkilling. But for some reason, Human units (Player 12) stop the attack against enemies from 6-10 but they attack player 11. (forces are freom 1-5+12 and 6-11).
1. These are 2 triggers for 1v1 arena fight. It goes like this: Hero from Team 2 enters his region and then hero from Team 1 enters his own region. Ofc trigger must check if they belong to the right force and the number of heroes in region. BUT...nothing happens.
Trigger for TEam 2:
-
PvP begin ORC
-
Events
- Unit - A unit enters orcPvP <gen>
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Entering unit) is A Hero) Equal to True
- (Player number of (Owner of (Entering unit))) Greater than or equal to 6
-
Then - Actions
- Set PvPheroes[2] = (Number of units in (Units in orcPvP <gen>))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
PvP begin HU
-
Events
- Unit - A unit enters humanPvP <gen>
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Entering unit) is A Hero) Equal to True
- (Player number of (Owner of (Entering unit))) Less than or equal to 5
-
Then - Actions
- Set PvPheroes[1] = (Number of units in (Units in humanPvP <gen>))
- Else - Actions
-
If - Conditions
-
Unit Group - Pick every unit in (Units in PvParena <gen>) and do (Actions)
-
Loop - Actions
- Set PvPheroes[3] = (Number of units in (Units in PvParena <gen>))
-
Loop - Actions
- Wait 1.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (PvPheroes[1] Equal to 1) and ((PvPheroes[2] Equal to 1) and (PvPheroes[3] Equal to 0))
-
Then - Actions
-
Unit Group - Pick every unit in (Units in humanPvP <gen>) and do (Actions)
-
Loop - Actions
- Unit - Move (Picked unit) instantly to (Position of Snowy Tree Wall 0429 <gen>)
- Camera - Pan camera for (Owner of (Picked unit)) to (Position of Snowy Tree Wall 0429 <gen>) over 0.00 seconds
- Unit - Make (Picked unit) Vulnerable
- Unit - Pause (Picked unit)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in orcPvP <gen>) and do (Actions)
-
Loop - Actions
- Unit - Move (Picked unit) instantly to (Position of Snowy Tree Wall 0430 <gen>)
- Camera - Pan camera for (Owner of (Picked unit)) to (Position of Snowy Tree Wall 0430 <gen>) over 0.00 seconds
- Unit - Make (Picked unit) Vulnerable
- Unit - Pause (Picked unit)
-
Loop - Actions
- Game - Display to (All players) the text: Orc and Human heroe...
- Wait 2.00 seconds
- Game - Display to (All players) the text: Battle begins in: 3
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: Battle begins in: 2
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: Battle begins in: 1
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Sound - Play O05Cenarius03 <gen>
-
Unit Group - Pick every unit in (Units in PvParena <gen>) and do (Actions)
-
Loop - Actions
- Unit - Unpause (Picked unit)
-
Loop - Actions
- Wait 55.00 seconds
- Game - Display to (All players) the text: Battle ends in: 5
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: Battle ends in: 4
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: Battle ends in: 3
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: Battle ends in: 2
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: Battle ends in: 1
- Sound - Play BattleNetTick <gen>
- Wait 1.00 seconds
- Game - Display to (All players) the text: Battle ends in: 0
- Sound - Play BattleNetTick <gen>
-
Unit Group - Pick every unit in (Units in PvParena <gen>) and do (Actions)
-
Loop - Actions
- Unit - Move (Picked unit) instantly to (Position of Fountain 0075 <gen>)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in humanPvP <gen>) and do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
2. This trigger is made to prevent teamkilling. But for some reason, Human units (Player 12) stop the attack against enemies from 6-10 but they attack player 11. (forces are freom 1-5+12 and 6-11).
-
Prevent Team kill and denying
-
Events
- Unit - A unit Is attacked
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player number of (Owner of (Attacked unit))) Less than or equal to 5
- (Player number of (Owner of (Attacking unit))) Less than or equal to 5
-
Then - Actions
- Unit - Order (Attacking unit) to Stop
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player number of (Owner of (Attacking unit))) Greater than or equal to 6
- (Player number of (Owner of (Attacked unit))) Greater than or equal to 6
- (Player number of (Owner of (Attacked unit))) Not equal to 12
- (Player number of (Owner of (Attacking unit))) Not equal to 12
- (Player number of (Owner of (Attacked unit))) Not equal to 11
-
Then - Actions
- Unit - Order (Attacking unit) to Stop
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player number of (Owner of (Attacked unit))) Equal to 12
- (Player number of (Owner of (Attacking unit))) Less than or equal to 5
-
Then - Actions
- Special Effect - Create a special effect attached to the Attach Point - Overhead of (Entering unit) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosDone.mdl
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player number of (Owner of (Attacked unit))) Equal to 11
- (Player number of (Owner of (Attacking unit))) Greater than or equal to 6
- (Player number of (Owner of (Attacked unit))) Not equal to 12
-
Then - Actions
- Special Effect - Create a special effect attached to the Attach Point - Overhead of (Entering unit) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosDone.mdl
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events