i am trying to create a custom ability, which will enable a unit(consider it a hero) to transfer an ability from another unit to itself.
- the ability will only function when the target unit has less than %20 health.
- the ability will have a 1 seconds of channel time.
- it will not scale with levels of the unit.
did some search; there are very good tutorials for projectile based abilities but not for this one.
any help is much appreciated! (for the sake of getting it started, i am inclined to ignore the three items of the list )
Ok for a start know this a unit can only have 64 abilities total (abilities or the units it morphs into included). You cannot give a unit an ability denovo. You will have to give the unit a buff that requirements use to unlock the ability button. Buffs now have a UI override field so you might be able to customize the command card buttons with it. As mentioned on a pervious thread about a similar issue you could try a Switch effect from a common effect that mimics the effect tree of other abilities based on the buffs on the unit.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
i followed your comment, but im not sure i get it right (my experience is rather limited)
so please correct me if im wrong.
all 'heroes' get all the abilities of all heroes placed on map.
the abilities which are not stolen yet, are also included in the abilities' list for each individual hero, but they are not assigned to some command card positions.
all heroes get a buff-behavior, included in an effect, which appears at the command card as a distinct ability, which will enable them to unlock the ability at the command card, as if it was stolen. basically what buff does is to unlock the primary ability of the target hero at the command card of the source hero (UI override field)
also, regarding the switch effect thing, could you please point out that thread?
If they all can steal abilities they have to have all abilities and there is a 64 ability cap (including move and attack).
The abilities all have command card positions but are hidden by the Show part of requirements.
The ability steal applies a buff for the requirements to use to make the command card button visible for the desired ability.
The UI override is an alternative method where you have mimic abilities that use a Switch effect to emulate all other abilities and you use the override to change the command card button to one you want.
hi,
i am trying to create a custom ability, which will enable a unit(consider it a hero) to transfer an ability from another unit to itself.
- the ability will only function when the target unit has less than %20 health. - the ability will have a 1 seconds of channel time. - it will not scale with levels of the unit.
did some search; there are very good tutorials for projectile based abilities but not for this one.
any help is much appreciated! (for the sake of getting it started, i am inclined to ignore the three items of the list )
thanks in advance!
Ok for a start know this a unit can only have 64 abilities total (abilities or the units it morphs into included). You cannot give a unit an ability denovo. You will have to give the unit a buff that requirements use to unlock the ability button. Buffs now have a UI override field so you might be able to customize the command card buttons with it. As mentioned on a pervious thread about a similar issue you could try a Switch effect from a common effect that mimics the effect tree of other abilities based on the buffs on the unit.
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
@DrSuperEvil: Go
thanks for the quick reply!
i followed your comment, but im not sure i get it right (my experience is rather limited)
so please correct me if im wrong.
also, regarding the switch effect thing, could you please point out that thread?
If they all can steal abilities they have to have all abilities and there is a 64 ability cap (including move and attack).
The abilities all have command card positions but are hidden by the Show part of requirements.
The ability steal applies a buff for the requirements to use to make the command card button visible for the desired ability.
The UI override is an alternative method where you have mimic abilities that use a Switch effect to emulate all other abilities and you use the override to change the command card button to one you want.
http://www.sc2mapster.com/forums/development/data/56543-ability-from-behavior/#p7
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
@DrSuperEvil: Go
its clearer now.
i think i will try to use the buff. Switch might be a bit more complicated. (at least for me)
again, thanks a lot!
Purely depends how many heroes/abilities you want in your map that can be stolen.
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
@DrSuperEvil: Go
the map will have a total of 4 players max (for now, it might be 8 in the future). 1 ability will be stolen per player (thats fixed).
but you are right, in case the number of abilities (to be stolen) increases, using switch might be more sensible.
Player number does not matter purely hero type numbers and the number of unique abilities.
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