Triggers & ScriptsIn this forum you may ask for help on fixing a trigger or script. But if you need help getting started with a trigger, this is not the right place — use the World Editor Help Zone.
Set SS_caster_target[0] = (Casting unit) Set SS_caster_target[1] = (Targeted unit) Set SS_damage_leech[0] = (120 + (Intelligence of SS_caster_target[0] (Include bonuses))) Set SS_damage_leech[1] = (20 + (Intelligence of SS_caster_target[0] (Exclude bonuses))) Set SS_points[0] = (Position of SS_caster_target[0]) Set SS_points[1] = (Position of SS_caster_target[1]) Sound - Play HeroLichYesAttack1 <gen> at 100.00% volume, attached to SS_caster_target[0] Special Effect - Create a special effect attached to the chest of SS_caster_target[0] using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl Special Effect - Destroy (Last created special effect) Special Effect - Create a special effect at SS_points[1] using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl Special Effect - Destroy (Last created special effect) Unit - Cause SS_caster_target[0] to damage SS_caster_target[1], dealing (Real(SS_damage_leech[0])) damage of attack type Spells and damage type Shadow Strike Unit - Set life of SS_caster_target[0] to ((Life of SS_caster_target[0]) + (Real(SS_damage_leech[1]))) Special Effect - Create a special effect attached to the overhead of SS_caster_target[0] using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl Special Effect - Destroy (Last created special effect) Custom script: call RemoveLocation(udg_SS_points[0]) Custom script: call RemoveLocation(udg_SS_points[1])
Spell does heal as intended and every special effect works, but it doesn't deal damage. It is based on "Chain of Lighting" spell and the number of targets is 3. I know that it has something to to with targets variables but can't click what. Thanks in advance.
__________________
[BOX=Escape from Hell] Escape from Hell - Currently working on. Please leave any comment and suggestion - it'd be of great help.