Ok, so I'm trying to make a weapon charge based and link it to an ability.
Anybody has a clue how to do this directly?
I have given the unit a "remove charge" ability which triggers by the weapons effect and then tried to validate amount of charges on the unit.
I have tried to give the weapon effect a validator of the type "Unit Compare Charge Used", however it seems like this does not do what the name suggests. It either prevents the usage of the attack completly for all amounts of charges, or always allows it.
But I'm not sure if I'm doing it right, I don't have much experience with validators yet...
E.g:
The following does prevent the unit from attacking completly, even with its starting 3charges. (here I try to validate: *ability* has at least 1 charge)
Ok, so I'm trying to make a weapon charge based and link it to an ability.
Anybody has a clue how to do this directly? I have given the unit a "remove charge" ability which triggers by the weapons effect and then tried to validate amount of charges on the unit. I have tried to give the weapon effect a validator of the type "Unit Compare Charge Used", however it seems like this does not do what the name suggests. It either prevents the usage of the attack completly for all amounts of charges, or always allows it. But I'm not sure if I'm doing it right, I don't have much experience with validators yet...
E.g: The following does prevent the unit from attacking completly, even with its starting 3charges. (here I try to validate: *ability* has at least 1 charge)
Field zzzzzzzzzz
Editor: Editor Comment
Editor: Editor Description
Editor: Editor Name zzzzzzzzzz
Editor: Editor Prefix
Editor: Editor Suffix
Validator: Ability Juno Warhead Missile
Validator: Behavior (None)
Validator: Charge
Validator: Compare Greater Than Or Equal To
Validator: Failure Result Not enough charges
Validator: Ignore While Channeling 0
Validator: Location Unit
Validator: Other Unit + (None):Caster
Validator: Result - Failure Not enough charges
Validator: Unit + (None):Caster
Validator: Value 1
@jakob101088: Go
Nevermind, I found a workaround... :) (pfff... working on this things forever and now that I post it I find a solution...)
Would still appreciate if anybody knew how the Charge Validator works.
Just use a Modify Unit effect to remove the charge on weapon firing.
Your charge link ID field is empty.
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