Warcraft III resources & community, 2003–2006 · archived

Aftershock spell help

15 posts
#1

Aftershock spell help

The hero attacks the enemy with such force that it will take 50 aftershock damage 4 seconds later. Can happen a maximum of once every 4 seconds.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Aftershock for (Attacking unit)) Equal to 1
Then - Actions
Trigger - Turn off (This trigger)
Set Aftershockdamage = 50.00
Wait 3.90 seconds
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - Aftershockdamage)
Trigger - Turn on (This trigger)
Else - Actions
Do nothing
Ok, but my problem is, what do i do about bounty? because this doesnt give bounty
#2
Just create a dummy unit for (Owner of(Attacking) Unit) and order it to Unit - Damage.
#3
but then you dont get exact damage... and thats kinda what im looking for
#4
give the dummy unit chaos damage.... duh
#5
i dont like using units anyways, they get messy and sometimes attack otherunits and theyre kinda sloppy.
#6
Use a damage target trigger, that way you can go
Unit - Order (Casting unit) to damage (Target unit of ability being cast) for (50.00) using attack type Chaos and damage type Divine.

this allows for exact damage and no nasty dummies, also the attacking unit, what the hero may be can be listed as the variable and so the game reads the damage coming from him, this solves the problem of bounties
#7
Hmm... I never actually tried to order the Casting Unit itself to attack. I always created a dummy unit. And what's wrong with dummy units? Units can still damage if they don't usually attack. I tried that with some dummy units and it actually worked. Want the proof? Take a look at the "Deaf Curse" spell into my last spell pack.

Anyway,I will try your idea as well Drain Pipe. It looks pretty interesting (I thought about it but I forgot that when damaging, units do it instantly). Just a little detail, what if the Casting Unit dies into those four seconds?

~Daelin
#8
Xipe_TotecUse a damage target trigger, that way you can go
Unit - Order (Casting unit) to damage (Target unit of ability being cast) for (50.00) using attack type Chaos and damage type Divine.

this allows for exact damage and no nasty dummies, also the attacking unit, what the hero may be can be listed as the variable and so the game reads the damage coming from him, this solves the problem of bounties


the only problem is this isnt a casting spell, its a passive.
#9
No big difference... Just change the (Casting Unit) with (Attacking Unit). That's kinda the same thing as long as you can make the spell work as a non-passive. Passiveness is easy to implement once you have the ability itself.

~Daelin
#10
fl3hi dont like using units anyways, they get messy and sometimes attack otherunits and theyre kinda sloppy.


Give the dummy units a degenerative hitpoints in w/c enought time to execute their given orders before they die.
#11
Expiration Timers are much better since you can use a dummy unit for more than one spell.

~Daelin
#12
how about.
Aftershock
Events
Unit - A unit Is attacked
Conditions
((Owner of Aftershocker) is an enemy of (Owner of (Attacked unit))) Equal to True
((Attacked unit) is A structure) Equal to False
Actions
Trigger - Turn off (This trigger)
Wait 3.90 seconds
Unit - Order Aftershocker to damage (Attacked unit) for (50.00 x (Real((Level of Aftershock for Aftershocker)))) using attack type Hero and damage type Normal.
Trigger - Turn on (This trigger)
#13
Wrong. Because you will damaged the Attacked Unit. Damage the ATTACKING UNIT. So it would be:

Unit - Order Aftershocker to damage (Attacking unit) for (50.00 x (Real((Level of Aftershock for Aftershocker)))) using attack type Hero and damage type Normal

~Daelin
#14
daelin, it works with what i had, so im not gonna mess with it. =)
#15
DaelinWrong. Because you will damaged the Attacked Unit. Damage the ATTACKING UNIT. So it would be:

Unit - Order Aftershocker to damage (Attacking unit) for (50.00 x (Real((Level of Aftershock for Aftershocker)))) using attack type Hero and damage type Normal

~Daelin


uh, the attacker is supposed to damage the attacked.