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

[General] Custom Stats (INT, STR, AGI)

Status
Not open for further replies.
Level 3
Joined
Dec 1, 2012
Messages
27
I am pretty sure the answer to this is no, but I figured I'd ask just to make sure.

Is there anyway to use triggers/jass/vjass to change the values of a hero's stats (Like INT/STR/AGI, INT/STR/AGI per level, max hp, map mana etc)?
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
PitzerMike said:
AId1, AItg, AIlf, AImb, AIsi, Aamk, AIsr, AIdd, AIas, AIms, Arel, AIrm, AIcs (Defense, Damage, Life, Mana, Sight Range, Attribute Bonus, Runed Bracers, Defend Item, Attack Speed, Movement Speed, Life Regeneration, Mana Regeneration, Critical Strike Item): These item abilities can also be added as unit abilities to change defense, damage, life, mana, sight range, agility, strength and intelligence, magic resistance, damage deflection and damage reduction, attack speed, movement speed, life regeneration, mana regeneration and critical strike and evasion of a unit. Fortunately the effects of those abilities stack so you only need a few copies of them to get any bonus by using a bitflagging technique. Weaaddar and Blade have shown how it can be done with their BonusMod and AttributeMod systems. All of these abilities also work with negative values, so you can decrease stats with them. For sight range however, negative values only work if the unit doesn't have any ability that detects hidden units. The 'AIdd' ability has the same fields as 'Aegr' (Elunes Grace), namely magic resistance, damage reduction and deflection. Unfortunately its attack speed factor and movement speed factor fields don't work. This ability as well as critical strike, life and mana regeneration and attack and movement speed bonuses didn't stack in older versions, but since the latest patch they finally do. A special bug allows you to to adjust the max mana and life of a unit without a permanent ability on that unit. Simply make a custom AIlf (Life Bonus) or AImb (Mana Bonus) ability and give it more than one level. Now set the bonus for level one to zero and the level two to the exact opposit you want to achieve. That would be -200 if you want to add 200. Now use UnitAddAbility and SetUnitAbilityLevel to add the ability at level two to your target. There's a bug in those abilities that prevents the bonus from being applied correctly. Then immediately remove the ability again using UnitRemoveAbility. This time it will try to undo the -200 bonus (which hadn't been applied due to a bug) and add 200 to the unit. That's it, you've changed the life/mana without having to keep any abilities on the unit.

The Warcraft III Ability Guide
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
yup there is
int,agi,str is easy but you need a vjass lib for the rest

dont neeed vjass, function easily dont with normal jass or even with gui because only need to add+remove hp/mp ability in loop


like example item ability what give 50 hp, make at lv1 add 1 hp and at lv2 10 hp, at lv 3 -1 hp and at lv4 -10 hp

add to unit the ability, change ability level to lv4 and remove it (just a example)

about stat/level u can use upgrade's and allways set the upgrade level same to ur hero level.
 
Status
Not open for further replies.
Top