| 07-30-2004, 11:20 PM | #1 |
Okay I was wondering, how do I make it so when a unit attacks with a spell(Blizzard) how can i make it so the spell does more damage when the hero has more INT. Example: Base damage= 50 x 1.5 for INT modifyer. Like for every 50 INT it goes up .5 or something. So in the long run the hero ability will do more damage. Please post if you do not understand. FF10Ifrit |
| 07-30-2004, 11:39 PM | #2 |
The only way I can conceive of this is to have all the hero's spells do 1 damage and have a dummy unit that has all of his spells. Then, each time he casts a spell, you create a number of dummy units on him = to his INT. i.e. if he has 10 int you create 10 dummies and you order all of them to mirror his spell casting. Best to keep the lowest common denominator in mind if you try this system in order to reduce lag. |
| 07-30-2004, 11:40 PM | #3 |
You can easilly use a trigger to detect the inteligence of the hero, also to reduce the target units life, but this will not give you Bounty/Experience for the killed units, if you want them, use a dummy unit with an attack equal to the bonus damage per inteligence and create on for each inteligence point of the hero, ordering then to attack the target units, but this will cause lag, if you are worried about it, just use the bonus mode(on the repository), to add attack damage to the dummy unit, creating only one. |
| 07-30-2004, 11:54 PM | #4 |
I've always wanted to know: whats a dummy unit? I keep seeing references to it... But i have never bothered to comprehend this...term.. -Thanks -Horus |
| 07-31-2004, 12:25 AM | #5 |
Dummys are custom units with no model, they are and invulnerable, They are used in triggered enchanced spells, to cast spells, example, If you want a mass rejuvanation, you can use dummys to cast rejuvenation on the area of the spells, using triggers. The only problem for you is that you can't use the spell editor, since you don't have TFT, this limmits the usage of the dummy unit, anyway if you are looking for a way to edit the normal spells in Roc, I have heard about editing the "UnitAbillities" file on the War3.Mpq, and adding then to your Map by Mpq editor. |
| 07-31-2004, 01:11 AM | #6 |
Your solution lies within the function DamageUnit, which is available if you Download Lord Vexorians Caster System and implement it into your map, it's really helpful. If you have this, you can specify the damage via triggers and a damage variable and just have another variable as a modifier, example: Modifer: Hero Attribute - Intelligence DMG: if level=1 then set dmg 100+Modifier*2 if level=2 then set dmg 200+Modifier*2 if level=3 then set dmg 300+Modifier*2 And then you use the DamageUnitfuncion for an easy way to deal the damage. |
| 07-31-2004, 01:35 AM | #7 |
Would you be referring to The spell editor (for .slk files) which comes as a plugin for W3M Map Utilities? -Horus |
