I have duplicated the Nova domination ability and added it to a non hero unit. When one of these units uses the ability another of the same unit couldnt use the domination ability. So I removed the requierment that controlled that. But now the units can spam the domination ability on infinit number of units.
How can I make the ability be used only once at a time for each unit. When the enemy unit is released or dead I want the unit to be able to cast the ability again. Iam think some sort of requierment..but Im not sure how that would look.
It is a fault with the Destroy Persistent effect. You need to use the effect tree history (effect field above the value) where possible. The effect cannot determine between instances of application so always kills the latest application of a persistent and it also fails is a 0 radius is used (use the smallest radius but 0). This means a 255 radius will target the effect applied by other units if more recent. Where possible I use validators with persistents instead of destroy effects. Infact the whole nova mind control is quite the WoL legacy as far as setup goes.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Considering buffs now can have a caster history (like liberator) it should be pretty simple to use an Ennumerate Area validator with a Unit Compare Behavior Count validator to determine if there already is a controlled unit for that caster.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Not really. Also with the site change all the demo maps are down anyhow. At least with wiki page for Buff behaviours is quite complete.
What I would do is Make two abilities, one an Effect - Target and the other an Effect - Instant. Make the Effect - Target apply a Set effect that uses two Apply Behavior effects, one to the target and the other to the caster. The buff applied to the target is like neural parasite for changing ownership, has as many stacks as there are players stack and is limited to one per caster, if you want to give it a periodic energy drain to the caster add a Modify Unit effect under the periodic effect. The buff applied to the caster is just for requirements involved in the button show/hide so will only need the validators modified.
The Effect - Instant ability should use a Search Area effect with global range and use a Remove Behavior effect with caster history.
Requirement wise you want the Effect - Target ability to be shown and usable when the buff on the caster (the second buff made) is equal to 0. For the Effect - Instant ability set a requirement that is it shown and usable when the buff on the caster (the second buff made) is equal to 1.
You will need two Unit Compare Behavior Count validators. The first one counts the mind control buff on the target and must be equal to 0 and belonging to the origin player. Put this under the Set effect to prevent multiple units trying to mind control the same target. The second one counts the number of mind control buff stacks on the target of the Set effect (important you fill in the effect field of the validator) belonging to the caster unit. Put this under the Validators (Remove) field of the buff on the caster.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
It was to advance for me =/. I did a shortcut.. I made de unit have exacly the amount of energy for casting the ability once. The unit has no energy regen. When the controled unit is killed the caste regain the amount of energy requiered to cast the ability again =D
I have duplicated the Nova domination ability and added it to a non hero unit. When one of these units uses the ability another of the same unit couldnt use the domination ability. So I removed the requierment that controlled that. But now the units can spam the domination ability on infinit number of units.
How can I make the ability be used only once at a time for each unit. When the enemy unit is released or dead I want the unit to be able to cast the ability again. Iam think some sort of requierment..but Im not sure how that would look.
Custom Campaign initiative StarCraft: Pandora , StarCraft: Replicant
It is a fault with the Destroy Persistent effect. You need to use the effect tree history (effect field above the value) where possible. The effect cannot determine between instances of application so always kills the latest application of a persistent and it also fails is a 0 radius is used (use the smallest radius but 0). This means a 255 radius will target the effect applied by other units if more recent. Where possible I use validators with persistents instead of destroy effects. Infact the whole nova mind control is quite the WoL legacy as far as setup goes.
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
Ok, Perhaps the Domination ability from Nova cover ops is better, it seems somewhat more developt. Or perhaps its the same
Custom Campaign initiative StarCraft: Pandora , StarCraft: Replicant
No idea. Heard the nova campaign maps were encrypted even if you purchased the campaign.
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
Perhaps but it is still in the editor
Custom Campaign initiative StarCraft: Pandora , StarCraft: Replicant
Considering buffs now can have a caster history (like liberator) it should be pretty simple to use an Ennumerate Area validator with a Unit Compare Behavior Count validator to determine if there already is a controlled unit for that caster.
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
Ok Will check that. Thanks is there any tutorial for this kind of things?
Custom Campaign initiative StarCraft: Pandora , StarCraft: Replicant
Not really. Also with the site change all the demo maps are down anyhow. At least with wiki page for Buff behaviours is quite complete.
What I would do is Make two abilities, one an Effect - Target and the other an Effect - Instant. Make the Effect - Target apply a Set effect that uses two Apply Behavior effects, one to the target and the other to the caster. The buff applied to the target is like neural parasite for changing ownership, has as many stacks as there are players stack and is limited to one per caster, if you want to give it a periodic energy drain to the caster add a Modify Unit effect under the periodic effect. The buff applied to the caster is just for requirements involved in the button show/hide so will only need the validators modified.
The Effect - Instant ability should use a Search Area effect with global range and use a Remove Behavior effect with caster history.
Requirement wise you want the Effect - Target ability to be shown and usable when the buff on the caster (the second buff made) is equal to 0. For the Effect - Instant ability set a requirement that is it shown and usable when the buff on the caster (the second buff made) is equal to 1.
You will need two Unit Compare Behavior Count validators. The first one counts the mind control buff on the target and must be equal to 0 and belonging to the origin player. Put this under the Set effect to prevent multiple units trying to mind control the same target. The second one counts the number of mind control buff stacks on the target of the Set effect (important you fill in the effect field of the validator) belonging to the caster unit. Put this under the Validators (Remove) field of the buff on the caster.
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
thanks for guiding me trought this, I will see if I can make it work
Custom Campaign initiative StarCraft: Pandora , StarCraft: Replicant
It was to advance for me =/. I did a shortcut.. I made de unit have exacly the amount of energy for casting the ability once. The unit has no energy regen. When the controled unit is killed the caste regain the amount of energy requiered to cast the ability again =D
Custom Campaign initiative StarCraft: Pandora , StarCraft: Replicant
What part was too advanced?
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