• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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