Warcraft III resources & community, 2003–2006 · archived

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

2 posts
#1

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

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 -.-
#2
You need bonusmod.

Unfortunally every map with just bonusmod got lost after the massive attachment deletion on wc3campaigns.

So I can only direct you to InvX

http://vexorian.wc3campaigns.com/spells/InvX/

That system uses Bonus Mod and has instructions on implementing / using Bonusmod