- Joined
- Sep 10, 2012
- Messages
- 39
The system works as such: The hero clicks on an item in the inventory, and the item is given to the appropriate inventory unit. When the inventory unit clicks on the item, it is 'equipped' - the item itself is removed while a dummy ability with the icon of the item is given to the inventory unit, and appropriate item abilities are given to the hero.
This actually worked flawlessly for a while. Then, quite suddenly, it didn't. After tinkering with the system I realized that it is no longer detecting when the inventory unit using the item. Even when the trigger has no condition attached. Curiously, when the inventory unit picks up the item on its own, the use of the item is detected. But when it is given an item via trigger, it does not, even if it is the original item that is used.
What so confuses me is that, as I said, it was working perfectly not long before its breakdown. I have uploaded the map, as I don't feel like I can adequately explain things here. If you need additional information, ask and I will post it.
Edit: Based on further testing, the problem occurs when the inventory unit is selected via trigger (interface hero icon is clicked, 'enter inventory' ability is clicked, inventory unit is selected). After that the unit's use of items is no longer detected. Also, if the 'return item to belt' ability is used, the ability button vanishes and the inventory unit's actions are locked and the 'cast' animation is played on loop, as if the unit is channeling something, though I have yet to discern what.
Attachments
Last edited: