Hello, I have created ability to launch carrier interceptors by button and I want to know is it possible to add number suffix of interceptors count to that button and if it is how?
One way I can think of is to have a button for each number that is only shown when number of interceptors on unit = number of button (use a modified brood lord count broodling escourt requirement).
That or play with the Command Card - Level Button settings of the ability, but that usually only applies to leveled skills.
I think what you're looking for is charges.I have items with charges, and they display the count. The items link to an ability, and that ability is what holds the charges.
Since you're trying to make something like the interceptor's button on the carrier, start by looking into the carrier. Check the command card and see what that button links to: presumably it links to an ability. Look at that ability, and the cost section within it, and I'll bet that it has charges. You can make your own button link to an ability that also has charges, and that should get what you want.
DrSuperEvil ur method looks really hacky, but I'll try it.
sdragoon7, I think that that will need triggers also because of interceptors dying when fighting etc.
How is your thing different from the normal protoss carrier though? That carrier is implemented entirely through data, no triggers, and so far yours sounds the same.
The difference is that interceptors are launched by button(Effect-Target ability) to attack desired target, but when I use such launch there is no number on button of interceptors count. Usual carrier auto launches interceptors and that ability is weapon.
The game already uses hidden buttons on top of each other eg ghost/spectre button in barracks or the ghost/spectre nuke in shadow ops. You are purely showing a button when the conditions are met and hiding it again when they are not.
There will be one problem with what you are doing, you can not give the carrier any other weapons cause that will order the arm magazine units to redirect and attack the weapon target.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Seems to be best solution for me and I have faced that problem with interceptors retargeting same target as carriers with weapon, had to use triggers to reorder them attack old target. Thank you for your help.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello, I have created ability to launch carrier interceptors by button and I want to know is it possible to add number suffix of interceptors count to that button and if it is how?
Thank you.
One way I can think of is to have a button for each number that is only shown when number of interceptors on unit = number of button (use a modified brood lord count broodling escourt requirement).
That or play with the Command Card - Level Button settings of the ability, but that usually only applies to leveled skills.
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
I think what you're looking for is charges.I have items with charges, and they display the count. The items link to an ability, and that ability is what holds the charges.
Since you're trying to make something like the interceptor's button on the carrier, start by looking into the carrier. Check the command card and see what that button links to: presumably it links to an ability. Look at that ability, and the cost section within it, and I'll bet that it has charges. You can make your own button link to an ability that also has charges, and that should get what you want.
DrSuperEvil ur method looks really hacky, but I'll try it. sdragoon7, I think that that will need triggers also because of interceptors dying when fighting etc.
Thank you for your responses.
@codewild: Go
How is your thing different from the normal protoss carrier though? That carrier is implemented entirely through data, no triggers, and so far yours sounds the same.
The difference is that interceptors are launched by button(Effect-Target ability) to attack desired target, but when I use such launch there is no number on button of interceptors count. Usual carrier auto launches interceptors and that ability is weapon.
The game already uses hidden buttons on top of each other eg ghost/spectre button in barracks or the ghost/spectre nuke in shadow ops. You are purely showing a button when the conditions are met and hiding it again when they are not.
There will be one problem with what you are doing, you can not give the carrier any other weapons cause that will order the arm magazine units to redirect and attack the weapon target.
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
Seems to be best solution for me and I have faced that problem with interceptors retargeting same target as carriers with weapon, had to use triggers to reorder them attack old target. Thank you for your help.