- Joined
- Aug 5, 2010
- Messages
- 147
I made a custom immolation like spell, spent several hours debugging and fixing it, want to know if their is anything i missed, the ability works fine ingame.
The spell is similar to immolation but the damage dealt is increased whenever the hero that has it is attacked and the damage will eventually go back down to 0 if the unit isnt getting attacked
I copied all the triggers/units/abilitys over to a new map so i could debug it better, its attached to this post.
One last thing, i attempted to make it so the unit with the ability gains a buff that keeps track of the Immo_Stacks so the player can see what their current stacks are, ive seen this done in Enfo TS maps so i know its possible i just couldnt figure out how to do it, so do i do this?
The spell is similar to immolation but the damage dealt is increased whenever the hero that has it is attacked and the damage will eventually go back down to 0 if the unit isnt getting attacked
-
Spell Variables
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
-------- Immolating Chaos --------
-
Set Immo_Amount[1] = 5.00
-
Set Immo_Amount[2] = 10.00
-
Set Immo_Amount[3] = 20.00
-
Set Immo_Amount[4] = 40.00
-
Set Immo_Amount[5] = 80.00
-
Set Immo_Amount[6] = 160.00
-
Set Immo_Amount[7] = 320.00
-
Set Immo_Amount[8] = 640.00
-
Set Immo_Amount[9] = 1280.00
-
Set Immo_Amount[10] = 2560.00
-
-
-
Immo Learn
-
Events
-
Unit - A unit Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to Immolating Chaos [Passive]
-
-
Actions
-
Set Immo_Hero = (Learning Hero)
-
Trigger - Turn on Immo Add <gen>
-
Trigger - Turn on Immo Damage <gen>
-
Trigger - Turn off (This trigger)
-
-
-
Immo Add
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Unit-type of (Attacked unit)) Equal to Chaos Revenant [Str]
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Immo_Stacks Less than or equal to 10
-
-
Then - Actions
-
Set Immo_Stacks = (Immo_Stacks + 1)
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Immo_Stacks Greater than or equal to 11
-
-
Then - Actions
-
Set Immo_Stacks = 10
-
-
Else - Actions
-
-
-
-
Immo Damage
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Set Immo_Point = (Position of Immo_Hero)
-
Set Immo_Group = (Units within 200.00 of Immo_Point matching (((Matching unit) belongs to an enemy of (Owner of Immo_Hero)) Equal to True))
-
Set Immo_Damage = (Immo_Amount[(Level of Immolating Chaos [Passive] for Immo_Hero)] x (Real(Immo_Stacks)))
-
Unit Group - Pick every unit in Immo_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is A structure) Equal to False
-
((Picked unit) is Magic Immune) Equal to False
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Unit - Cause Immo_Hero to damage (Picked unit), dealing Immo_Damage damage of attack type Spells and damage type Normal
-
-
Else - Actions
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Immo_Stacks Greater than or equal to 1
-
-
Then - Actions
-
Set Immo_Stacks = (Immo_Stacks - 1)
-
-
Else - Actions
-
Do nothing
-
-
-
Set Immo_Damage = 0.00
-
Custom script: call DestroyGroup(udg_Immo_Group)
-
Custom script: call RemoveLocation(udg_Immo_Point)
-
-
One last thing, i attempted to make it so the unit with the ability gains a buff that keeps track of the Immo_Stacks so the player can see what their current stacks are, ive seen this done in Enfo TS maps so i know its possible i just couldnt figure out how to do it, so do i do this?