| 05-17-2004, 05:10 AM | #1 |
Hi everyone, first of all i'm new in here and must say this place is full of wise ppl :) I want some custom ability which are percentage multiplier based upon the attacker's dmg. for example when my hero cast war stomp lvl 1 it'll gives 10% dmg increasement based on my hero attack dmg let's say 20~30 so it'll be 22~33 with war stomp. i've yet to find a way to do this through trigger. is it possible to do? thank you |
| 05-17-2004, 05:47 AM | #2 |
I think u gota run a trigger that detects when he does an ability and do unit - add ability create an ability that gives u 10% extra damage, just need to find a good spell to base it on...possibly innerfire for example |
| 05-17-2004, 05:59 AM | #3 | |
Quote:
I'm not sure if this would work because the unit would still have to cast the ability. Instead, why dont you do a trigger like so: Events: A unit is attacked Actions If Attacking unit equal to (Some variable that holds the caster of war stomp) Then Set HP of attacked unit = (Hp of Attacked Unit) - (Some value) This is more like an "Extra damge" trigger than a "percent" damage trigger.BTW, if you need any help, post. |
| 05-17-2004, 06:01 AM | #4 | |
Quote:
thank you HEZZA i've thought of that before, but what i got was i had inner fire on my triggering unit, thus my hero got his dmg boost up. what i want was for example cast a lvl 1 war stomp, that war stomp do percentage based on hero's dmg. It's just like Diablo type where your skills get higher dmg percentage not dmg pre-defined. thank you johnfn i'm just thinking about doing a percentage based skill will make even level 1 skill useful :) but i can understand your saying, it certainly makes the skill more useful than just casting a dmg pre-definied skill :P (although i haven't tried your method yet). EDIT: i just noticed, there's no way to tell the caster current attack dmg since the variable of caster is already pre-coded so .... |
| 05-17-2004, 06:46 AM | #5 | |
Quote:
This is a problem that reappears every now and then. Just do a search (up in the tool toolbar). |
| 05-17-2004, 12:33 PM | #6 |
This is tricky, because the spell has a fixed damage and there is no way around this. The only way would be to have a spell with 0 damage and then simulate the damage with triggers; reducing the hp of all units in range of the caster whith war stomp. To get the hero's damage, try getting his primary attribute... this is not entirely accurate, as the hero may have additional damage dice. |
