i want a unit to be able to cast one ability at several units (working with a persistant effect) (but never one unit twice) BUT the target unit could be target of several caster units.
any ideas?
(basically i would need a validator which checks if the target unit has a buff, which originated from the caster or a validator that checks if a persistant effect originated from the caster is still active on the target)
Can you plz clarify this a bit. You want to cap max target count of ability per each caster or globaly? Or you want to cap max buffs/persistents on each target unit? I'll try to make a map if i can and will know for sure what is your plan here :>
Unit A casts on Unit B once. Now unit A shall not be able to cast on Unit B again until the persistant effect stopped, but Unit C shall be able to cast the ability on Unit B.
Additionally Unit A could cast on Unit C even while still a persistant effect targets Unit B.
Update:
i tried working with a buff. set the MaxStackCountCaster to 1 and max Stacks to 4 but Caster seems to be Player and not Caster Unit, at least it doesn't apply more than 1 stack.
Update Update:
Using an ability with addBehaviourEffect doesnt add another stack if the casterStacks is set to 1. using the same effect in triggers does add another stack (caster and target set) :((
here is my solution (i don't know why certain things have to be that way)
Ability -> Add behaviour -> Behaviour -InitEffect-> Create Persistant-> do things
~~~~~~~~~~~~~~~~~Behaviour-RefreshEffect-> Set Effect -> Create Persistant
NoMarker Validator needed on the CreatePersistant and the SetEffect.
Marker Settings for both effects:
Marker_Link: Abil/Test
Marker_Match: Casting Unit and Link
I don't know why the Set Effect is needed but it doesn't work without it. Neither do i understand the difference between Match and Mismach of the markerSettings( doesn't make sense to me yet).
Set and Persistent effects are like storage for unit's id variables, so they are equivalents of triggers on runtime. So whenever you need to apply marker on unit you should make this with Set and Persistent effects, and then use validator No Markers for all effects inside this two container-effects. I don't quite understand your solution and i don't rly like when i make something and i don't know how it works, it doesnt allow me to re-create things when i want to make them again so i can just advise you to fully understand what you've done and then move forward. Anyway if this got job done - i'm glad you made it.
hello there,
i want a unit to be able to cast one ability at several units (working with a persistant effect) (but never one unit twice) BUT the target unit could be target of several caster units.
any ideas?
(basically i would need a validator which checks if the target unit has a buff, which originated from the caster or a validator that checks if a persistant effect originated from the caster is still active on the target)
Can you plz clarify this a bit. You want to cap max target count of ability per each caster or globaly? Or you want to cap max buffs/persistents on each target unit? I'll try to make a map if i can and will know for sure what is your plan here :>
@abvdzh: Go
Unit A casts on Unit B once. Now unit A shall not be able to cast on Unit B again until the persistant effect stopped, but Unit C shall be able to cast the ability on Unit B.
Additionally Unit A could cast on Unit C even while still a persistant effect targets Unit B.
Update: i tried working with a buff. set the MaxStackCountCaster to 1 and max Stacks to 4 but Caster seems to be Player and not Caster Unit, at least it doesn't apply more than 1 stack.
Update Update:
Using an ability with addBehaviourEffect doesnt add another stack if the casterStacks is set to 1. using the same effect in triggers does add another stack (caster and target set) :((
hmm, this probably can be solved with both behaviours and markers but i tried for a few minutes and couldn't figure out this.
@abvdzh: Go
omg i made it, just took me 3 days
--Update---here is my solution (i don't know why certain things have to be that way)
Ability -> Add behaviour -> Behaviour -InitEffect-> Create Persistant-> do things
~~~~~~~~~~~~~~~~~Behaviour-RefreshEffect-> Set Effect -> Create Persistant
NoMarker Validator needed on the CreatePersistant and the SetEffect.
Marker Settings for both effects:
Marker_Link: Abil/Test
Marker_Match: Casting Unit and Link
I don't know why the Set Effect is needed but it doesn't work without it. Neither do i understand the difference between Match and Mismach of the markerSettings( doesn't make sense to me yet).
Set and Persistent effects are like storage for unit's id variables, so they are equivalents of triggers on runtime. So whenever you need to apply marker on unit you should make this with Set and Persistent effects, and then use validator No Markers for all effects inside this two container-effects. I don't quite understand your solution and i don't rly like when i make something and i don't know how it works, it doesnt allow me to re-create things when i want to make them again so i can just advise you to fully understand what you've done and then move forward. Anyway if this got job done - i'm glad you made it.