• 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.

Help with a spell

Status
Not open for further replies.
Level 18
Joined
Aug 13, 2007
Messages
1,584
Here's the spell I t'm trying to make:
Every second of the spell (it's channeling) all damage taken on the map is collected. The casting unit is damaged for this value, and the AoE around him is damaged for the same value multiplied by a number.
I have made a dummy channeling ability, and the following triggers:
1.Begin Casting - Turn on Trigger 4 and 5
2.Finish Casting - Turn off Trigger 4 and 5
3.Stop Casting - Turn off Trigger 4 and 5
4.
  • Event - Unit takes damage (missing, there is a function for a specific unit only)
  • Action - Add Real (Damage Taken) to DamageTakenVariable
  • Unit - Damage Casting Unit for DamageTakenVariable
  • Unit - Damage Area around Casting Unit for DamageTakenVariable*X
5. Every 1.00 seconds of game time - Set DamageTakenVariable to 0


Any ideas how to make it work?
 
Level 4
Joined
Jun 19, 2007
Messages
107
try this

make it
  • Event - A unit is attacked
  • Action - Add Real (Damage taken by (Attacked Unit)) to DamageTaken
this isnt tht specific i might have wrong trigger (i mean they arent exactly like i typed them but there are things like tht anyway)
 
Status
Not open for further replies.
Top