| 08-07-2009, 02:35 PM | #1 |
How can I change units' max hitpoint or mana? Can I do it without using Jass? |
| 08-07-2009, 04:41 PM | #2 |
You'll at least need to use the GUI to trigger adding and/or removing abilities, but JASS is not an absolute minimum. The health increasing items (like Khadgar's Gem of Health) has an ability that you can make a custom copy of and edit to your desire. You'll then need to use your trigger to add/remove the custom health increasing ability. In the event that you are interested in JASS or vJASS, there's a library or system floating around here that is capable of allowing you to specify exact amounts of maximum health or mana increased (or decreased!). Hopefully someone can link you to that resource. hf! |
| 08-08-2009, 12:41 AM | #3 | |
Quote:
|
| 08-08-2009, 01:54 AM | #4 |
Hmm! Interesting! The system I saw wasn't quite as sophisticated as the UnitProperties system you are linking to, and it certainly looks quite delish =] |
| 08-08-2009, 04:39 AM | #5 |
But the value that I want to change is not always a certain number, it's a variable or it depend on other unit's max state. |
| 08-08-2009, 05:26 AM | #6 |
Then you'll have better luck with the UnitProperties system that Anitarf has linked. There is a SetUnitState method in JASS but it doesn't do anything for maximum life. The GUI functions don't have an option for setting maximum life either. |
| 08-08-2009, 06:22 AM | #7 | |
Quote:
Maybe it's kind of complex for me to install the "UnitProperties" . Can I place theUnitPropertiesGenerator.lua into map's MPQ file instead of the same directory of my map? |
| 08-08-2009, 12:17 PM | #8 |
There's a system made by Blade.dk which increases max state. It abuses a bug (not return bug) and combines different powers of 2 to modify a unit's hp or mana. I'd give you a link but I'm on a phone. Just go to hiveworkshop.com and make your way to the Jass section, it's titled "SetUnitMaxState() / Bonus Mod" or similar. It's worth your time cause it's definately what you're looking for. Good luck! |
| 08-08-2009, 05:48 PM | #9 | |
Quote:
For your information, the system you're referring to was not made by Blade.dk!... I simply stole his idea and implemented a more efficient algorithm. http://www.hiveworkshop.com/forums/j...axstate-65622/ |
| 08-09-2009, 04:11 AM | #10 |
I think I am not as familiar with Jass as you guys. I just a beginner of JASS. I tried to install one of the systems, but I failed many times. The World Editor told me "Expected a function name" many times, even if there's no error report, nothing happened when I called the function. I don't need so many functions.I just want to set a unit's max life or mana and the value was a variable. |
