I have a morph ability that I would like to validate or have a requirement for, based on the amount of kills the unit has. I didnt see a 'Unit Count Kills' requirement node, nor did I see anything like that in the validators. Any know how to do this?
EDIT: Found 'Count Unit' and 'Kills' in a related field, but I don't know how to use the expression editor for requirements very well.
Yeah, you can do it like DrSuperEvil said: Greater Than Or Equal To -> Count Unit Kills -> Constant X. I've never tried it so I don't know if it would work, but I guess it counts all the kills for that player, and only for a specific unit type. Alternatively you can give the unit a behavior than removes itself when the unit reaches that amount of kills (through a validator) and make the morph requirement Not -> Count Behavior ->In Progress Or Better At Unit.
while i do not believe there is a way to count Kills DIRECTLY, there may be a workaround method. perhaps by giving the Unit a behavior that is set so that when that unit Kills another unit it stacks on a second behavior. when the unit has killed enough other units then the behavior will have stacked enough to enable the ability if the ability has an effect that is validated by an Unit compare behavior count validator.
@vailreth: Go There's no need for a validator in this case. The ability requirements can check the number of stacked behaviors. How come I didn't think about it? :-) Give the unit a buff that gives this same unit another stackable buff of every kill.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a morph ability that I would like to validate or have a requirement for, based on the amount of kills the unit has. I didnt see a 'Unit Count Kills' requirement node, nor did I see anything like that in the validators. Any know how to do this?
EDIT: Found 'Count Unit' and 'Kills' in a related field, but I don't know how to use the expression editor for requirements very well.
Just use the tree and compare it to a constant.
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
Yeah, you can do it like DrSuperEvil said: Greater Than Or Equal To -> Count Unit Kills -> Constant X. I've never tried it so I don't know if it would work, but I guess it counts all the kills for that player, and only for a specific unit type. Alternatively you can give the unit a behavior than removes itself when the unit reaches that amount of kills (through a validator) and make the morph requirement Not -> Count Behavior ->In Progress Or Better At Unit.
@SoulFilcher: Go
Which validator?
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 I don't know, maybe something related to veterancy? Damn you Blizzard!
while i do not believe there is a way to count Kills DIRECTLY, there may be a workaround method. perhaps by giving the Unit a behavior that is set so that when that unit Kills another unit it stacks on a second behavior. when the unit has killed enough other units then the behavior will have stacked enough to enable the ability if the ability has an effect that is validated by an Unit compare behavior count validator.
@vailreth: Go There's no need for a validator in this case. The ability requirements can check the number of stacked behaviors. How come I didn't think about it? :-) Give the unit a buff that gives this same unit another stackable buff of every kill.