I created an autocast ability which told a Barracks to produce units. I wanted to prevent to queue up all slots in case autocast is turned on so I added a Validator of the type Condition to the Autocast Validator of the ability. But this didn´t work.
Here is what I did:
Created an Effect-Instant Ability (Flag: Autocast) with an Effect (Issue Order), that ordered to train a unit
Under Validators I created a Condition and added under If+
Test: Unit Behavior Count (Test if "Nuclear Reactor - Barracks", "TechLab - Barracks" or "TechReactor - Barracks" was applied)
Return: Unit Order (eg. Marine: Test if Marine is being built ->
Ability Link: "Barracks - Train"
Ability Command Index: 0 (for Marine)
Value: equal to 0 or equal or less than 1 depending on what addon was attached (queue 5 or 8 )
Added this Condition to the Ability (Effect - Instant) under Autocast Validator
Could anyone tell me why the Validator (type: condition) in the attached map doesn´t work? I want the autocast ability to build one marine in case there is no addon or an techlab attached and build two marines in case a reactor is attached.The strange thing is if the positions of the first and the second return-test condition (in the validator under if+) are switched, always the first one is tested.
Solved. For anyone having the same problem: The solution was to change the field "Validator - Unit+" in both "Unit Compare Behavior" Validators from Target to Source -.- .
As Riley suggested, I would move this thread to the development forum, maybe there it would be more helpful for others.
I created an autocast ability which told a Barracks to produce units. I wanted to prevent to queue up all slots in case autocast is turned on so I added a Validator of the type Condition to the Autocast Validator of the ability. But this didn´t work.
Here is what I did:
Ability Link: "Barracks - Train"
Ability Command Index: 0 (for Marine)
Value: equal to 0 or equal or less than 1 depending on what addon was attached (queue 5 or 8 )
Validators for Auto cast abilities simply don't work.
They do work. Check this two maps out. I made a marine autocast ability. The first map has an autocast validator the 2nd doesn´t. See the difference
Not true I've used them successfully with no problems.
I think this topic needs to be moved to the map dev forum.
My High Templars with autocast on storm are pretty smart right now. made them a lot stronger. and there still room for improvements
Could anyone tell me why the Validator (type: condition) in the attached map doesn´t work? I want the autocast ability to build one marine in case there is no addon or an techlab attached and build two marines in case a reactor is attached.The strange thing is if the positions of the first and the second return-test condition (in the validator under if+) are switched, always the first one is tested.
Solved. For anyone having the same problem: The solution was to change the field "Validator - Unit+" in both "Unit Compare Behavior" Validators from Target to Source -.- .
As Riley suggested, I would move this thread to the development forum, maybe there it would be more helpful for others.