I have an ability with max 5 charges, it starts with 0, and costs 0 charges to use. (im interacting with these charges through triggers)
whenever the unit uses another abilty, it is suposed to lose a charge, and when it has 0 charges left, that ability's cooldown is refreshed and other things happen.
My problem is that even though I set chart start to 0, its still starting with 5 charges. And my triggers modifying the charges dont work.
Let me clarify.
I have a unit with a bunch of abilities. One ability is an active reset all cooldowns (this works) it also gains 1 charge whenever any of the other abilities are used. When it has 5 charges, the next ability to be used doesn't trigger it's cooldown.
This is a sloppy workaround I thought of, not sure if it would work for you.
How about setting your ability cooldown to 0 seconds and keeping track of how many times an ability has been used with triggers (Using Variables to keep track and "Unit uses Ability" with cast as the stage) and then setting the cooldown using Catalog Set Action when the variable (Say AbilityCharge) reaches 5 (Assuming you use Modify AbilityCharge +1 per ability cast). Once the ability comes off cooldown you set its cooldown to 0 again using Catalog Set. (From what I read it looks like you want to use some sort of rapid fire ability, but that's just my guess)
I have no idea how Data ability charges work though, so I can't help you work with those. If I wasn't very clear I can post a more organized list of steps.
One ability is an active reset all cooldowns (this works) it also gains 1 charge whenever any of the other abilities are used. When it has 5 charges, the next ability to be used doesn't trigger it's cooldown.
So this ability (Ability A) that resets the cooldowns for all other abilities (Abilities B and Beyond) is automatically cast when you have used abilities B and Beyond 5 times and causes the Ability (From Abilities B and Beyond) used for the fifth cast to have a cooldown of zero seconds (Doesn't have a cooldown for that cast)?
To me it sounds like ability A is a passive ability since it is automatically triggered by the cast of Ability B or some other ability, or did you mean it becomes available to use as an active ability once it has 5 charges?
A is an active ability that refreshes all other abilities.
It also gains one charge for every B spell cast, and when it has 5 charges, casting a B spell resets the charges back to 0 and B doesn't go on cooldown
So I'm giving charges to an ability that doesn't use charges itself. That may be the problem.
I mean I can trigger it all but id like the charges to show. And ATM it's always showing 5, no matter what I do to it with triggers
So you want to display a number of charges (Tiems you have used abilities B and Beyond) on Ability A, and these charges reset when you have 5 charges and gain a charge. These charges only interact with abilities B and Beyond while the display text is on Ability A's button.
Would changing Ability's A tooltip using Triggers (The Set Catalog Action, for Ability A's Button's Tooltip field) to display the number of charges you have for abilities B and Beyond work for what you want to achieve? (These are not actual charges from data, just made up variables you calculate through triggers by using the ability is cast event)
if this works for you then the cooldown reset thing would be a piece of cake.
You probably noticed I'm trying to avoid using the data editor's charges altogether, that's because I am no good there. If this method sounds like it could work, that's nice, but if you really want to use the data charges you'll probably have to wait for someone else to come by.
Below Count (Max), Count (start) and Count (use), you will see a completely irrelevant-looking field called "Info ^ - Charge ^ - Location ^". Change it from "Ability" (the default) to "Unit". If you have a bunch of different charged abilities on one unit, you'll need to select a different random Link^ from the drop down for each of the abilities, so their numbers don't all synchronise when one changes. Ouila!
I have an ability with max 5 charges, it starts with 0, and costs 0 charges to use. (im interacting with these charges through triggers)
whenever the unit uses another abilty, it is suposed to lose a charge, and when it has 0 charges left, that ability's cooldown is refreshed and other things happen.
My problem is that even though I set chart start to 0, its still starting with 5 charges. And my triggers modifying the charges dont work.
Let me clarify.
I have a unit with a bunch of abilities. One ability is an active reset all cooldowns (this works) it also gains 1 charge whenever any of the other abilities are used. When it has 5 charges, the next ability to be used doesn't trigger it's cooldown.
This is a sloppy workaround I thought of, not sure if it would work for you.
How about setting your ability cooldown to 0 seconds and keeping track of how many times an ability has been used with triggers (Using Variables to keep track and "Unit uses Ability" with cast as the stage) and then setting the cooldown using Catalog Set Action when the variable (Say AbilityCharge) reaches 5 (Assuming you use Modify AbilityCharge +1 per ability cast). Once the ability comes off cooldown you set its cooldown to 0 again using Catalog Set. (From what I read it looks like you want to use some sort of rapid fire ability, but that's just my guess)
I have no idea how Data ability charges work though, so I can't help you work with those. If I wasn't very clear I can post a more organized list of steps.
That doesn't quite work. I've updated my first post
So this ability (Ability A) that resets the cooldowns for all other abilities (Abilities B and Beyond) is automatically cast when you have used abilities B and Beyond 5 times and causes the Ability (From Abilities B and Beyond) used for the fifth cast to have a cooldown of zero seconds (Doesn't have a cooldown for that cast)?
To me it sounds like ability A is a passive ability since it is automatically triggered by the cast of Ability B or some other ability, or did you mean it becomes available to use as an active ability once it has 5 charges?
Haha sorry I suck at explaining.
A is an active ability that refreshes all other abilities. It also gains one charge for every B spell cast, and when it has 5 charges, casting a B spell resets the charges back to 0 and B doesn't go on cooldown
So I'm giving charges to an ability that doesn't use charges itself. That may be the problem. I mean I can trigger it all but id like the charges to show. And ATM it's always showing 5, no matter what I do to it with triggers
@Grasshopper721: Go
So you want to display a number of charges (Tiems you have used abilities B and Beyond) on Ability A, and these charges reset when you have 5 charges and gain a charge. These charges only interact with abilities B and Beyond while the display text is on Ability A's button.
Would changing Ability's A tooltip using Triggers (The Set Catalog Action, for Ability A's Button's Tooltip field) to display the number of charges you have for abilities B and Beyond work for what you want to achieve? (These are not actual charges from data, just made up variables you calculate through triggers by using the ability is cast event)
if this works for you then the cooldown reset thing would be a piece of cake.
You probably noticed I'm trying to avoid using the data editor's charges altogether, that's because I am no good there. If this method sounds like it could work, that's nice, but if you really want to use the data charges you'll probably have to wait for someone else to come by.
I would give spell B a switch effect and use buff stacks.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
9 years later, I have the fix and it's simple AF:
Below Count (Max), Count (start) and Count (use), you will see a completely irrelevant-looking field called "Info ^ - Charge ^ - Location ^". Change it from "Ability" (the default) to "Unit". If you have a bunch of different charged abilities on one unit, you'll need to select a different random Link^ from the drop down for each of the abilities, so their numbers don't all synchronise when one changes. Ouila!