TzalDadok
New Member
- Reaction score
- 2
This is a triggered spell I made, is called Power Shield. I know it has been done but im the kind of guy who learns by doing and correcting.
The thing with this spell is that, when I use it, the target heals each time is hit. Kind of Lord of Avernus ultimate.
What I want to achieve is a shield that just absorbs damage.
Thanks for your help
The thing with this spell is that, when I use it, the target heals each time is hit. Kind of Lord of Avernus ultimate.
What I want to achieve is a shield that just absorbs damage.
Thanks for your help
Trigger:
- Power Shield 1
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Power Shield
- Actions
- Set PowerShield_SkillLevel = (PowerShield_SkillLevel + 1)
- Events
Trigger:
- Power Shield 2
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Power Shield
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PowerShield_SkillLevel Equal to 1
- Then - Actions
- Set PowerShield_Caster = (Casting unit)
- Set PowerShield_Target = (Target unit of ability being cast)
- Set PowerShield_ShieldLife = 200.00
- Set PowerShield_Activate = True
- Countdown Timer - Start PowerShield_Timer as a One-shot timer that will expire in 15.00 seconds
- Trigger - Add to Power Shield DeActivate 1 <gen> the event (Game - PowerShield_ShieldLife becomes Less than or equal to 0.00)
- Trigger - Add to Power Shield Activate <gen> the event (Unit - PowerShield_Target Takes damage)
- Unit - Create 1 Dummy for Player 1 (Red) at (Position of PowerShield_Target) facing Default building facing degrees
- Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror
- Unit - Remove (Last created unit) from the game
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PowerShield_SkillLevel Equal to 2
- Then - Actions
- Set PowerShield_Caster = (Casting unit)
- Set PowerShield_Target = (Target unit of ability being cast)
- Set PowerShield_ShieldLife = 300.00
- Set PowerShield_Activate = True
- Countdown Timer - Start PowerShield_Timer as a One-shot timer that will expire in 20.00 seconds
- Trigger - Add to Power Shield DeActivate 1 <gen> the event (Game - PowerShield_ShieldLife becomes Less than or equal to 0.00)
- Trigger - Add to Power Shield Activate <gen> the event (Unit - PowerShield_Target Takes damage)
- Unit - Create 1 Dummy for Player 1 (Red) at (Position of PowerShield_Target) facing Default building facing degrees
- Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror
- Unit - Remove (Last created unit) from the game
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PowerShield_SkillLevel Equal to 3
- Then - Actions
- Set PowerShield_Caster = (Casting unit)
- Set PowerShield_Target = (Target unit of ability being cast)
- Set PowerShield_ShieldLife = 400.00
- Set PowerShield_Activate = True
- Countdown Timer - Start PowerShield_Timer as a One-shot timer that will expire in 25.00 seconds
- Trigger - Add to Power Shield DeActivate 1 <gen> the event (Game - PowerShield_ShieldLife becomes Less than or equal to 0.00)
- Trigger - Add to Power Shield Activate <gen> the event (Unit - PowerShield_Target Takes damage)
- Unit - Create 1 Dummy for Player 1 (Red) at (Position of PowerShield_Target) facing Default building facing degrees
- Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror
- Unit - Remove (Last created unit) from the game
- Else - Actions
- Set PowerShield_Caster = (Casting unit)
- Set PowerShield_Target = (Target unit of ability being cast)
- Set PowerShield_ShieldLife = 500.00
- Set PowerShield_Activate = True
- Countdown Timer - Start PowerShield_Timer as a One-shot timer that will expire in 30.00 seconds
- Trigger - Add to Power Shield DeActivate 1 <gen> the event (Game - PowerShield_ShieldLife becomes Less than or equal to 0.00)
- Trigger - Add to Power Shield Activate <gen> the event (Unit - PowerShield_Target Takes damage)
- Unit - Create 1 Dummy for Player 1 (Red) at (Position of PowerShield_Target) facing Default building facing degrees
- Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror
- Unit - Remove (Last created unit) from the game
- 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)
- Events
Trigger:
- Power Shield Activate
- Events
- Conditions
- PowerShield_Activate Equal to True
- Actions
- Unit - Set life of PowerShield_Target to ((Life of PowerShield_Target) + (Damage taken))
- Set PowerShield_ShieldLife = (PowerShield_ShieldLife - (Damage taken))
Trigger:
- Power Shield DeActivate 1
- Events
- Conditions
- Actions
- Unit - Remove Power Shield buff from PowerShield_Target
- Set PowerShield_Activate = False
Trigger:
- Power Shield DeActivate 2
- Events
- Time - PowerShield_Timer expires
- Conditions
- PowerShield_Activate Equal to True
- Actions
- Unit - Remove Power Shield buff from PowerShield_Target
- Set PowerShield_Activate = False
- Events