- Joined
- Aug 27, 2007
- Messages
- 127
Hey guys, I need help with another spell, Demon Spine. This is how it's suppossed to work:
This is what I have so far
Code:
The Spines deal more damage, and attach themselves to enemy units. When those units die, they will explode, and the attached spines will disperse, damaging enemies in a set blast radius. The additional damage of Demon Spine and the power and blast radius of the dispersed spine increase as skill points are invested into this skill.
This is what I have so far
-
Demon Spine
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Demon Spine
- (Unit-type of (Casting unit)) Equal to Admiral_Stalfos19
- ((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit))) Equal to True
- (Mana of (Casting unit)) Greater than or equal to (((Real((Level of Demon Spine for (Casting unit)))) x 5.00) + 10.00)
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Set Level = (Level of Demon Spine for (Casting unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Damage taken) Greater than or equal to ((Life of (Triggering unit)) - 0.41)
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Target has buff Demon Spine ) Equal to True
-
Then - Actions
- Set Location = (Position of (Target unit of ability being cast))
- Special Effect - Create a special effect at Location using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
-
Unit Group - Pick every unit in (Units within ((250.00 x (Real(Level))) + 250.00) of Location) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Level Equal to 1
-
Then - Actions
- Unit - Create 1 DumE4DemonSpineL1 for Player 1 (Red) at Location facing Default building facing degrees
- Unit - Order (Last created unit) to Attack (Picked unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Level Equal to 2
-
Then - Actions
- Unit - Create 1 DumE4DemonSpineL2 for Player 1 (Red) at Location facing Default building facing degrees
- Unit - Order (Last created unit) to Attack (Picked unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Level Equal to 3
-
Then - Actions
- Unit - Create 1 DumE4DemonSpineL3 for Player 1 (Red) at Location facing Default building facing degrees
- Unit - Order (Last created unit) to Attack (Picked unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Location)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
Events
-
Autocast
-
Events
- Unit - A unit Is issued an order with no target
-
Conditions
- (Unit-type of (Ordered unit)) Equal to Admiral_Stalfos19
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Issued order) Equal to (Order(blackarrowon))
-
Then - Actions
- Set Activation = True
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Issued order) Equal to (Order(blackarrowoff))
-
Then - Actions
- Set Activation = False
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Activating
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Admiral_Stalfos19
- Activation Equal to True
- ((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True
- (Mana of (Attacking unit)) Greater than or equal to (((Real((Level of Demon Spine for (Casting unit)))) x 5.00) + 10.00)
-
Actions
- Trigger - Turn off Explosion <gen>
- Set Target = (Attacked unit)
- Trigger - Add to Explosion <gen> the event (Unit - Target Takes damage)
- Trigger - Turn on Explosion <gen>
-
Events
-
Explosion
- Events
-
Conditions
- (Unit-type of (Damage source)) Equal to Admiral_Stalfos19
-
Actions
- Set Level = (Level of Demon Spine for (Damage source))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Damage taken) Greater than or equal to ((Life of (Triggering unit)) - 0.41)
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Target has buff Demon Spine ) Equal to True
-
Then - Actions
- Set Location = (Position of Target)
- Special Effect - Create a special effect at Location using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
-
Unit Group - Pick every unit in (Units within ((250.00 x (Real(Level))) + 250.00) of Location) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Level Equal to 1
-
Then - Actions
- Unit - Create 1 DumE4DemonSpineL1 for Player 1 (Red) at Location facing Default building facing degrees
- Unit - Order (Last created unit) to Attack (Picked unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Level Equal to 2
-
Then - Actions
- Unit - Create 1 DumE4DemonSpineL2 for Player 1 (Red) at Location facing Default building facing degrees
- Unit - Order (Last created unit) to Attack (Picked unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Level Equal to 3
-
Then - Actions
- Unit - Create 1 DumE4DemonSpineL3 for Player 1 (Red) at Location facing Default building facing degrees
- Unit - Order (Last created unit) to Attack (Picked unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Location)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
Last edited: