HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

k, need help

06-25-2003, 05:34 PM#1
chemo
i made this trigger, plz tell me what i did wrong

E: Unit - a unit enters region 1
C:
A: Unit - set life of entering unit to life of entering unit + 20

but it dosnt increase its life at all....

plz help me :S
06-25-2003, 05:38 PM#2
Nemesis1234
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 20.00)
06-25-2003, 05:42 PM#3
chemo
sorry but no.... its dosnt increase the hp of the unit.. (just tried it)
06-25-2003, 05:43 PM#4
Nemesis1234
The unit DOESN'T have full life already... right?
06-25-2003, 05:44 PM#5
Dead-Inside
Probably WC3 bug...
Set a variable (Real) to temporary,
Set RealV = Entering(Ortriggering) unit current life + 20
Then do the same but for the valvue, use the real.

Regards
Dead-Inside
06-25-2003, 05:44 PM#6
chemo
sorry but i need the unit to have full life from start =/

and yes it have full life from start
06-25-2003, 05:47 PM#7
Nemesis1234
You've got a problem then....

Either you unit has to have less then full life, or you have to have an identical unit type that has 20 more max health, then use...

Unit - Replace (Triggering unit) with a (New Unit Type Here) using The new unit's max life and mana
06-25-2003, 06:01 PM#8
chemo
hmmm k then tell me how i should extract the units hp ?

the hp should be 10
06-25-2003, 06:09 PM#9
dataangel
Dude, if the most the guy can hold is 20, and he has 20, and you try and give him 20 more, it's gonna say at 20.

What you're gonna wanna do depends on what you're trying to do.

Are you?:

1. Trying to make it so entering a certain special area lets the unit go above it's max life, but normally it can't.

or

2. Trying to increase the unit's max life.

I'm not positive #1 is possible, but for #2 instead of adding HP, change the unit temporarily do a different dummy player, increase that player's handicap (this increases the HP of all their units), and then change the owner back to the player. I'm not positive this will work -- it might recognize the change in handicap when you switch players, but I'm not sure. Lemme know.
06-25-2003, 06:16 PM#10
chemo
the handicap won't work for my map... it have to work for differents units, and it dosnt have "set" value for the handicap

but how do i extract the 90 of entering units hp(100-90) ?

i tried to trigger this but it fail when i try....