- Joined
- Jun 25, 2018
- Messages
- 3
Hello there. I am working on my custom campaign. However, I am having issues with one of my custom abilities. The ability is supposed to heal random friendly units close to the caster, every second, up to a maximum of five seconds, meaning only five units to be healed.
The ability starts correctly, lasts correctly amount of time, correctly gets the units to be healed, stops after correct amount of time. The issue however. The units are not healed. They are instead put down to the amount of health (ish) the ability should heal them for. (The special effect doesn't work either, but that is not a big deal at the moment.
I can provide a test map as well if it is completely necessary, I will just need some time to transfer the ability and so on to a testing map. However if someone is able to just tell by my trigger why it isn't working, that would be awesome. Thanks in advance.
The ability starts correctly, lasts correctly amount of time, correctly gets the units to be healed, stops after correct amount of time. The issue however. The units are not healed. They are instead put down to the amount of health (ish) the ability should heal them for. (The special effect doesn't work either, but that is not a big deal at the moment.
I can provide a test map as well if it is completely necessary, I will just need some time to transfer the ability and so on to a testing map. However if someone is able to just tell by my trigger why it isn't working, that would be awesome. Thanks in advance.
-
AoL Effect
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
- Special Effect - Create a special effect at ((Position of AoL_Caster) offset by 100.00 towards AoL_Number degrees) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Set AoL_Counter = (AoL_Counter + 1)
- Set AoL_Number = (AoL_Number + 20.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- AoL_Counter Equal to 10
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Aura of Light for AoL_Caster) Equal to 1
-
Then - Actions
- Unit - Set life of (Random unit from (Units within 200.00 of (Position of AoL_Caster) matching (((Matching unit) is in (Units owned by (Owner of AoL_Caster))) Equal to True))) to ((Life of (Matching unit)) + 40.00)
- Set AoL_Counter = 0
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Aura of Light for AoL_Caster) Equal to 2
-
Then - Actions
- Unit - Set life of (Random unit from (Units within 200.00 of (Position of AoL_Caster) matching (((Matching unit) is in (Units owned by (Owner of AoL_Caster))) Equal to True))) to ((Life of (Matching unit)) + 95.00)
- Set AoL_Counter = 0
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Aura of Light for AoL_Caster) Equal to 3
-
Then - Actions
- Unit - Set life of (Random unit from (Units within 200.00 of (Position of AoL_Caster) matching (((Matching unit) is in (Units owned by (Owner of AoL_Caster))) Equal to True))) to ((Life of (Matching unit)) + 120.00)
- Unit - Cause AoL_Caster to damage (Random unit from (Units within 200.00 of (Position of AoL_Caster) matching (((Matching unit) belongs to an enemy of (Owner of AoL_Caster)) Equal to True))), dealing 70.00 damage of attack type Spells and damage type Divine
- Set AoL_Counter = 0
- 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)
- Else - Actions
-
If - Conditions
-
Events