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

Heroes with Negative Intelligence stats

Status
Not open for further replies.
Level 7
Joined
Mar 16, 2014
Messages
152
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 39
Joined
Feb 27, 2007
Messages
5,012
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