• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] How to make an item unsellable and make it decrease attack damage of the unit?

Status
Not open for further replies.
Level 14
Joined
Nov 13, 2017
Messages
733
Halo...
I'm creating a system of items called the "Cursed Items" or "Bad Luck Items" for a project like these concepts:

* Bow of Midas - Undroppable on picked up. Cannot be sold. Increases attack +5 but decreases mana by 15%.
* Mask of Shame - Undroppable and unsellable.
Provides additional intelligence but life degenerates 3/second. Item is removed automatically when a 'mask' item is picked up.
* Decapitated Centaur Head - Undroppable and unsellable. Decreases movement and attack speed by 10%. Item is destroyed when this unit kills a centaur khan.
* Rotvine Potion - Undroppable, unsellable , but consumable for 5 charges. Once used, makes the unit possess incredible attack damage increase by 50-80 but life degens at 50 pts per second.
* Dagger of Karma - Unsellable and undroppable. Can only be destroyed when the unit has a buff of "Innocence Aura". Passive Effect: Each time this unit kills, this unit suffer 60 damage and loss of 50 mana.
 
Last edited:
Level 13
Joined
May 10, 2009
Messages
868
Use these 2 actions for rendering items unable to be sold or droppable.
  • Actions
    • Item - Make YOUR_ITEM Unpawnable
    • Item - Make YOUR_ITEM Undroppable
Or you can simply modify that in the object editor, which is easier and faster.

As for the rest, you can simply add an ability with negative values to your items. Create an ability, select its field which affects the unit (damage amount, movement speed, mana regen, etc...), then hold left-shift, and press Enter. You'll be able to set negative values now.
 
Level 14
Joined
Nov 13, 2017
Messages
733
Use these 2 actions for rendering items unable to be sold or droppable.
  • Actions
    • Item - Make YOUR_ITEM Unpawnable
    • Item - Make YOUR_ITEM Undroppable
Or you can simply modify that in the object editor, which is easier and faster.

As for the rest, you can simply add an ability with negative values to your items. Create an ability, select its field which affects the unit (damage amount, movement speed, mana regen, etc...), then hold left-shift, and press Enter. You'll be able to set negative values now.
Sweet! Thanks, man. That is some fine fix. Now I'd be able to create really cursed items that players would either see as challenge or feel regret in the future. xD
 
Status
Not open for further replies.
Top