• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[need help] add "item: +30 life" several times to

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2005
Messages
263
i am curently shortly before the release of the beta of my current projekt and have only one big problem left:

i have several spells wich increase life and / or damage by a certain amount for a certain time.
( e.g. +30 dmg/+30hp for 30 seconds )

i'm using the ability "rejuvenation" but doing all effcts with triggers.

fist try
i have used this trigger ( in Jass )
event:
units starts casting an ability
cond:
ability = <my avility>
event:
add "item +30 hp" to targetOfSpellBeeingCast
add "item +30 dmg" to targetOfSpellBeeingCast
wait 30
remove "item +30 hp" to targetOfSpellBeeingCast
remove "item +30 dmg" to targetOfSpellBeeingCast

Problem
this trigger increases life only once per targeted unit. ( and again if the former effect has ended )

second try
event:
as above
cond:
as above
action:
set level of ability("+10hp/level") = levelOfAbility("+10hp/level") + 3

set level of ability("+10dmg/level") = levelOfAbility("+10dmg/level") + 3

wait 30

set level of ability("+10hp/level") = levelOfAbility("+10hp/level") - 3

set level of ability("+10dmg/level") = levelOfAbility("+10dmg/level") - 3

Problem
this works fine for damage, but the life isn't increased at all -.- ( i have added this abilities with level 1 = +0 hp/+0 dmg to the unit by default )


Can anyone help me?
i don't now how to fix that, and it's a truly important part of me project -.-
 
Status
Not open for further replies.
Top