SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,986
Hello, Hive! I am in need of help for an ability I am making.
It's called Magma Totem and it summons a Totem (Tweaked Serpent Ward). After that via trigger I want to cause the totem to damage all nearby enemy units. Sadly it doesn't happen. Here are the triggers. Any ideas? The ability being used is basically Serpent Ward.
[trigger=Magma Totem]Magma Totem
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Magma Totem
Actions
Set Magma_Caster = (Triggering unit)
Set Magma_Point = (Target point of ability being cast)
Trigger - Turn on Magma Totem Loop <gen>
Wait 14.00 seconds **Thats the duration of the Totem**
Trigger - Turn off Magma Totem Loop <gen>[/trigger]
[trigger=Magma Totem Loop (Initially Off)]Magma Totem Loop (Initially Off)
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Magma_Value = (10.00 + (5.00 x (Real((Hero level of Magma_Caster)))))
Set Magma_Group = (Units within 225.00 of Magma_Point matching (((Owner of (Matching unit)) Not equal to Player 1 (Red)) and (((Owner of (Matching unit)) Not equal to Player 2 (Blue)) and (((Owner of (Matching unit)) Not equal to Player 3 (Teal)) and ((Owner of (Matching unit)
Special Effect - Create a special effect at Magma_Point using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Set Magma_SFX = (Last created special effect)
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in Magma_Group and do (Actions)
Loop - Actions
Unit - Cause Magma_Caster to damage (Picked unit), dealing Magma_Value damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation(udg_Magma_Point)
Custom script: call DestroyGroup(udg_Magma_Group)[/trigger]
It's called Magma Totem and it summons a Totem (Tweaked Serpent Ward). After that via trigger I want to cause the totem to damage all nearby enemy units. Sadly it doesn't happen. Here are the triggers. Any ideas? The ability being used is basically Serpent Ward.
[trigger=Magma Totem]Magma Totem
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Magma Totem
Actions
Set Magma_Caster = (Triggering unit)
Set Magma_Point = (Target point of ability being cast)
Trigger - Turn on Magma Totem Loop <gen>
Wait 14.00 seconds **Thats the duration of the Totem**
Trigger - Turn off Magma Totem Loop <gen>[/trigger]
[trigger=Magma Totem Loop (Initially Off)]Magma Totem Loop (Initially Off)
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Magma_Value = (10.00 + (5.00 x (Real((Hero level of Magma_Caster)))))
Set Magma_Group = (Units within 225.00 of Magma_Point matching (((Owner of (Matching unit)) Not equal to Player 1 (Red)) and (((Owner of (Matching unit)) Not equal to Player 2 (Blue)) and (((Owner of (Matching unit)) Not equal to Player 3 (Teal)) and ((Owner of (Matching unit)
Special Effect - Create a special effect at Magma_Point using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Set Magma_SFX = (Last created special effect)
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in Magma_Group and do (Actions)
Loop - Actions
Unit - Cause Magma_Caster to damage (Picked unit), dealing Magma_Value damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation(udg_Magma_Point)
Custom script: call DestroyGroup(udg_Magma_Group)[/trigger]