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

damage per sec

Status
Not open for further replies.
Level 10
Joined
Jul 2, 2004
Messages
690
can any1 teach me how to do a damage per second spell based on trigger? what i wanna do is like for example i waanna do a bladestorm which does (100 + str of hero) per second for5 seconds. how do i make the targetted unit such that it will do a trigger which is like "for every 1 second set life of target unit to life - strength of hero" or something like that.. can any1 teach me?
 
Level 3
Joined
Aug 14, 2004
Messages
34
i have no idea. i dont think theres an event i no of that can be triggored by something like that. but u can do something like power hit ability, which does the same thing only with fireball as base ability with range of 100 and attack animation, and triggor it with strength idea. Its a great idea 2 :)
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Ok... In order to be able to do that you will need a dummy bladestorm (obviously) with no damage. Now, hopefully you know how to make triggers and so I will pass through very quickly. Once an unit begins casting an ability and ability being cast is equal with whatever you want you should make a for. This for will be from 1 to x, x being the amount of seconds the bladestorm will last. Now, let's see the actions for the for.

Pick up every unit within 300 range of (Casting Unit) matching condition (((Matching unit) belongs to an enemy of (Owner of (Casting Unit)) equal to true) and do Set life of (picked unit) to ((Life of Picked Unit)-(100+strength of (Casting Unit)). Big Pick, eh? Now, you wait 1 second and check: If (((Casting Unit) is dead) equal to true) then you Skip remaining actions, else you do nothing. The only way Bladestorm can stop is if the unit is killed. This should work I guess. You can also set the wait to 0.20 seconds and increase the x five times. Hope it helped you...
 
Level 10
Joined
Jul 2, 2004
Messages
690
thanx daelin!!!! i was tinking something like that but i couldnt really find it =) couldnt have done it without ya
 
Status
Not open for further replies.
Top