• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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,031
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