• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

BloodBath Spell

Status
Not open for further replies.
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.
 
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.
Back
Top