Hello there~
Big Edit: Solved the problem, especial thank to Rulerofiron99 for that :3
The idea of the ability is, to counterattack an enemy if an attack has been evaded. After some thinking, the idea of creating an illusion seemed rather appealing to me - If an attack is evaded, an illusion is created that attacks the source of the evaded attack, dealing normal hero damage + adding a debuff onto the enemy. That train of thought fits my Hero, the Demoness, very well as I think.
Anyway, before I post the triggers, a few things to note:
- The ability that leaves the debuff is an aversion of inner fire, that reduces attack damage and armor. The ability is called seduce and is an ability of the Demoness, that can be triggered through this illusion-counter-attack, but the level of the debuff is not set after the base ability level(Seductive Bane), but rather after seduce(With an exception of the first level, which is always applied, even if Seduce has not been learned by the Hero).
- The ability of the "Counter Attack Dummy" is a modified "Item Illusions"
- The trigger has one, possibly two, situational problems...
1. If an illusion of the Demoness, that actually does damage(which the normal illusions would not do), would be created, that illusion would vanish once it dealt damage.
2. I think... If two instances of the trigger would spawn at the exact same time, it could create a bug~ Not sure about that one - and it seems highly unlikely anyway.
SO now, to the triggers~ First the setup+coded evasion:
Soo~ These are the trigggers for the skill. If you find any glaring mistake, please tell me so I can fix it~
Big Edit: Solved the problem, especial thank to Rulerofiron99 for that :3
The idea of the ability is, to counterattack an enemy if an attack has been evaded. After some thinking, the idea of creating an illusion seemed rather appealing to me - If an attack is evaded, an illusion is created that attacks the source of the evaded attack, dealing normal hero damage + adding a debuff onto the enemy. That train of thought fits my Hero, the Demoness, very well as I think.
Anyway, before I post the triggers, a few things to note:
- The ability that leaves the debuff is an aversion of inner fire, that reduces attack damage and armor. The ability is called seduce and is an ability of the Demoness, that can be triggered through this illusion-counter-attack, but the level of the debuff is not set after the base ability level(Seductive Bane), but rather after seduce(With an exception of the first level, which is always applied, even if Seduce has not been learned by the Hero).
- The ability of the "Counter Attack Dummy" is a modified "Item Illusions"
- The trigger has one, possibly two, situational problems...
1. If an illusion of the Demoness, that actually does damage(which the normal illusions would not do), would be created, that illusion would vanish once it dealt damage.
2. I think... If two instances of the trigger would spawn at the exact same time, it could create a bug~ Not sure about that one - and it seems highly unlikely anyway.
SO now, to the triggers~ First the setup+coded evasion:
-
Seductive Bane Setup and Evasion
-
Events
- Game - DamageModifierEvent becomes Equal to 1.00
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Seductive Bane for DamageEventTarget) Greater than or equal to 1
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random percentage) Less than or equal to ((Real((Level of Seductive Bane for DamageEventTarget))) x 7.00)
-
Then - Actions
- Set DamageEventAmount = 0.00
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (DamageEventSource is A flying unit) Equal to False
-
Then - Actions
- Set TempVariableForCounter = DamageEventSource
- Unit - Create 1 Counter Attack Dummy for (Owner of DamageEventTarget) at (Position of DamageEventTarget) facing Default building facing degrees
- Set CasterUnit = (Last created unit)
- Set TargetUnit = DamageEventTarget
- Custom script: call IssueTargetOrderById(udg_CasterUnit, 852274, udg_TargetUnit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Seductive Bane Counterattack
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- (Unit-type of TempVariableForCounter) Not equal to No unit-type
- ((Triggering unit) is an illusion) Equal to True
-
Actions
- Set CounterAttackIllusion = (Triggering unit)
- Custom script: call UnitAddAbility(udg_CounterAttackIllusion, 'Aloc')
- Unit - Order (Triggering unit) to Attack TempVariableForCounter
- Set TempVariableForCounter = No unit
-
Events
-
Seductive Bane Illusion destroy and Debuff
-
Events
- Game - DamageEvent becomes Equal to 1.00
-
Conditions
- (Unit-type of DamageEventSource) Equal to Demoness
- (DamageEventSource is an illusion) Equal to True
-
Actions
- Unit - Create 1 Counter Attack Debuff Dummy for (Owner of DamageEventSource) at (Position of DamageEventTarget) facing Default building facing degrees
- Unit - Set Level of Seduce (Non-Hero) for (Last created unit) to (Level of Seduce for DamageEventSource)
- Unit - Order (Last created unit) to Human Priest - Inner Fire DamageEventTarget
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Add a 0.50 second Generic expiration timer to DamageEventSource
-
Events
Soo~ These are the trigggers for the skill. If you find any glaring mistake, please tell me so I can fix it~
Last edited: