- Joined
- Dec 26, 2010
- Messages
- 475
hey guys i need help on items
can someone tell me how to make a return damage item like in DotA (Blademail)
Damage Detection
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Trigger - Add to Blade Mail <gen> the event (Unit - (Entering unit) Takes damage)
Just add conditions on Blade Mail Script
Blade Mail
Events
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Cause (Triggering unit) to damage (Damage source), dealing (Damage taken) damage of attack type Spells and damage type Normal
Trigger - Turn on (This trigger)
Test map attached
There's a small delay of effect like 0.5 seconds delay before the effect truly disappear from the unit
If you want to make that spell last for 4 seconds, make the duration of the trigger variable (Duration = 3.5)
why it doesnt work with spell damage? can you fix it?Well, at least it works for physical damage
No need to be.......................
Thank youomg guys lol..
here it is, it returns both attack and spell damage. (ranged or melee)
http://www.hiveworkshop.com/forums/pastebin.php?id=6sxx5x
Hope you like it ^^
just take the largest item in the mid of the map, and press the item. attack the unit with either magic or normal attack, and see the results !
sorry of the magic resist thingy, that thing is an experiment for my other map. just ignore those.
It won't do infinite loop, as i use some checking, even if both unit has blade mail, so have fun..!