- Joined
- Mar 23, 2008
- Messages
- 942
These triggers are supposed to summon a arrow that start moving after released and damage someone that goes into way... but does nothing, the unit just start channeling, and after that nothing happens...
-
Caladbolg start
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to Caladbolg II (based in channel)
-
Actions
- Set Caladbolg = (Casting unit)
- Set temppoint = (Target point of ability being cast)
- Unit - Make (Casting unit) face temppoint over 0.00 seconds
- Custom script: call RemoveLocation(udg_temppoint)
- Trigger - Turn on Caladbolg charge <gen>
- Trigger - Turn on Caladbolg end <gen>
-
Events
-
Caladbolg charge
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Unit - Set the custom value of Caladbolg to ((Custom value of Caladbolg) + 1)
-
Events
-
Caladbolg end
-
Events
- Unit - A unit Is issued an order targeting an object
- Unit - A unit Is issued an order targeting a point
- Unit - A unit Is issued an order with no target
- Unit - A unit Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Dying unit) Equal to Caladbolg
- (Ordered unit) Equal to Caladbolg
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Set SpellPoint[0] = (Position of Caladbolg)
- Set SpellPoint[1] = (SpellPoint[0] offset by 100.00 towards (Facing of Caladbolg) degrees)
- Unit - Create 1 Caladbolg Arrow for (Owner of Caladbolg) at SpellPoint[1] facing (Facing of Caladbolg) degrees
- Set Caladbolg = (Last created unit)
- Trigger - Turn off (This trigger)
- Trigger - Turn off Caladbolg charge <gen>
- Custom script: call RemoveLocation(udg_SpellPoint[0])
- Custom script: call RemoveLocation(udg_SpellPoint[1])
- Trigger - Turn on Caladbolg move <gen>
-
Events
-
Caladbolg move
-
Events
- Time - Every 0.04 seconds of game time
- Conditions
-
Actions
- Custom script: local real udg_tempreal
- Set SpellPoint[0] = (Position of Caladbolg)
- Set tempgroup = (Units within 80.00 of SpellPoint[0] matching (((Owner of (Triggering unit)) is an enemy of (Owner of Caladbolg)) Equal to True))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (tempgroup is empty) Equal to True
-
Then - Actions
- Unit - Cause PlayerHero[(Player number of (Owner of Caladbolg))] to damage (Random unit from tempgroup), dealing (120.00 x (Real((Custom value of PlayerHero[(Player number of (Owner of Caladbolg))])))) damage of attack type Spells and damage type Normal
- Unit - Set the custom value of PlayerHero[(Player number of (Owner of Caladbolg))] to 0
- Unit - Remove Caladbolg from the game
- Set Caladbolg = No unit
- Trigger - Turn off (This trigger)
- Custom script: call RemoveLocation(udg_SpellPoint[0])
- Custom script: call RemoveLocation(udg_SpellPoint[1])
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- tempreal Greater than or equal to 1200.00
-
Then - Actions
- Set Caladbolg = No unit
- Trigger - Turn off (This trigger)
- Custom script: call RemoveLocation(udg_SpellPoint[0])
- Custom script: call RemoveLocation(udg_SpellPoint[1])
-
Else - Actions
- Set tempreal = (tempreal + 8.00)
- Set SpellPoint[1] = (SpellPoint[0] offset by 8.00 towards (Facing of Caladbolg) degrees)
- Unit - Move Caladbolg instantly to SpellPoint[1]
- Custom script: call RemoveLocation(udg_SpellPoint[0])
- Custom script: call RemoveLocation(udg_SpellPoint[1])
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Events