Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Melee Initialization

Events


Unit - A unit Begins casting an ability

Conditions


(Ability being cast) Equal to Holy Light

Actions


Set VariableSet AbilityLevel = (Level of Holy Light for (Triggering unit))


Set VariableSet HeroIntelligence = (Intelligence of (Triggering unit) (Include bonuses))


Set VariableSet HealAmount = ((200.00 x (Real(AbilityLevel))) + (Real(HeroIntelligence)))


Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Holy Light)'s Real Level Field: Amount Healed/Damaged ('Hhb1') of Level: (AbilityLevel - 1) to HealAmount
Do you understand what these Variables are doing?I understand your answer, what if I want different levels of the same magic to have different scales? the higher the level, the higher the scale.
Set VariableSet HeroIntelligence = (Intelligence of (Triggering unit) (Include bonuses))
Set VariableSet HealAmount = ((200.00 x (Real(AbilityLevel))) + (Real(HeroIntelligence)))
@Teldrin, Uncle sort of glossed over this here and I'm certain he would say the same if he had thought to say it:you have to do Conversion -> Convert Integer To Real or Convert Real To Integer
Untitled Trigger 001

Events


Unit - A unit Begins casting an ability

Conditions


(Ability being cast) Equal to Holy Light

Actions


Set VariableSet AbilityLevel = (Level of Holy Light for (Triggering unit))


Set VariableSet HeroIntelligence = (Intelligence of (Triggering unit) (Include bonuses))


Set VariableSet HealAmount = (Max((Real(AbilityLevel)), (Real(HeroIntelligence))))


If ((Ability being cast) Equal to Holy Light) then do (Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Holy Light)'s Real Level Field: Amount Healed/Damaged ('Udc1') of Level: (Min(AbilityLevel, -1)) to HealAmount) else do (Do nothing)
Set VariableSet HealAmount = (Max((Real(AbilityLevel)), (Real(HeroIntelligence))))
Actions

Set VariableSet AbilityLevel = (Level of Holy Light for (Triggering unit))

Set VariableSet HeroIntelligence = (Intelligence of (Triggering unit) (Include bonuses))

Set VariableSet HealAmount = (Max((Real(AbilityLevel)), (Real(HeroIntelligence))))

Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Holy Light)'s Real Level Field: Amount Healed/Damaged ('Udc1') of Level: (AbilityLevel - 1) to HealAmount)
Untitled Trigger 001

Events


Unit - A unit Begins casting an ability

Conditions


(Ability being cast) Equal to Holy Light

Actions


Set VariableSet AbilityLevel = (Level of Holy Light for (Triggering unit))


Set VariableSet HeroIntelligence = (Intelligence of (Triggering unit) (Include bonuses))


Set VariableSet HealAmount = ((Real(AbilityLevel)) + (Real(HeroIntelligence)))


Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Holy Light)'s Real Level Field: Amount Healed/Damaged ('Hhb1') of Level: (AbilityLevel - 1) to HealAmount
That should work fine. Your only issue is the math for HealAmount, you're adding AbilityLevel + HeroIntelligence.Where did I go wrong now?
Untitled Trigger 001
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Holy Light
Actions
Set VariableSet AbilityLevel = (Level of Holy Light for (Triggering unit))
Set VariableSet HeroIntelligence = (Intelligence of (Triggering unit) (Include bonuses))
Set VariableSet HealAmount = ((Real(AbilityLevel)) + (Real(HeroIntelligence)))
Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Holy Light)'s Real Level Field: Amount Healed/Damaged ('Hhb1') of Level: (AbilityLevel - 1) to HealAmount
Events

Unit - A unit Begins casting an ability
Conditions

(Ability being cast) Equal to Holy Light
Actions

Set VariableSet AbilityLevel = (Level of Holy Light for (Triggering unit))

Set VariableSet AbilityScale = (0.8 + (0.2 x (Real(AbilityLevel)))

Set VariableSet HeroIntelligence = (Real(Intelligence of (Triggering unit) (Include bonuses)))

Set VariableSet HeroIntelligence = (HeroIntelligence x AbilityScale)

Set VariableSet HealAmount = (200.00 x (Real(AbilityLevel)))

Set VariableSet HealAmount = (HealAmount + HeroIntelligence)

Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Holy Light)'s Real Level Field: Amount Healed/Damaged ('Udc1') of Level: (AbilityLevel - 1) to HealAmount)
Not sure I understand but it's a pretty simple rule:So putting this -1 at the end of the trigger wouldn't make the entire trigger only affect the spell at its level 1?
Level Field: Amount Healed/Damaged ('Udc1') of Level: X
Essentially, having -1 in the formula affects the unit's current level of ability.So putting this -1 at the end of the trigger wouldn't make the entire trigger only affect the spell at its level 1?
