- Joined
- Feb 14, 2009
- Messages
- 316
My map uses 3 items that grant the ability Mana Shield (33/67/100% block respectively).
Question: How do I implement that?
What I have tried so far:
1. Simply make a Mana Shield item ability and give it to the item. But then once you switch it on, you can't turn it off unless you drop the item.
2. Make a trigger that gives the unit an active ability Mana Shield when it acquires the item and removes it when it loses it.
There were several problems with that.
1) Takes up an ability slot. That makes things really bad because I need all ability slots I can afford.
2) Glitchy. If it acquires two items of the same type, then drops one of them, the ability will disappear. If it acquires a higher tier item, then drops the older one, the ability will disappear. I tried to implement a system that allowed only one Mana Shield item to be carried at a time (more inconvenience since the map relies heavily on team play and hero presence, thus carrying and ferrying items is encouraged), but then it was even more glitchy, leading to various exploits with dropping/acquiring items.
I would appreciate a version of this, perhaps with item replacement or IDK, where the unit can use the Mana Shield ability by clicking the item and deactivate it by clicking the item again.
If not possible, then at least a working script with an active ability.
Thanks.
Question: How do I implement that?
What I have tried so far:
1. Simply make a Mana Shield item ability and give it to the item. But then once you switch it on, you can't turn it off unless you drop the item.
2. Make a trigger that gives the unit an active ability Mana Shield when it acquires the item and removes it when it loses it.
There were several problems with that.
1) Takes up an ability slot. That makes things really bad because I need all ability slots I can afford.
2) Glitchy. If it acquires two items of the same type, then drops one of them, the ability will disappear. If it acquires a higher tier item, then drops the older one, the ability will disappear. I tried to implement a system that allowed only one Mana Shield item to be carried at a time (more inconvenience since the map relies heavily on team play and hero presence, thus carrying and ferrying items is encouraged), but then it was even more glitchy, leading to various exploits with dropping/acquiring items.
I would appreciate a version of this, perhaps with item replacement or IDK, where the unit can use the Mana Shield ability by clicking the item and deactivate it by clicking the item again.
If not possible, then at least a working script with an active ability.
Thanks.