673 posts Sunny Singapore, the lil' red dot joined
#1
question on stacking spells
how do you make a spell where enemy units in an area get slowed overtime?
Level 1- First 5 seconds, slow 10%, second 5 seconds slow 20%, and last 5 seconds slow 30% Level 2- First 5 seconds, slow 20%, second 5 seconds slow 30%, and last 5 seconds slow 40% Level 3- First 5 seconds, slow 40%, second 5 seconds slow 50%, and last 5 seconds slow 60%
the buff will last for say 30 seconds, and the channeling of the spell for 15 seconds, etc.
I don't know if this way works perfectly, but, i think that it can help you. Create a dummy unit in a hidden place of the map with slow poison ability and attack range 99999 owned by neutral hostile and then, the trigger of the spell.
A unit begins casting an ability
Ability Being cast equal to ...
Set level of slow poison to dummy unit to 1. Order dummy unit to attack target unit of ability being cast. Wait 5 game-time seconds. Set level of slow poison to dummy unit to 2. Order dummy unit to attack target unit of ability being cast. Wait 5 game-time seconds. Set level of slow poison to dummy unit to 3. Order dummy unit to attack target unit of ability being cast...
I'm giving only an idea on how to do what you want, hope that helped.
the idea of thanathos with the dummy unit is the best i think. but instead of that attacking you may give the dummy an aura based on (orc-hero, sry dont know english description ) with target enemies and a negative speed bonus. i didnt try that - just another idea
other idea: make a dummy spell of a warstomp-like spell that gives a buff for 30 sec. then:
EVENT
unit-a unit starts casting an ability
CONDITION
(ability being cast) equal to warstomp
ACTION
wait 0,1 sec
if -(target of ability being cast) has buff xxx equal to true >>boolean comp<<
then - unit set movement speed of (target of ...) to xx%
else -
wait 30 sec
unit set movement speed of (target of...) to 100%
and if you now add some if-then-else to get the different spell levels, i think you can make this very well working...
duh... i hope i dont talk rubbish - you have to test