• 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.

How to Hide Item but the stats remains Unchanged ?

Level 5
Joined
May 8, 2020
Messages
83
I have a trigger item like this but I can't hide the item when worn, but I also want it to still have +2 stats.
That means it turns into a completely hidden item and you can use 6 slots.


Hide Item
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Hero manipulating item) has an item of type Circlet of Nobility) Equal to True
Then - Actions
Wait 1.00 seconds
Item - Hide (Item being manipulated)
Item - Make (Item being manipulated) Undroppable
Else - Actions
1704880294943.png
 

Uncle

Warcraft Moderator
Level 70
Joined
Aug 10, 2018
Messages
7,374
Items simply add/remove abilities to the unit that equips them. Their ability or abilities are added upon acquiring the item and removed upon losing the item.

Here's a very basic trigger for making a "permanent" Circle of Nobility:
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Circle of Nobility
  • Actions
    • Unit - Add Item Hero Stat Bonus (+2 All Stats) to (Triggering unit)
    • Item - Hide (Item being manipulated)
I think the Hero will lose the ability when it dies in which case you you'll want to make the ability permanent as well:
  • Custom script : call UnitMakeAbilityPermanent( GetTriggerUnit(), true, 'Alx2' )

But if you want an advanced inventory system which extends the size of the inventory then you'll need to create it yourself or find an existing one on Hive that suits your needs. Here's one that lets you double your inventory size and use the abilities from all 12 inventory slots:
 
Level 5
Joined
May 8, 2020
Messages
83
so I will have to write an add command to add them as + permanent, I thought it could detect the stats when carrying that item but could hide them
 
Top