I was thinking about making a ability that used kills as a resource. Say a ability requires 15 kills before you can use it.... When you use it your kills are set back to 0. Is this possible?
haha, wel you did not ask for it the first time :P
option 1 (can work on multiple units etc):
you can add a behaviour on a unit. let it stack with every kill.
than make a validator that checks the stacks etc.
and then cast remove a amount of stacks.
option 2 (if every player only has 1 unit)
in SC2 there is a custom resource.
if every player only controls 1 unit you can add 1 point of that with every kill
and use it to cast spells
You can also just base the costs of the ability on charges and add new charges to the ability via trigger (either add 1 charge per kill and let the ability require 15 of its charges or give 1 charge after 15 kills)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I was thinking about making a ability that used kills as a resource. Say a ability requires 15 kills before you can use it.... When you use it your kills are set back to 0. Is this possible?
it is possible
@Jackolas: Go
Any chance you can give me a brief explanation. I'm sure I can figure it out without you going in to much detail.
haha, wel you did not ask for it the first time :P
option 1 (can work on multiple units etc):
you can add a behaviour on a unit. let it stack with every kill.
than make a validator that checks the stacks etc.
and then cast remove a amount of stacks.
option 2 (if every player only has 1 unit)
in SC2 there is a custom resource.
if every player only controls 1 unit you can add 1 point of that with every kill
and use it to cast spells
@Jackolas: Go
Thanks ill try these out :)
You can also just base the costs of the ability on charges and add new charges to the ability via trigger (either add 1 charge per kill and let the ability require 15 of its charges or give 1 charge after 15 kills)