I'd like to give my hero a grenade ability that is limited by how many of them you are "carrying."
Importantly, I want to be able to do something that increases that number of grenades, for example "picking up" an unused grenade from the ground, so you don't run out if you find more of them.
I currently implemented this using ability charges, but I cannot seem to do anything that increments that number of charges. The Trigger system has various "Charge Used for Unit Ability" actions which don't seem to help at all. I'm not certain how I could use the Data Editor to increase that charge number, either. However, I'm not stuck on using ability charges if I need to start from scratch.
Thank you very much, zifoon! This reminded me of an idea I had forgotten, to use a -1 charge cost effect somehow on that charge to get them back, but then in all the permutations and convolutions of things I tried out I completely forgot!
So, for anyone who ever looks at this in the future and is a little confused, to fix this I made a Modify Unit style Effect, went into its "Cost +" field, chose my Grenade ability on the list, then went down to the bottom and changed Usage Charge Count to -1. Now I can use this Effect through the Trigger "Create Effect On Unit" (I don't know if the version matters; I use "Create Effect On Unit (From Player)" and it works fine) to apply the Add Grenade Effect on my hero at the appropriate times.
I'd like to give my hero a grenade ability that is limited by how many of them you are "carrying."
Importantly, I want to be able to do something that increases that number of grenades, for example "picking up" an unused grenade from the ground, so you don't run out if you find more of them.
I currently implemented this using ability charges, but I cannot seem to do anything that increments that number of charges. The Trigger system has various "Charge Used for Unit Ability" actions which don't seem to help at all. I'm not certain how I could use the Data Editor to increase that charge number, either. However, I'm not stuck on using ability charges if I need to start from scratch.
Any suggestions are welcome.
Effect - modify unit (Change the charge setting and ability for it)
Trigger (Action) Apply Effect (modify unit) on unit
@zifoon: Go
Thank you very much, zifoon! This reminded me of an idea I had forgotten, to use a -1 charge cost effect somehow on that charge to get them back, but then in all the permutations and convolutions of things I tried out I completely forgot!
So, for anyone who ever looks at this in the future and is a little confused, to fix this I made a Modify Unit style Effect, went into its "Cost +" field, chose my Grenade ability on the list, then went down to the bottom and changed Usage Charge Count to -1. Now I can use this Effect through the Trigger "Create Effect On Unit" (I don't know if the version matters; I use "Create Effect On Unit (From Player)" and it works fine) to apply the Add Grenade Effect on my hero at the appropriate times.
So, thanks again, zifoon!
Very helpful, thank you