• 🏆 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!

Custom Ability

Status
Not open for further replies.
Level 6
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 39
Joined
Feb 27, 2007
Messages
5,019
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