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

Question about hero stats.

Status
Not open for further replies.
Level 2
Joined
Aug 15, 2013
Messages
7
Question 1.
Hi I' am wondering is it posible to add more stats (like int, str and agi), and if yes how? (and there is any guide pls link).

Question 2.
How to make diferent characters have different benefits from stats (exemple class A get 10 hp from str and class B get 15 hp and 1 armor from str).

Question 3.
Is it posible to make specific class unable to increase mana pool? (example class C have 10 mana by default if you equip item that give 100 hp and 25 mana, Class A and B get both stats and Class C get only hp).

I' am bigg noob when it comes to coding. So if there is need to cod, a cod example or link to map download with something similar would be more than wellcome.

 
Level 17
Joined
Mar 21, 2011
Messages
1,597
hmm well everything works.
Q1: you can add other stats, but they wont be visual in the "unit statistic" (which contains damage, armor, int, agi, str) but thats not easy to do for a beginner.
For example you create a new stat "critical". now, if you pick up a certain item, increase (decrease if you drop it) a specific integer for the unit (for example CritInteger) by lets say 3 points.
now, you need some kind of damage detection system. i would recommend you this one
http://www.hiveworkshop.com/forums/...1016/?prev=search=damage%20engine&d=list&r=20
it also contains a unit indexer which is very easy to handle. if you have no clue what im talking about then ill take the time and create a testmap for you.

Q2: for that you have to null everything about attributes in the gameplay constants and add it with HP/MP tomes per level (depending on the class)

Q3: same as Q2
 
Level 19
Joined
Mar 18, 2012
Messages
1,716
Hi I' am wondering is it posible to add more stats (like int, str and agi), and if yes how? (and there is any guide pls link).
Yes and no. You can't create additional stats and integrate them into the UI next to str/agi/int.
What you can do is create you own custom stats system.
Basically you will save integers/reals on a unit HandleId/UnitUserData(custom value) within a hashtable.
If you have JASS/vJass knowledge you can modify this sytem to your needs ItemPower.
If you are a beginner in you can make a thread in the Request-Section.
Question 2.
How to make diferent characters have different benefits from stats (exemple class A get 10 hp from str and class B get 15 hp and 1 armor from str).
Also possible but difficult. You have to remove all gameplay constant values from the stat and modify hp/mana directly based on the UnitTypeId (UnitTypeId is a unique integer for each unit in the Object editor for instance 'Hpal' for human paladin). You will need a BonusLibrary for that.
Question 3.
Is it posible to make specific class unable to increase mana pool? (example class C have 10 mana by default if you equip item that give 100 hp and 25 mana, Class A and B get both stats and Class C get only hp).
Same as question 2.
 
Status
Not open for further replies.
Top