ironfist19
New Member
- Reaction score
- 3
Hi, I need help! I want my spell to create a lightning effect that will follow the units rotated in a range. I am having a problem because my trigger is created noobishly.
My Triggers :
My Triggers :
Trigger:
- Magnetic Rotation
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Magnetic Rotation
- Actions
- Set MRCaster = (Triggering unit)
- Set RotatedUnit = (Units within 500.00 of CasterLoc matching (((Matching unit) belongs to an enemy of (Owner of MRCaster)) Equal to True))
- Lightning - Create a Drain Life lightning effect from source CasterLoc to target (Position of (Random unit from RotatedUnit))
- Trigger - Turn on Rotation Units <gen>
- Wait 10.00 seconds
- Trigger - Turn off Rotation Units <gen>
- Lightning - Destroy (Last created lightning effect)
- Events
Trigger:
- Rotation Units
- Events
- Time - Every 0.04 seconds of game time
- Conditions
- Actions
- Set CasterLoc = (Position of MRCaster)
- Unit Group - Pick every unit in RotatedUnit and do (Actions)
- Loop - Actions
- Unit - Move (Picked unit) instantly to (CasterLoc offset by ((Distance between CasterLoc and (Position of (Picked unit))) - 5.00) towards ((Angle from CasterLoc to (Position of (Picked unit))) + 10.00) degrees)
- Loop - Actions
- Events