• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

BloodBath Spell

Status
Not open for further replies.
Level 24
Joined
Aug 1, 2013
Messages
4,658
Event -> a unit dies.
Condition -> level of Bloodbath (Bloodseeker) for (killing unit) is greater than 0
Actions ->
- If (Triggering unit) is a hero equal to true Then
---- Set TempReal = (0.1 * level of Bloodbath (Bloodseeker) for (killing unit)) * (Max life of (Killing Unit))
- Else
---- Set TempReal = (0.05 + (0.05 * level of Bloodbath (Bloodseeker) for (killing unit))) * (Max life of (Killing Unit))
- Endif
- Set life of (killing unit) to ((Life of (Killing Unit)) + TempReal)

That is it.
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
Event -> a unit dies.
Condition -> level of Bloodbath (Bloodseeker) for (killing unit) is greater than 0
Actions ->
- If (Triggering unit) is a hero equal to true Then
---- Set TempReal = (0.1 * level of Bloodbath (Bloodseeker) for (killing unit)) * (Max life of (Killing Unit))
- Else
---- Set TempReal = (0.05 + (0.05 * level of Bloodbath (Bloodseeker) for (killing unit))) * (Max life of (Killing Unit))
- Endif
- Set life of (killing unit) to ((Life of (Killing Unit)) + TempReal)

That is it.

Not quite right...

Event
Unit dies
Conditions
None
Actions
Set TempUnit = Triggering unit
If
==TempUnit is a hero
==Level of Bloodbath for killing unit < 0
==Then Do
==Set TempPoint = position of triggering unit
==Set TempUnitGroup = Units in range 325 of temp point
==Pick every unit in group
====loop
======If level of Bloodbath for picked unit > 0
======Then Do
=========Set TempReal = (0.1 * level of Bloodbath (Bloodseeker) for (killing unit)) * (Max life of (Killing Unit))
======Else
==Else Do
==What wietlol wrote

Edit// Don't forget to clean leaks and reduce calls
 
Status
Not open for further replies.
Top