I'm trying to temporary reduce the range of an ability on a specefic unit. I'm trying to do it with behaviors, but they can only change the weapon range. Anyone knows a way to reduce an ability range?
I'm trying to make Queen's to temporarly have spawn larva range reduced to like 10 for 5 seconds instead of 500 (unlimited range) after casting the ability. So I was thinking something along the lines of a Behavior and/or validator, but I can't find exacly how.
1) Use triggers to add and remove an upgrade that lowers the range
2) Add a combine validator to the first effect of the ability, that checks for both the behavior being present and the target being beyond the range, and use negate (so the validator is only false if both of those things are true, and thus fails the ability).
2) Add a combine validator to the first effect of the ability, that checks for both the behavior being present and the target being beyond the range, and use negate (so the validator is only false if both of those things are true, and thus fails the ability).
Thanks this helped me figure out what I needed. After a couple trial and error I eventually got to a bunch of validator working together.
Combine OR
Behavior Count 0
Combine AND
Behavior Count 1
Location Range Less than 5
So basicly, if the behavior count is 0, everything is fine, if not, check the range.
It looks like you want this done only under certain conditions, not permanently...off the top of my head, you could go into the Data Editor and copy-modify the Inject Larva ability. I don't know right off the bat if there's a trigger to deactivate and activate abilities if certain conditions are met.
I did not want to "fully" desactivate an ability, I wanted to restrict the cast range of it if it has been used recently. It's a little more tricky but it works.
I'm trying to temporary reduce the range of an ability on a specefic unit. I'm trying to do it with behaviors, but they can only change the weapon range. Anyone knows a way to reduce an ability range?
I'm trying to make Queen's to temporarly have spawn larva range reduced to like 10 for 5 seconds instead of 500 (unlimited range) after casting the ability. So I was thinking something along the lines of a Behavior and/or validator, but I can't find exacly how.
Thanks!
Working on projects:
You could use gui catalog reference set.
@Scbroodsc2: Go
1) Use triggers to add and remove an upgrade that lowers the range
2) Add a combine validator to the first effect of the ability, that checks for both the behavior being present and the target being beyond the range, and use negate (so the validator is only false if both of those things are true, and thus fails the ability).
Make a duplicate of the ability with lowered range.
Make whatever that you want to decrease range apply a hidden buff to the Queen
Have the duplicate ability use a validator that will check for the hidden buff
Have the normal ability use the same validator but with reverse logic
Thanks this helped me figure out what I needed. After a couple trial and error I eventually got to a bunch of validator working together.
Combine OR
Behavior Count 0
Combine AND
So basicly, if the behavior count is 0, everything is fine, if not, check the range.
Working on projects:
It looks like you want this done only under certain conditions, not permanently...off the top of my head, you could go into the Data Editor and copy-modify the Inject Larva ability. I don't know right off the bat if there's a trigger to deactivate and activate abilities if certain conditions are met.
KSNumedia's Assets: Custom Models for campaigns and mods!
@ksnumedia: Go
I did not want to "fully" desactivate an ability, I wanted to restrict the cast range of it if it has been used recently. It's a little more tricky but it works.
Working on projects: