I need help with some items!

Status
Not open for further replies.
Level 2
Joined
Nov 1, 2023
Messages
14
I have an item idea that I wanna make and i don't know how to make it.

Item Name: Night Armor

I want the bonuses to be given only at night time; and at day time to show me the icon of the item in the format DISBTN .

I've been looking all over the forum, but no one did this item.
Can anyone help me with some information/ guidelines so I can make this item?
 

Uncle

Warcraft Moderator
Level 69
Joined
Aug 10, 2018
Messages
7,279
It was a bit of a pain to do but here you go.

You need two different Items, one with the Disabled icon and zero abilities and one with the Enabled icon and the desired abilities. Then using triggers, you track the units carrying these Items and swap between the two Items as needed. This swap may happen when a unit acquires either of the two Item-Types. Acquiring Day version at Night swaps it and acquiring Night version at Day swaps it. Also, this swap will happen when it turns Day or Night time. You also have to account for Dead heroes since their inventories can't be manipulated - the fix here is to apply the Item swaps when they finish reviving.

Note: You're going to get a green "disabled" icon when you open a menu if your Disable icon isn't setup properly. You'll have to have an imported BTN and DISBTN version of your desired icon which both appear disabled. In my demo map I chose the lazy route and just used the DISBTN version of the Icon which is why it suffers from this problem.
 

Attachments

  • Night Armor 1.w3m
    22.5 KB · Views: 5
Last edited:
Status
Not open for further replies.
Top