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

Heroes with Negative Intelligence stats

Status
Not open for further replies.
Level 7
Joined
Mar 16, 2014
Messages
169
So I want to give heroes negative intelligence stats for various reasons. The problem is that this sometimes causes skills that cost 0 Mana on the Hero to be unuseable due to "not having enough Mana." It's very arbitrary when the skills sometimes will or will not be available due to "Lacking Mana." Any suggestions to allow skills with 0 Mana Cost to be castable at all times for a hero with negative Intelligence/Mana?
 
Last edited:
So I want to give heroes negative intelligence stats for various reasons. The problem is that this sometimes causes skills that cost 0 Mana on the Hero to be unuseable due to "not having enough Mana." It's very arbitrary when the skills sometimes will or will not be available due to "Lacking Mana." Any suggestions to allow skills with 0 Mana Cost to be castable at all times for a hero with negative Intelligence/Mana?
You can via triggers set max-mana to 0 (if it's patch 1.29~ish or newer).
This doesn't "solve" the problem, but you don't encounter it at least.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Any suggestions to allow skills with 0 Mana Cost to be castable at all times for a hero with negative Intelligence/Mana?
Make a periodic trigger that sets a floor for minimum current mana to like 0.3 or something (mana is a real number not an integer). I expect this would display as 0 mana on the UI but would be enough to cast a 0 mana spell.
  • Events
    • Time - Every 0.3 seconds of game-time //find an appropriate period
  • Conditions
  • Actions
    • Set MinMana = 0.3 //set this with the variable's default value. not in this trigger
    • Unit Group - Pick every unit in Heroes_With_Negative_Mana_Regen_Group and do (Actions)
      • Loop - Actions
        • Unit - Set Mana of (Picked Unit) to Maximum(MinMana, ((Picked Unit) current Mana)) //this sets a floor of MinMana that a unit in this group can have
 
Status
Not open for further replies.
Top