HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Magic / Intelligence

03-27-2004, 06:23 PM#1
Antolone
Can there be a trigger where all magic spells damage depend on how much intelligence you have for example.
99 INTELLIGENCE = 860 Damage from Flame Strike
1 Intelligence = 20 Damage from Flame Strike
I don't know if its possible or not.
03-27-2004, 06:41 PM#2
teneur2g
i'm not sure you can, maybe you can make a lot of versions of flame strike, and place the matching one ( replace ability ). im sure there is another way.. i think i saw this method in a enfo, causing splash damage according to how much base damage you do.
but im a trigger noob,..
11-18-2004, 02:59 AM#3
Guest
1st of all, you should try using JASS if your really dedicated, don't ask me.
things idea would take forever but at least you would know it would work.
And you might wanna put this thread under trigger help or jass help.
--------------------------------------------------------------------------------------------------------
My map will be released soon! Muahahhahahha! The only problem is that i suck at terraining so right now the map is just ISLANDS from TFT. Will be released tonight as a Beta. Look for WoTF or Madhamsta (what i'll call the game). I have evened the races!!!
11-18-2004, 02:43 PM#4
logik
actually it should be able to do it... using the new damage triggers.

Make a flame strike that does no damage, but the rest of the stuff work, then have a trigger that has the event that "unit is under the effect of ability" / or something along those line

then have a condition that detects the ability

finally do the damage, using the new damage triggers... using that event, you should use that damage unit trigger (not damage radius, or it could as much as double to 10x the dmg)... then for the damage make it a math on the casting unit.

like [intelligence of {casting unit}] x [20]...


oh, and make sure you make it magic damage (or spell damage, one of the 2) - that way it wont effect magic immune units.

the most apparent problem with this though (if it works) is that it will do straight damage, unlike normal flame strike where units on the outside of the pillar wont be damaged as much as units in the center.


[this is all without WE, but i am pretty certain]
11-18-2004, 06:02 PM#5
DaKaN
yeah, logik, your idea of thinking is correct, it is possable to do it that way, It can be tricky unless you really know your way around the editor, to avoid memory leaks, dealing with unit groups properly, and most importanly, using local variables to do so. I know its possable because the TKoD engine I designed deals all damage this way, even physical
11-19-2004, 03:33 PM#6
logik
well its working mostly with "casting unit" and "triggering unit" if you are using the event "unit is under the effect of an ability"

but you could use local vars etc. to do it - and shouldnt the dmg triggers work, as they can deal magic damage which will do nothing to magic immune units, and you can choose the sourse - to do bounty etc.
11-20-2004, 12:55 PM#7
Vexorian
It is completelly possible, I'd just suggest you to avoid using standard spells and use trigger enhanced ones, I made a trigger version of flame strike the other day, just to make it so fire elementals get healed by flame strike, with little modiffications it can be it so the more intelligence the more damage. I will bring it here If I get to remember to do it