HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Heros with No Mana..

07-28-2007, 11:41 PM#1
Toink
I'mma get quickly to the point.

You've probably seen heroes with no mana at all, BLM from ToB and Anick in DoE. I was wondering how I could make my hero's mana to 0, but his primary attribute is Int, so I want his Int to increase without making my hero gain more mana. I don't want to change the Mana Per Int at the gameplay constants as it will affect every other hero. Does anyone know of a method to do this?
07-28-2007, 11:52 PM#2
Rising_Dusk
Set his mana to 0 every level he gains using Blade.dk's SetUnitMaxState(...) system located here.
You could do it other ways, but this is by far the best.
07-28-2007, 11:52 PM#3
Toink
Ah thanks Duskeh! <3
07-28-2007, 11:55 PM#4
Pyrogasm
Couldn't you just make an ability based off of the "Item Mana Bonus", give it like a -3000 mana bonus, and simply add it to the hero(es) "Abilities - Normal" list in the OE?
07-29-2007, 12:03 AM#5
Rising_Dusk
Try it and see for yourself.
I didn't try it that way because quite frankly I already use SetUnitMaxState() in every map I have.
No reason to make custom abilities if you don't have to.
07-29-2007, 12:15 AM#6
Pyrogasm
Quote:
Originally Posted by Rising_Dusk
No reason to make custom abilities if you don't have to.
Slightly contradictory, aren't you? SetUnitMaxState needs 2 abilities with 3 levels.
Quote:
Originally Posted by Rising_Dusk
Try it and see for yourself.
I can't; Mac WE shift-click support is broken. It doesn't work :(
Quote:
Originally Posted by Rising_Dusk
I didn't try it that way because quite frankly I already use SetUnitMaxState() in every map I have.
In the event that he isn't using it, I believe not having to deal with it would be better; but that's just my opinion.
07-29-2007, 12:38 AM#7
Jazradel
Quote:
Originally Posted by Pyrogasm
I can't; Mac WE shift-click support is broken. It doesn't work :(

What? Works fine for me when I'm forced to use a mac/
07-29-2007, 02:56 AM#8
Kaz
Quote:
Originally Posted by Pyrogasm
Couldn't you just make an ability based off of the "Item Mana Bonus", give it like a -3000 mana bonus, and simply add it to the hero(es) "Abilities - Normal" list in the OE?

That's the way to do it, but it's not so simple. Units with negative max mana cannot cast any spells, even if they cost nothing. You need to keep it at 0 at all times.
07-29-2007, 03:07 AM#9
Pyrogasm
Really, Jazradel? I cannot shift-click integer fields to input negative values.

Are you on an Intel or PPC Mac?
07-29-2007, 06:17 AM#10
Rising_Dusk
Quote:
Slightly contradictory, aren't you? SetUnitMaxState needs 2 abilities with 3 levels.
Yeah, except that same system can be used on dozens of heroes, saving you abilities in the long run.
07-29-2007, 08:01 AM#11
Jazradel
PPC

A couple of times you've mentioned bugs when moving a map from mac to pc. I've never experienced any of that.
07-29-2007, 07:13 PM#12
Dark.Revenant
I am also unable to use the shift-click trick on my PPC mac, sadly. I think you may be forced to use Blade's system.
07-29-2007, 07:45 PM#13
Pyrogasm
Jazradel, do you write JASS? Because when I do and a Windows user opens the map, all the linebreaks are turned into funky black boxes and everything is on 1 line.
07-29-2007, 08:39 PM#14
schecter33
There is a much better way, set its stock mana to 0 in object editor, then in gameplay constants, change the mana gained per point of intelligence, no triggers needed.
07-29-2007, 08:44 PM#15
Rising_Dusk
That isn't a much better way at all.
Your method impacts ALL heroes, which for 99% of maps using a hero with no mana is a VERY BAD THING.