For as long as I've had auto training effects used in my map for training units it has never been an issue when players hit their supply cap. What happens is it waits until the player clears out some supplies and then training continues as normal.
Since my last publish though (and I don't remember changing anything related) when supply limit is reached the units stop training and will not continue training until they are manually commanded to train again.
Use the Ability - Info - Effect field of the train ability to use a Search Area that applies a Buff via Apply Behavior that uses an Issue Order effect when expiring. Just use a Player Compare Food Available validator to disable the buff.
Use the Ability - Info - Effect field of the train ability to use a Search Area that applies a Buff via Apply Behavior that uses an Issue Order effect when expiring. Just use a Player Compare Food Available validator to disable the buff.
That's an interesting idea :)
I'm not sure I understand completely. To be clear, the idea is to place a buff on the training structure that expires when the requirements are met (there's enough supplies) and then trains the unit, as opposed to failing when supply is reached and then doing nothing. Is that right?
When one unit is trained, it applies a buff to the structure that trained it, which on expiring tells the structure to start training the next one. If the remaining supply is too low then the buff is disabled freezing the duration so it persists but is inactive until the available supply increases.
Only issue might be if the caster is known as the unit that has been trained, then you need to get it to use a short range Search Area effect to apply the buff to the structure.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
For as long as I've had auto training effects used in my map for training units it has never been an issue when players hit their supply cap. What happens is it waits until the player clears out some supplies and then training continues as normal.
Since my last publish though (and I don't remember changing anything related) when supply limit is reached the units stop training and will not continue training until they are manually commanded to train again.
@Lucavious:
Strange. There's multiple ways to auto-train units, which method are you using?
@TrenchaunT: Go
Right now I'm using an ability effect that fires when the unit finishes training so it continues indefinitely.
Bump. Gracias por favor.
Use the Ability - Info - Effect field of the train ability to use a Search Area that applies a Buff via Apply Behavior that uses an Issue Order effect when expiring. Just use a Player Compare Food Available validator to disable the buff.
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
That's an interesting idea :)
I'm not sure I understand completely. To be clear, the idea is to place a buff on the training structure that expires when the requirements are met (there's enough supplies) and then trains the unit, as opposed to failing when supply is reached and then doing nothing. Is that right?
When one unit is trained, it applies a buff to the structure that trained it, which on expiring tells the structure to start training the next one. If the remaining supply is too low then the buff is disabled freezing the duration so it persists but is inactive until the available supply increases.
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
Awesome, that sounds like the perfect solution. Thanks Dr!
Only issue might be if the caster is known as the unit that has been trained, then you need to get it to use a short range Search Area effect to apply the buff to the structure.
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