HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lowering life via triggers?

01-10-2004, 01:43 AM#1
Dragon
I can't find how to do this.

It goes something like this right?

Set life of (Event Response - Target of Casted Spell) to life of (Event Response - Target of Casted Spell) -50

But I can't find any action that allows me to add the "-50" at the end.
01-10-2004, 02:32 AM#2
Pesmerga
Can't you use arithmatic like . . .

Set life of (Event Response - Target of Casted Spell) to life (Arithmatic - (UnitHealth) - 50))

Where UnitHealth is a variable counting the target's current life set just before the health action.
01-12-2004, 12:55 AM#3
Zonr_00
I believe it goes like this:

Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - 50.00)
01-12-2004, 01:31 AM#4
Pesmerga
Yah, dragon, your problem is that your not using Arithmetic. Arithmetic allows for 2 #'s that can be added, subtracted, multiplyed, or divided by each other. And if you need multiple #s to use, just use Arthimetic (5) + Arithmetic (5 + 5)