Hey there again 8)
now that i got to creating skills i stumbled upon a new problem
i made a simple "point system" as i like to call it, which is really just skillpoints of an ivisible hero, that count points for player-owned kills and points for being in a certain area of the arena. Whenever a unit dies i give 1 "unspent skillpoint" to that counting hero owned by the owner of killing unit...but when the enemy player unit dies by the damage done by an ability it does not give a skillpoint to killing player. Why?
the skill that kills a unit is cast via creating a dummy under "owner of attacking unit" controll so it should be considered that this player kills a unit i think...but for some reasons it's not thus giving no reward for a unit also though the player flag is turned on
that's how the ability trigger looks like
now that i got to creating skills i stumbled upon a new problem
i made a simple "point system" as i like to call it, which is really just skillpoints of an ivisible hero, that count points for player-owned kills and points for being in a certain area of the arena. Whenever a unit dies i give 1 "unspent skillpoint" to that counting hero owned by the owner of killing unit...but when the enemy player unit dies by the damage done by an ability it does not give a skillpoint to killing player. Why?
the skill that kills a unit is cast via creating a dummy under "owner of attacking unit" controll so it should be considered that this player kills a unit i think...but for some reasons it's not thus giving no reward for a unit also though the player flag is turned on
that's how the ability trigger looks like
-
Events
-
Unit - a unit is attacked
-
Conditions
-
level of skill for attacking unit is more than 0
-
random intenger between 1 and 100 is less than 17
-
mana of attacking unit is more than 15
-
Actions
-
Unit - set mana of attacking unit -15
-
Unit - create a dummy
-
Unit - order that dummy to cast poisoned knife(base of the ability)
-
Unit - remove that dummy