| 07-28-2007, 11:41 PM | #1 |
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 |
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 |
Ah thanks Duskeh! <3 |
| 07-28-2007, 11:55 PM | #4 |
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 |
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 | |||
Quote:
Quote:
Quote:
|
| 07-29-2007, 12:38 AM | #7 | |
Quote:
What? Works fine for me when I'm forced to use a mac/ |
| 07-29-2007, 02:56 AM | #8 | |
Quote:
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 |
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 | |
Quote:
|
| 07-29-2007, 08:01 AM | #11 |
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 |
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 |
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 |
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 |
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. |
