Archideas
Active Member
- Reaction score
- 32
I'm trying to create a Maim like abiltity, where an enemy unit is targeted. The targeted unit then becomes slowed and suffers damage over time. This is the damage I'm as efficiently as possible am trying to deal to the unit over time.
Level 1 - 100 damage over 10 seconds
Level 2 - 140 damage over 11 seconds
Level 3 - 180 damage over 12 seconds
How do I achieve this by the most efficient triggering possible? I've gotten this far, but by no means it's nowhere accurate in damage.
I might have overlooked something really basic and simple, but I simply blame it on a temporary brainfart.
Level 1 - 100 damage over 10 seconds
Level 2 - 140 damage over 11 seconds
Level 3 - 180 damage over 12 seconds
How do I achieve this by the most efficient triggering possible? I've gotten this far, but by no means it's nowhere accurate in damage.
Trigger:
- Maim
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to Maim
- Then - Actions
- Set Caster = (Casting unit)
- Set TempTarget = (Target unit of ability being cast)
- For each (Integer A) from 1 to (9 + ((Level of (Ability being cast) for Caster) + 1)), do (Actions)
- Loop - Actions
- Wait 1.00 seconds
- Unit - Cause Caster to damage TempTarget, dealing ((Real((Level of (Ability being cast) for Caster))) x 50.00) damage of attack type Spells and damage type Normal
- Loop - Actions
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
I might have overlooked something really basic and simple, but I simply blame it on a temporary brainfart.