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

Item Hero Stat Loss (-X)

Status
Not open for further replies.
Level 1
Joined
Jan 23, 2015
Messages
160
How can I make an item that does the opposite of a bonus, it gives a penalty to the holder?

How can I make items that give bonuses to one stat but penalties to the others?
 
Level 21
Joined
Aug 13, 2011
Messages
739
Go to File > Preferences, and make sure Allow negative real values in the Object Editor is checked.

The example map has a bunch of stat penalty examples using item abilities. For certain things like movement speed, you might have to change factors in Gameplay Constants to allow a lower unit speed minimum. But if hero stats are all you need reduced, then that should be simple enough.
 

Attachments

  • StatPenalties.jpg
    StatPenalties.jpg
    68.6 KB · Views: 100
  • Item Stat Penalties.w3x
    9.5 KB · Views: 50
Level 1
Joined
Jan 23, 2015
Messages
160
What editor are you using? I'm using the standard world editor and for the hero stat ability it will not let me go below zero, it will for some other abilities.

When I open your map, if I open to edit the number of the penalty, it goes from -5 to 0 and I can't lower it.


--- Got it

For some reason you have to hold shift
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
For some reason you have to hold shift
Yes, just like PublishedShadow said right at the start.
When you get ready to edit a data field, hold the "Shift" key when you double click (or press the enter key) the field.
The shift key is very important. What it actually does is open up a sort of raw data editor for the field which is why bounds checks no longer apply. Very useful for exceeding maximum values on health, mana etc as well.

Do be aware that it can allow you to input potentially invalid numbers into a field. These might lead to hangs or crashes.
 
Status
Not open for further replies.
Top