What I want to do is have it so unit A form A can morph into Unit A form B using an ability, however while in form B a timer, which could probably come from a buff, counts down and when it hits 0 the unit reverts to form A. What makes it complicated is that the unit can cancel the morph early and retain the unused morph time for later use. The morph time will also passively fill up while the unit is in form A. This is inspired by the morph ability from Final Fantasy 6 as you might have guessed.
I've done timed morphs successfully before, however they have always been morph->timer runs out->auto revert without the ability to cancel early so I know some of this already. I'd try to figure it out myself but the wiki page on buffs is inaccessible right now.
So we talking buff stacks? While in form B it periodically chews a buff stack while in form A it regenerates it. When in form B there is a button to revert back or it is forced to use the ability when out of buff stacks.
What you mean the wiki page is down?
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Thanks for the prompt reply. My only question is this: is there a way to easily display the total time remaining? edit: It could be the current stack count of the buff instead of exact time. I'm open to doing this with triggers as needed since this unit will be 1 per player and thus a dialog item could do it via periodic triggers easily enough, unless there's a better way.
http://sc2mapster.gamepedia.com/Data/Behaviors/Buff This page which I found from the wiki page up top is blank and I couldn't find the old one via google. Perhaps I should have been more specific about what I meant.
edit2: Could it be done with behavior->buff flags? The extend flag seems like it could be relevant here, hence why I wanted the wiki
Extend would just increase the duration based on the number of applied buff stacks. Unless you then disable the behaviour when in form A it would still count down.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
What I want to do is have it so unit A form A can morph into Unit A form B using an ability, however while in form B a timer, which could probably come from a buff, counts down and when it hits 0 the unit reverts to form A. What makes it complicated is that the unit can cancel the morph early and retain the unused morph time for later use. The morph time will also passively fill up while the unit is in form A. This is inspired by the morph ability from Final Fantasy 6 as you might have guessed.
I've done timed morphs successfully before, however they have always been morph->timer runs out->auto revert without the ability to cancel early so I know some of this already. I'd try to figure it out myself but the wiki page on buffs is inaccessible right now.
So we talking buff stacks? While in form B it periodically chews a buff stack while in form A it regenerates it. When in form B there is a button to revert back or it is forced to use the ability when out of buff stacks.
What you mean the wiki page is down?
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
Thanks for the prompt reply. My only question is this: is there a way to easily display the total time remaining? edit: It could be the current stack count of the buff instead of exact time. I'm open to doing this with triggers as needed since this unit will be 1 per player and thus a dialog item could do it via periodic triggers easily enough, unless there's a better way.
http://sc2mapster.gamepedia.com/Data/Behaviors/Buff This page which I found from the wiki page up top is blank and I couldn't find the old one via google. Perhaps I should have been more specific about what I meant.
edit2: Could it be done with behavior->buff flags? The extend flag seems like it could be relevant here, hence why I wanted the wiki
edit3: I found a backup of the page I wanted:
https://web.archive.org/web/20160726012841/http://www.sc2mapster.com/wiki/galaxy/data/behaviors/buff/
Extend would just increase the duration based on the number of applied buff stacks. Unless you then disable the behaviour when in form A it would still count down.
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