My intent with this trigger is that it should add one point to the attribute behavior "Infection" every four seconds of game time.
For some reason, when triggered, it adds points very quickly, all the way up to the maximum stack count for "Infection." It adds these points much quicker than at a rate of 1 every 4 seconds. Here's my trigger:
a much much better way would be to create a second behavior and an apply behavior effect. have the second behavior periodic start the apply behavior effect. the stacking starts as soon as you put the second behavior on a unit
"a much much better way would be to create a second behavior and an apply behavior effect. have the second behavior periodic start the apply behavior effect. the stacking starts as soon as you put the second behavior on a unit"
@b0ne:
What would the apply behavior effect look like? - I've been banging my head against this for hours and I can't figure it out...
I've set up a BUFF behavior with a period of 2 and a periodic effect.
I can't figure out the apply behavior effect being periodically triggered, however. My objective is to add 1 point to the ATTRIBUTE behavior 'Infection' every two seconds (when the BUFF behavior period repeats)
The first behavior doesn't need to do a modification. Just put a period, and in the Effect- Periodic slot, enter your Apply Behavior - Your Real Behavior. This behavior really modificates the unit. Make the first one Hiden in the flags.
I must have screwed something up, because that's what I thought, but infection never goes above 1... The Effect B apply behavior will apply Infection even if the unit does not have infection to begin with, but the value is always 1.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
My intent with this trigger is that it should add one point to the attribute behavior "Infection" every four seconds of game time. For some reason, when triggered, it adds points very quickly, all the way up to the maximum stack count for "Infection." It adds these points much quicker than at a rate of 1 every 4 seconds. Here's my trigger:
http:i.imgur.com/OGuQJ.jpg
I'm just learning the basics right now, so any help would be greatly appreciated! Thanks!
you didn't pick a unit there. if you want to do it with a trigger put a if then else statement in the action of pick unit
a much much better way would be to create a second behavior and an apply behavior effect. have the second behavior periodic start the apply behavior effect. the stacking starts as soon as you put the second behavior on a unit
Thanks for that advice, b0ne - much appreciated!
"a much much better way would be to create a second behavior and an apply behavior effect. have the second behavior periodic start the apply behavior effect. the stacking starts as soon as you put the second behavior on a unit"
@b0ne: What would the apply behavior effect look like? - I've been banging my head against this for hours and I can't figure it out... I've set up a BUFF behavior with a period of 2 and a periodic effect.
I can't figure out the apply behavior effect being periodically triggered, however. My objective is to add 1 point to the ATTRIBUTE behavior 'Infection' every two seconds (when the BUFF behavior period repeats)
@smashbox: Go
The first behavior doesn't need to do a modification. Just put a period, and in the Effect- Periodic slot, enter your Apply Behavior - Your Real Behavior. This behavior really modificates the unit. Make the first one Hiden in the flags.
you've got 3 parts:
hidden behavior A
effect B apply behavior
visible behavior Infection
A does only one thing: it periodically starts effect B
B applies Infection
Infection stacks with the speed set in A
no trigger required
I must have screwed something up, because that's what I thought, but infection never goes above 1... The Effect B apply behavior will apply Infection even if the unit does not have infection to begin with, but the value is always 1.