- Joined
- Mar 27, 2008
- Messages
- 1,003
Well... I have two problems with these triggers that I made.
Purpose of said triggers: To damage units owned by players in a certain group every five seconds and ping the location.
What works: The players and units are added to their respective groups when they enter the region, also they are removed from their respective groups once they leave the region. Also the text displays just fine.
What doesn't work: The units in the region aren't getting damaged and the ping doesn't ping the location of the unit, it only pings the first location that it was at.
The Triggers:
Add units and players to groups:
Purpose of said triggers: To damage units owned by players in a certain group every five seconds and ping the location.
What works: The players and units are added to their respective groups when they enter the region, also they are removed from their respective groups once they leave the region. Also the text displays just fine.
What doesn't work: The units in the region aren't getting damaged and the ping doesn't ping the location of the unit, it only pings the first location that it was at.
The Triggers:
Add units and players to groups:
-
Player Enters Fog
-
Events
- Unit - A unit enters Damage Players Outside Fort <gen>
-
Conditions
- (Owner of (Entering unit)) Not equal to Player 11 (Dark Green)
- (Owner of (Entering unit)) Not equal to Player 12 (Brown)
-
Actions
- Player Group - Add (Owner of (Entering unit)) to PLYRGRP_DamageHumans
- Unit Group - Add (Entering unit) to SYS_OutsideFort
-
Events
-
Player Leaves Fog
-
Events
- Unit - A unit leaves Damage Players Outside Fort <gen>
-
Conditions
- (Owner of (Leaving unit)) Not equal to Player 11 (Dark Green)
- (Owner of (Leaving unit)) Not equal to Player 12 (Brown)
-
Actions
- Player Group - Remove (Owner of (Leaving unit)) from PLYRGRP_DamageHumans
- Unit Group - Remove (Leaving unit) from SYS_OutsideFort
-
Events
-
Damage Players in Fog
-
Events
- Time - Every 5.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in SYS_OutsideFort and do (Actions)
-
Loop - Actions
- Unit - Cause UNIT_EnvironmentDamageTotem to damage (Picked unit), dealing 75.00 damage of attack type Chaos and damage type Disease
-
Loop - Actions
-
Player Group - Pick every player in PLYRGRP_DamageHumans and do (Actions)
-
Loop - Actions
- Game - Display to PLYRGRP_DamageHumans the text: |cffff0000You are o...
- Cinematic - Ping minimap for PLYRGRP_DamageHumans at (Position of (Picked unit)) for 5.00 seconds
-
Loop - Actions
-
Unit Group - Pick every unit in SYS_OutsideFort and do (Actions)
-
Events