- Joined
- Mar 17, 2012
- Messages
- 582
Hi everyone! Yesturday I faced one good task...
I'm wondering why we can't make
Periodic Event (Time - Every (100/"any hero attribute") seconds of a game time)
with any conditions
and any actions
P.S. I created an ability that drains hp of all nearby enemies matching conditions and restores hp of owner of an ability equal to hp drained.
Drain interval = (100/Agility of a hero) seconds and power of drain = 0.25\0.5\0.75\1*Intelligence.
I created a variable: Set Skillname_Real = (100/Agility of a hero)
and ordered my hero to damage enemies and heal himself... I also added the periodic event to another trigger using "every Skillname_Real seconds" there is no problems with that...
BUT
I noticed that Skillname_Real is set once and doesn't change (if at 1 level my hero damaged enemies ~every 3 seconds(35 agi) - he doesn't damage them faster even if I get +400 agility).
Is there any way to manage it?
PP.SS. I tried to add Periodic event - Every (2/(Level of ability)) seconds
do the same thing... but he was damaging every 2 seconds on every level...
I'm wondering why we can't make
Periodic Event (Time - Every (100/"any hero attribute") seconds of a game time)
with any conditions
and any actions
P.S. I created an ability that drains hp of all nearby enemies matching conditions and restores hp of owner of an ability equal to hp drained.
Drain interval = (100/Agility of a hero) seconds and power of drain = 0.25\0.5\0.75\1*Intelligence.
I created a variable: Set Skillname_Real = (100/Agility of a hero)
and ordered my hero to damage enemies and heal himself... I also added the periodic event to another trigger using "every Skillname_Real seconds" there is no problems with that...
BUT
I noticed that Skillname_Real is set once and doesn't change (if at 1 level my hero damaged enemies ~every 3 seconds(35 agi) - he doesn't damage them faster even if I get +400 agility).
Is there any way to manage it?
PP.SS. I tried to add Periodic event - Every (2/(Level of ability)) seconds
do the same thing... but he was damaging every 2 seconds on every level...