• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Aftershock spell help

Status
Not open for further replies.
Level 4
Joined
Aug 6, 2004
Messages
52
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
 
Level 7
Joined
May 16, 2004
Messages
355
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
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
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
 
Level 4
Joined
Aug 6, 2004
Messages
52
Xipe_Totec said:
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

the only problem is this isnt a casting spell, its a passive.
 
Level 4
Joined
Aug 6, 2004
Messages
52
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)
 
Level 1
Joined
Feb 21, 2005
Messages
5
Daelin said:
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

uh, the attacker is supposed to damage the attacked.
 
Status
Not open for further replies.
Top