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

Custom Ability

Status
Not open for further replies.
Level 7
Joined
Jun 2, 2016
Messages
117
Hello Hivers,
I'm currently working on a custom hero that has an ability, Chaos, that changes the casters atributes.
Level 1: +1 strength
Level 2: +1 strength and +1 agility
Level 3: +1 strength, +1 agility and +1 intelligence

I've got so far:
Eredar_Warlock.png


But I can't find a condition for the level of the ability.

---EDIT---

Thank you very much for your help. I've made the ability work.
 
Last edited:
Level 45
Joined
Feb 27, 2007
Messages
5,578
It's there. If you're going to use if-blocks it's an integer comparison. Maybe this is dumb but this isn how I would write the stat boost logic instead of using a bunch of if-trees

  • Set Level = (Level of YourAbil for (Triggering Unit)
  • Set StrMod = 1
  • Set AgiMod = Min(1, Max(0, Level-1))
  • Set IntMod = Min(1, Max(0, Level-2))
  • Hero - Modify Strength of (Triggering Unit) add StrMod
  • Hero - Modify Agility of (Triggering Unit) add AgiMod
  • Hero - Modify Intelligence of (Triggering Unit) add IntMod
Use "starts the effect of an ability" for all of your spellcast triggers; the others fire at slightly different times in the cast sequence and some can be exploited. Use Triggering Unit wherever possible.
 
Status
Not open for further replies.
Top