Warcraft III resources & community, 2003–2006 · archived

The Backfire Spell Request

14 posts
#1

The Backfire Spell Request

:D Greetings to all of you Spell Makers! :D I have a request for a spell. Here's how it goes:

Backfire - Curses a target enemy unit so that whenever it attacks it will take back a percent of the damage it dealt.
Lasts 15 seconds.
Level 1 - 50% of the damage backfired.
Level 2 - 100% of the damage backfired.
Level 3 - 150% of the damage backfired.

:) I'll credit anyone who makes this spell. Make it in JASS if possible, please! :wink:
#2
This should be in the Requests forum.
#3
Talk about your custom spells, request a spell for your map, or get help making your spell here.


Hes in the right place.
#4
Easy... just give negative Vampiric Aura for period of time (triggers :))
#5
Chuckle Brother
Talk about your custom spells, request a spell for your map, or get help making your spell here.


Hes in the right place.


Oh, sorry... Got a bit confused
#6
:shock: . . . . . . . . . . . Negative Vampiric Aura!?!?! :shock:

Dude, this is . . . brilliant! I'll credit you for the idea! :lol:
#7
Thorns aura.
#8
I think that vampiric aura isn't the best option because will work only for melee units. Would be better if someone discover a way to do the A unit takes damage event for generic units. :lol:
#9
how does vamp aura have a percentage to get or in ur case lose health?
#10
I think negative vampiric aura is the best idea yet. I'm testing it even now. There's a few more bugs to work on...
#11
hmmm i would've said vampiric potion since it's already a buff and it affects ranged also as far as i know. This way you don't have to trigger anything if this works. Otherwise you'll have to do the triggering thing.
#12
I like the vampiric potion idea, then you could just modify it so it's an item which is used when picked up and give it to the unit Backfire is cast on :)

A problem could be that (other) vampiric auras/potions might override it...
#13
Generic "Unit Takes Damage' Event is as follows:

Generic Damage Calculator Secondary
    Events
        Map initialization
    Conditions
    Actions
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                -------- Deadly Aim --------
                Trigger - Add to Deadly Aim <gen> the event (Unit - (Picked unit) Takes damage)



Generic Damage Calculator
    Events
        Unit - A unit enters (Playable map area)
    Conditions
    Actions
        -------- Deadly Aim --------
        Trigger - Add to Deadly Aim <gen> the event (Unit - (Entering unit) Takes damage)


Try it out, it will result in what is basically a generic "Unit Takes Damage" Event.

Note that it will also work with any of the preplaced specific events. However it may not be that efficient, I'm not too sure but I get the feeling that constantly adding events to a trigger will cause leaks or some other lag causing reactions.
#14
chuckle brother, you are a genium! U.U
It helped a lot man, thnx! :D
The conversation continued. After wc3sear.ch closed, 2 further replies were posted to this thread on The Hive Workshop. Read them there →