HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Any method to add more damage to a unit??

04-15-2004, 12:20 AM#1
joseka
Ok im trying to do a spell that increase the damage by the INT of the hero,
for example lets say a unit have 300 damage and have 50 INT, If he cast this spell he get a total of 350 Damage...

the thing im thinking is making something like this

-First i create abilitys based on augment damage (item) lets say 1,5,10,50,100 +Damage..

-then when i cast it i create a filter to give the ability to the hero, means...
INT of hero =306
then
306/100=3(It has to be integer)
then i add 3 item +100 damage
306MOD100=6
the i add 1 item of +5damage and 1 item of +1damage

its a bit complicate altought not impossible.. But are there another way to do that???
04-15-2004, 02:13 PM#2
TheSnorBlob
I will see if i can do it i don't have wc3tft installed so..
04-15-2004, 02:15 PM#3
TheSnorBlob
Maybe you could do something like an upgrade for the attack?
and research it when learn?
04-15-2004, 03:56 PM#4
Trent14
I think you could always just make a buff. I don't really know if you can do this. But try and make a buff that adds INT to the hero, kinda like Attribute Bonus. That might work.
04-15-2004, 09:42 PM#5
joseka
Quote:
Maybe you could do something like an upgrade for the attack?
and research it when learn?

It could work but that think is irreversible, What im trying to do is something like the Priest's Inner Fire ability but instead of 10% of +attack i want it to make the total INT (or STR or AGI) +attack , something that will banish if i dispel it or in time( The duration of the spell)...



Quote:
I think you could always just make a buff. I don't really know if you can do this. But try and make a buff that adds INT to the hero, kinda like Attribute Bonus. That might work.

A buff?? Can i = the inteligence of the hero directly to the spell???
04-20-2004, 11:42 PM#6
Trent14
For this to work you'd have to do some major trigger editing, thats why its posted here. Ok it can be done both ways. I don't know which way will actually be harder. First detect the amount of int a hero has. Either through triggers or basic math. For basic math you'd just say oh hes lvl 5, and 2.5 int a level with 20 starting int means he would have yadda INT. Then take that INT and when he attacks another guy and hits add yadda INT. Get what im saying? Thats way one. Way two would be like trueshot aura or command aura. I'm not realy big on spells but just modify or make one that adds INT to the guy instead of damage. Possibly that helped
04-21-2004, 01:31 AM#7
joseka
Quote:
Originally Posted by Trent14
For this to work you'd have to do some major trigger editing, thats why its posted here. Ok it can be done both ways. I don't know which way will actually be harder. First detect the amount of int a hero has. Either through triggers or basic math. For basic math you'd just say oh hes lvl 5, and 2.5 int a level with 20 starting int means he would have yadda INT. Then take that INT and when he attacks another guy and hits add yadda INT. Get what im saying? Thats way one. Way two would be like trueshot aura or command aura. I'm not realy big on spells but just modify or make one that adds INT to the guy instead of damage. Possibly that helped

Well theres the idea of making INT damage to a unit when my unit attack him but it would not show the green numbers in the attack paret of the hero, umm well that think im trying to do is for this map take a look at that map
... the name of the spell is Fist of god only choose a Heaven Hero an then pick up the Fist of god item, and walk to the forest ...

Use left and right to select and up to accept
04-21-2004, 02:23 AM#8
ThyFlame
Actually, the easiest way is to set a real variable and then subtract that real variable from the target unit [or all units within X range of target point of ability being cast] and then let the spell play out as normal.