Item Hero Stat Loss (-X)

Status
Not open for further replies.
Level 6
Joined
Jan 23, 2015
Messages
162
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?
 
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: 119
  • Item Stat Penalties.w3x
    Item Stat Penalties.w3x
    9.5 KB · Views: 74
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
 
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.
Back
Top