- Joined
- Aug 7, 2016
- Messages
- 55
Well, I've been searching tutorials in the internet on how to create walls on a horizontal line, but none of what I found helped me. Anyway here is my trigger.
-
Crystal Wall Spell
-
Events
- Unit - A unit starts the effect of an ability
-
Conditions
- (Ability being cast) equal to Crystal Wall
-
Actions
- Set Caster = (Triggering unit)
- Set PointLoc[1] = (Position of Caster)
- Set PointLoc[2] = (Target point of ability being cast)
-
For each (Integer A) from 1 to 2, do Actions
-
Loop - Actions
- Set Offset[1] = (PointLoc[2] offset by 70 towards ((Angle from PointLoc[1] to PointLoc[2]) + ((Real(Integer A)) x 129.50)) degrees)
- Unit - Create 1 Crystal Wall dummy for (Owner of Caster) at Offset[1] facing Default building facing degrees
- Unit - Add Crystal Wall Slow to (Last created unit)
- Unit - Set level of Crystal Wall Slow for (Last created unit) to (Level of Crystal Wall for Caster)
- Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_Offset[1]
-
Loop - Actions
-
For each (Integer B) from 1 to 2, do Actions
-
Loop - Actions
- Set Offset[2] = (PointLoc[2] offset by 170 towards ((Angle from PointLoc[1] to PointLoc[2]) + ((Real(Integer B)) x 129.50)) degrees)
- Unit - Create 1 Crystal Wall dummy for (Owner of Caster) at Offset[2] facing Default building facing degrees
- Unit - Add Crystal Wall Slow to (Last created unit)
- Unit - Set level of Crystal Wall Slow for (Last created unit) to (Level of Crystal Wall for Caster)
- Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_Offset[2]
-
Loop - Actions
- Custom script: call RemoveLocation(udg_PointLoc[1])
- Custom script: call RemoveLocation(udg_PointLoc[2])
-
Events