What i want to do isto make a spell where the target of the caster gets gets stuck on some sort of hill. When the caster attacks the target he will do multiple damage based on the level of his ability and if anyone else trys to attack it, the attacker will be ordered to stop.
My problem come swhen i'm trying this in-game Wc3 crashes and the game exits itself.
Here is my trigger so far:
Im new to the way of adding events to triggers to get the damage done. I've searched a bit and i found nothing that multiplied or added damage to a specific unit.
My problem come swhen i'm trying this in-game Wc3 crashes and the game exits itself.
Here is my trigger so far:
SCone
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Sand Coffin
Actions
Set SC_caster = (Casting unit)
Set SC_target = (Target unit of ability being cast)
Unit - Pause SC_target
Unit - Add Crow Form to SC_target
Unit - Remove Crow Form from SC_target
Animation - Change SC_target flying height to 1.00 at 0.50
Environment - Create a 0.50 second Permanent crater deformation at (Position of SC_target) with radius 100.00 and depth -200.00
Trigger - Turn on SCnoone else attack <gen>
Trigger - Turn on SCdamage amplifier <gen>
Wait 2.00 seconds
Trigger - Turn off SCdamage amplifier <gen>
Trigger - Turn off SCnoone else attack <gen>
Environment - Create a 0.10 second Permanent crater deformation at (Position of SC_target) with radius 100.00 and depth 200.00
Unit - Unpause SC_target
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Sand Coffin
Actions
Set SC_caster = (Casting unit)
Set SC_target = (Target unit of ability being cast)
Unit - Pause SC_target
Unit - Add Crow Form to SC_target
Unit - Remove Crow Form from SC_target
Animation - Change SC_target flying height to 1.00 at 0.50
Environment - Create a 0.50 second Permanent crater deformation at (Position of SC_target) with radius 100.00 and depth -200.00
Trigger - Turn on SCnoone else attack <gen>
Trigger - Turn on SCdamage amplifier <gen>
Wait 2.00 seconds
Trigger - Turn off SCdamage amplifier <gen>
Trigger - Turn off SCnoone else attack <gen>
Environment - Create a 0.10 second Permanent crater deformation at (Position of SC_target) with radius 100.00 and depth 200.00
Unit - Unpause SC_target
SCnoone else attack
Events
Unit - A unit Is attacked
Conditions
(Attacked unit) Equal to SC_target
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Attacking unit) Equal to SC_caster
Then - Actions
Trigger - Add to SCdamage amplifier <gen> the event (Unit - (CS_target) Takes damage)
Else - Actions
Unit - Order (Attacking unit) to Stop
Events
Unit - A unit Is attacked
Conditions
(Attacked unit) Equal to SC_target
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Attacking unit) Equal to SC_caster
Then - Actions
Trigger - Add to SCdamage amplifier <gen> the event (Unit - (CS_target) Takes damage)
Else - Actions
Unit - Order (Attacking unit) to Stop
SCdamage amplifier
Events
Conditions
(Damage source) Equal to SC_caster
Actions
Special Effect - Create a special effect at (Position of SC_target) using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
Unit - Cause SC_caster to damage SC_target, dealing ((Damage taken) x (Real((Level of Sand Coffin for SC_caster)))) damage of attack type Normal and damage type Normal
Events
Conditions
(Damage source) Equal to SC_caster
Actions
Special Effect - Create a special effect at (Position of SC_target) using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
Unit - Cause SC_caster to damage SC_target, dealing ((Damage taken) x (Real((Level of Sand Coffin for SC_caster)))) damage of attack type Normal and damage type Normal
Im new to the way of adding events to triggers to get the damage done. I've searched a bit and i found nothing that multiplied or added damage to a specific unit.