TzalDadok
New Member
- Reaction score
- 2
Hymn of Hope is a spell im trying to copy from WoW. Im not trying to copy it exactly but most of it. Ill put the description of the spell im trying to do.
LEVEL 1:
Restores 2% mana to the caster every 2 seconds. The Priest must channel to maintain the spell. After a successful and complete channel also increases their total maximum mana by 10% for 15 seconds. Lasts 10 seconds.
LEVEL 2:
Restores 4% mana to the caster every 2 seconds. The Priest must channel to maintain the spell. After a successful and complete channel also increases their total maximum mana by 15% for 15 seconds. Lasts 10 seconds.
LEVEL 3:
Restores 6% mana to the caster every 2 seconds. The Priest must channel to maintain the spell. After a successful and complete channel also increases their total maximum mana by 20% for 15 seconds. Lasts 10 seconds.
LEVEL 4:
Restores 8% mana to the caster every 2 seconds. The Priest must channel to maintain the spell. After a successful and complete channel also increases their total maximum mana by 25% for 15 seconds. Lasts 10 seconds.
The part I cant figure out is how to increase the max mana of the caster.
This is what i have:
LEVEL 1:
Restores 2% mana to the caster every 2 seconds. The Priest must channel to maintain the spell. After a successful and complete channel also increases their total maximum mana by 10% for 15 seconds. Lasts 10 seconds.
LEVEL 2:
Restores 4% mana to the caster every 2 seconds. The Priest must channel to maintain the spell. After a successful and complete channel also increases their total maximum mana by 15% for 15 seconds. Lasts 10 seconds.
LEVEL 3:
Restores 6% mana to the caster every 2 seconds. The Priest must channel to maintain the spell. After a successful and complete channel also increases their total maximum mana by 20% for 15 seconds. Lasts 10 seconds.
LEVEL 4:
Restores 8% mana to the caster every 2 seconds. The Priest must channel to maintain the spell. After a successful and complete channel also increases their total maximum mana by 25% for 15 seconds. Lasts 10 seconds.
The part I cant figure out is how to increase the max mana of the caster.
This is what i have:
Trigger:
- Hymn of Hope
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Hymn of Hope
- Actions
- Set HymnOfHope_Caster = (Casting unit)
- Set HymnOfHope_Activate = True
- Countdown Timer - Start HymnOfHope_Timer as a One-shot timer that will expire in 10.00 seconds
- Events
Trigger:
- Hymn of Hope Activate
- Events
- Time - Every 2.00 seconds of game time
- Conditions
- HymnOfHope_Activate Equal to True
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hymn of Hope for HymnOfHope_Caster) Equal to 1
- Then - Actions
- Unit - Set mana of HymnOfHope_Caster to ((Mana of HymnOfHope_Caster) + ((Max mana of HymnOfHope_Caster) x 0.02))
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hymn of Hope for HymnOfHope_Caster) Equal to 2
- Then - Actions
- Unit - Set mana of HymnOfHope_Caster to ((Mana of HymnOfHope_Caster) + ((Max mana of HymnOfHope_Caster) x 0.04))
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hymn of Hope for HymnOfHope_Caster) Equal to 3
- Then - Actions
- Unit - Set mana of HymnOfHope_Caster to ((Mana of HymnOfHope_Caster) + ((Max mana of HymnOfHope_Caster) x 0.06))
- Else - Actions
- Unit - Set mana of HymnOfHope_Caster to ((Mana of HymnOfHope_Caster) + ((Max mana of HymnOfHope_Caster) x 0.08))
- 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:
- Hymn of Hope DeActivate
- Events
- Time - HymnOfHope_Timer expires
- Conditions
- Actions
- Set HymnOfHope_Activate = False
- Events