Hi there.
I am trying to add a special effect to a hero ability called Poisoned Cloud that uses acid bomb as a base ability that does damage over time but without the armor reduction.
here is the trigger i used to make the special effect that is suposed to be kinda like mass disease cloud.
TempPos1 and 2 are point variables.
EffectCount is a string variable
Untitled Trigger 001
Events
- Unit - A unit Begins casting an ability
Conditions - (Ability being cast) Equal to Poisoned Cloud
Actions - Set TempPos1 = (Target point of ability being cast)
Set EffectCount = 0
Trigger - Turn on Untitled Trigger 002 <gen>
Untitled Trigger 002
Events
-Time - Every 0.05 seconds of game time
Conditions
Actions
-Set EffectCount = EffectCount+1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EffectCount Equal to 15
Then - Actions
Trigger - Turn off Untitled Trigger 002 <gen>
Custom script: call RemoveLocation(udg_TempPos1)
Else - Actions
Set TempPos2 = (TempPos1 offset by (Random real number between 0.00 and 600.00) towards (Random angle) degrees)
Special Effect - Create a special effect at TempPos2 using Abilities\Spells\Undead\PlagueCloud\PlagueCloudCaster.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_TempPos2)
Thats what i did and it doesnt work. Could someone help me?
i spent about 5 hours just trying to do this and i was completely new to triggers and still am.
I am trying to add a special effect to a hero ability called Poisoned Cloud that uses acid bomb as a base ability that does damage over time but without the armor reduction.
here is the trigger i used to make the special effect that is suposed to be kinda like mass disease cloud.
TempPos1 and 2 are point variables.
EffectCount is a string variable
Untitled Trigger 001
Events
- Unit - A unit Begins casting an ability
Conditions - (Ability being cast) Equal to Poisoned Cloud
Actions - Set TempPos1 = (Target point of ability being cast)
Set EffectCount = 0
Trigger - Turn on Untitled Trigger 002 <gen>
Untitled Trigger 002
Events
-Time - Every 0.05 seconds of game time
Conditions
Actions
-Set EffectCount = EffectCount+1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EffectCount Equal to 15
Then - Actions
Trigger - Turn off Untitled Trigger 002 <gen>
Custom script: call RemoveLocation(udg_TempPos1)
Else - Actions
Set TempPos2 = (TempPos1 offset by (Random real number between 0.00 and 600.00) towards (Random angle) degrees)
Special Effect - Create a special effect at TempPos2 using Abilities\Spells\Undead\PlagueCloud\PlagueCloudCaster.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_TempPos2)
Thats what i did and it doesnt work. Could someone help me?
i spent about 5 hours just trying to do this and i was completely new to triggers and still am.