• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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