so guys , i wondering if anyone can help me with this.
Im trying to create an ability like this..
If a unit dies around the caster, it launches a missle that applys a buff to caster. The buff doesnt do anything. Its just going to be used as a counter . So lets say the buff is applied 6 times for 6 units death. And the stack is permissable to 6. How do i tie that into an ability that say raises 2 units per buff stack? ... so if i got it stacking 6 times then that would be summon 12 units. Is their also a way to display the stacks in a friendly easyily read manner ? So like if you reach 12 stacks.. You know you can summon 24 units.. But how would the player know he/she has 12 stacks? I know how to launch a missile from a dieing unit to caster an apply the buff, the difficulty is tieing in this buff stack to my create unit ability based on stack count.
Is all doable, but might be simplest just to let the caster spawn 2 units at a time, then remove 1 buff for each time this happens. Displaying it would be messy, might be easiest just to use triggers/dialogs for that for buff stack counting honestly.
Anyways, if you really need 6 buffs to spawn 12 units, you'll need to play with the switch effect, or possibly a set effect, or even a create persistent effect. I feel a switch would be cleanest though. If 1 buff make 2, 2 buff make 4, etc. If you don't mind playing with the dropdown, could just have it spawn 2 for each amount of buffs had, be simpler still. Either way, to make it work for up to 6 buffs on, you are likely looking at 6-7 validators checking for the various buff counts.
I would just have a Buff behaviour on the caster that every period tries to remove a buff stack and create 2 units validated by it has at least one buff stack and total is less than max. As others have stated best way to display your capacity would be a dialog trigger.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Personally i would have an ability that used charges and spawns or revives two units per charge, then for the unit types around this caster i would give them a buff that upon death searches for nearest caster of that type and gives charges to that casters ability, i will test this theory my self and attach or post with an attached map demonstrating the process.
so guys , i wondering if anyone can help me with this.
Im trying to create an ability like this..
If a unit dies around the caster, it launches a missle that applys a buff to caster. The buff doesnt do anything. Its just going to be used as a counter . So lets say the buff is applied 6 times for 6 units death. And the stack is permissable to 6. How do i tie that into an ability that say raises 2 units per buff stack? ... so if i got it stacking 6 times then that would be summon 12 units. Is their also a way to display the stacks in a friendly easyily read manner ? So like if you reach 12 stacks.. You know you can summon 24 units.. But how would the player know he/she has 12 stacks? I know how to launch a missile from a dieing unit to caster an apply the buff, the difficulty is tieing in this buff stack to my create unit ability based on stack count.
Or perhaps there is a different way to do this?
Yea anyway , any help would be appreciated.
@Dangel1234: Go
Is all doable, but might be simplest just to let the caster spawn 2 units at a time, then remove 1 buff for each time this happens. Displaying it would be messy, might be easiest just to use triggers/dialogs for that for buff stack counting honestly.
Anyways, if you really need 6 buffs to spawn 12 units, you'll need to play with the switch effect, or possibly a set effect, or even a create persistent effect. I feel a switch would be cleanest though. If 1 buff make 2, 2 buff make 4, etc. If you don't mind playing with the dropdown, could just have it spawn 2 for each amount of buffs had, be simpler still. Either way, to make it work for up to 6 buffs on, you are likely looking at 6-7 validators checking for the various buff counts.
@Dangel1234: Go
persistant effect with max counter = max stack / 2
a periodic validator for the buff
a set effect with a spawn unit effect and a remove buff effect,
that's all it needs. sc2 doesnt show stack count of a buff, but it does show unit cargo, energy, shields. charges. use one of these.
and also u can make a little dialog that shows number of stacks right over buff icon.
I would just have a Buff behaviour on the caster that every period tries to remove a buff stack and create 2 units validated by it has at least one buff stack and total is less than max. As others have stated best way to display your capacity would be a dialog trigger.
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
Personally i would have an ability that used charges and spawns or revives two units per charge, then for the unit types around this caster i would give them a buff that upon death searches for nearest caster of that type and gives charges to that casters ability, i will test this theory my self and attach or post with an attached map demonstrating the process.