• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] Some questions about items and inventory

Status
Not open for further replies.

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Hello guys. Like the title said, I have some questions about them:
1/How can I detect when a unit is ORDERED to PICK UP AN ITEM? (Not acquire them).
2/I want to create an inventory for units that have only 2 slots but still giving them the bonus of the items. Is that possible and if it is, what do I have to do after modifying the ability Inventory (Hero)?
 

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Right. Thks. One more question: If I want the shop to sell items to the Hero (or unit) when its inventory is full, how can I do that?
 
Level 16
Joined
Dec 15, 2011
Messages
1,423
From what I know, all items in DotA's shops are runes/powerups/tomes which won't trigger the Inventory is full error and thus allow buying with full inventory. When the unit acquires the rune item, an actual item is created at the unit's position.
 
Status
Not open for further replies.
Top