Leazy
You can change this now in User CP.
- Reaction score
- 50
Hello!
I created a custom Chain Heal (I triggered the whole ability). This is how I did it:
My problems are:
1 - Same target are some times healed twice.
2 - The lightning effects doesn't show up.
I created a custom Chain Heal (I triggered the whole ability). This is how I did it:
Trigger:
- Chain Heal
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Ability being cast) Equal to Chain Heal
- (Ability being cast) Equal to Chain Heal (Instant)
- Conditions
- Or - Any (Conditions) are true
- Actions
- Set Caster = (Triggering unit)
- Set Target = (Target unit of ability being cast)
- Set Point[1] = (Position of Caster)
- Set Point[2] = (Position of Target)
- Unit Group - Add Target to UnitGroup[1]
- Lightning - Create a Healing Wave - Primary lightning effect from source Point[1] to target Point[2]
- Lightning - Destroy (Last created lightning effect)
- Special Effect - Create a special effect attached to the origin of Target using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl
- Set Healing = (Random real number between 250.00 and 275.00)
- Set SpellPower_Percent = 0.33
- Trigger - Run Spell Power <gen> (checking conditions)
- Trigger - Run Critical Strike <gen> (checking conditions)
- Unit - Set life of Target to ((Life of Target) + Healing)
- Trigger - Run Healing Text <gen> (checking conditions)
- Set UnitGroup[2] = (Units within 600.00 of Point[2] matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an ally of (Owner of Caster)) Equal to True)) and ((((Matching unit) is in UnitGroup[1]) Equal to False) and ((Life of (Matching unit)) Les
- Set UnitGroup[3] = (Random 1 units from UnitGroup[2])
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (UnitGroup[3] is empty) Equal to False
- Then - Actions
- Unit Group - Pick every unit in UnitGroup[3] and do (Actions)
- Loop - Actions
- Set Target = (Picked unit)
- Set Point[3] = (Position of Target)
- Unit Group - Add Target to UnitGroup[1]
- Lightning - Create a Healing Wave - Primary lightning effect from source Point[2] to target Point[3]
- Lightning - Destroy (Last created lightning effect)
- Special Effect - Create a special effect attached to the origin of Target using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl
- Set Healing = (Random real number between 250.00 and 275.00)
- Set SpellPower_Percent = 0.33
- Trigger - Run Spell Power <gen> (checking conditions)
- Trigger - Run Critical Strike <gen> (checking conditions)
- Set Healing = (Healing x 0.60)
- Unit - Set life of Target to ((Life of Target) + Healing)
- Trigger - Run Healing Text <gen> (checking conditions)
- Loop - Actions
- Set UnitGroup[4] = (Units within 600.00 of Point[3] matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an ally of (Owner of Caster)) Equal to True)) and ((((Matching unit) is in UnitGroup[1]) Equal to False) and ((Life of (Matching unit)) Les
- Set UnitGroup[5] = (Random 1 units from UnitGroup[4])
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (UnitGroup[5] is empty) Equal to False
- Then - Actions
- Unit Group - Pick every unit in UnitGroup[5] and do (Actions)
- Loop - Actions
- Set Target = (Picked unit)
- Set Point[4] = (Position of Target)
- Unit Group - Add Target to UnitGroup[1]
- Lightning - Create a Healing Wave - Primary lightning effect from source Point[3] to target Point[4]
- Lightning - Destroy (Last created lightning effect)
- Special Effect - Create a special effect attached to the origin of Target using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl
- Set Healing = (Random real number between 250.00 and 275.00)
- Set SpellPower_Percent = 0.33
- Trigger - Run Spell Power <gen> (checking conditions)
- Trigger - Run Critical Strike <gen> (checking conditions)
- Set Healing = (Healing x 0.36)
- Unit - Set life of Target to ((Life of Target) + Healing)
- Trigger - Run Healing Text <gen> (checking conditions)
- Loop - Actions
- Unit Group - Pick every unit in UnitGroup[5] and do (Actions)
- Else - Actions
- If - Conditions
- Unit Group - Pick every unit in UnitGroup[3] and do (Actions)
- Else - Actions
- If - Conditions
- Events
My problems are:
1 - Same target are some times healed twice.
2 - The lightning effects doesn't show up.