HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do you make triggers do only damage

09-02-2004, 02:49 AM#1
Master-O-Chaos
In other words.. How do you make triggers do damage instead of set unit life to the number you put in like every 50 seconds it give you +10 life added to what you have ive been messing around with the life % and value but they wont work so please tell me how to do it
09-02-2004, 03:51 AM#2
Raptor--
Quote:
Originally Posted by Master-O-Chaos
In other words.. How do you make triggers do damage instead of set unit life to the number you put in like every 50 seconds it give you +10 life added to what you have ive been messing around with the life % and value but they wont work so please tell me how to do it

arithmetic...

set unit X life to ( (life of unit X) - 10.00 )
09-03-2004, 01:49 AM#3
Master-O-Chaos
Well in value or percentage what? cause when i tryed that it killed the units by setting there life -4 = for damage

Same problem with the life it set there life to what the number equaled
09-03-2004, 02:07 AM#4
HexenLordX
Event:
A unit is attacked

Actions: Set attacked Unit's life to ((Life of Attacked Unit) - 10)

DONT do a Set attacked Unit's life to -10, which is what you probably did.
09-03-2004, 02:22 AM#5
ForgottenLight
*sigh*
just wait for the 1.17 patch and use "Unit - Damage Unit".
09-03-2004, 02:24 AM#6
HexenLordX
Quote:
Originally Posted by ForgottenLight
*sigh*
just wait for the 1.17 patch and use "Unit - Damage Unit".

Yeah, but nobody is sure when 1.17 will be released, and several maps (including mine) will be ready before then.

The other trigger works fine, but it ignores armor and does the damage directly to the unit, so if you want to have armor interfere.. I suggest just doing everything the old fassioned way.
09-04-2004, 12:21 AM#7
Master-O-Chaos
Where do you download new patches for We? anyways


How would you make this Heal a unit after every 50 seconds

As in ADD life to current life
09-04-2004, 01:43 AM#8
Coffein
Quote:
Originally Posted by Master-O-Chaos
Where do you download new patches for We? anyways


How would you make this Heal a unit after every 50 seconds

As in ADD life to current life

What about using + instead of - ?
09-04-2004, 07:00 AM#9
Master-O-Chaos
naw..ya think.. ...