- Joined
- Dec 2, 2016
- Messages
- 733
Wondering if this is an already premade function of some sort or if it requires triggering.
I've got an item that sends out little shards that does damage to nearby units and structures.
With more than 2 of these tops it does too much damage to the enemy your fighting. So I need to cap it at 2 max.
My ideal solution is to allow the purchase of 2+ of these items, but somehow remove the ability from the extra same item bought.
Like
1 has ability
2nd has ability
3rd doesnt
4th doesnt
etc
Is this simple or require triggering?
If it requires triggering how should I go about this, right now in my mind all I can think is
Detect if ring item is bought, add it to a variable. Check if unit has more than 2 rings via variable, and if he drops the item remove from variable, if he picks it up add to the variable, if he sells remove from the variable.
And if the variable has more than 2, I somehow remove the ability from one or more of the items. This just seems messy, I know it will be. Is there a better way to go about this?
I've got an item that sends out little shards that does damage to nearby units and structures.
With more than 2 of these tops it does too much damage to the enemy your fighting. So I need to cap it at 2 max.
My ideal solution is to allow the purchase of 2+ of these items, but somehow remove the ability from the extra same item bought.
Like
1 has ability
2nd has ability
3rd doesnt
4th doesnt
etc
Is this simple or require triggering?
If it requires triggering how should I go about this, right now in my mind all I can think is
Detect if ring item is bought, add it to a variable. Check if unit has more than 2 rings via variable, and if he drops the item remove from variable, if he picks it up add to the variable, if he sells remove from the variable.
And if the variable has more than 2, I somehow remove the ability from one or more of the items. This just seems messy, I know it will be. Is there a better way to go about this?