Since recently, I've been trying to make an upgrade that would reduce the supply cost of a unit. I couldn't find an option in the Unit Upgrades effects that would reduce the supply count, so I thought I should try using the Supply Drop's behavior to modify the unit's supply. I duplicated the behavior, modified it so that it will increase unit supply by 1, attached the behavior to the unit and added a requirement to work only when said upgrade has been completed. However, when I complete the upgrade, nothing happens.
Anybody got an idea what I might be missing or doing wrong?
Alright, I did some tweaking and it turned out that the behavior itself does work. However, it doesn't work at all the way I wanted it to.
When I morph in a Hydralisk, it still needs the standard amount of supply to be trained (which is 2), but when it is completed, it increases my supply by 1. I don't want it to increase the supply available, I just want it to cost less. It seems that this behavior works only on existing Hydralisks and it doesn't exactly affect the unit from a to-be-build perspective.
And to make things worse, the behavior works even without the upgrade. Plus, the behavior icon remains as a buff on the unit and I don't know how to make it invisible.
Here's the Learn requirement. I used this to make the upgrade register the existence of a Lair or a Hive, in order to be available, as well as to be unavailable for another research when it has already been queued.
This is the requirement that is supposed to make the behavior active only when said requirement is met (the upgrade having been completed).
Behaviors are active or inactive based on validators, not requirements. I see your problem, about hydralisks still costing the regular amount of supply until they're finished building. I just messed with the editor and it looks like there is no way to do this cleanly with upgrades. Here's a solution that will take you a while to set up but may get close to the result you want.
Duplicate the hydralisk unit and make the copy's supply cost 1. Copy the ability to morph a larva to a hydralisk. Add the requirement you made to the second morph ability, set the unit created to the duplicated hydra, and add it to the larva's command card, so your larva's command card should have two things in the hydralisk slot: The top one for regular hydralisks, and the second one for the decreased supply hydralisks.
Unfortunately, this will not affect hydralisks already in play when the upgrade finishes. It will be proactive. However, I'm sure you can "fake" retroactivity by forcing the hydras in play to morph into the new ones over 0 seconds ;)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Since recently, I've been trying to make an upgrade that would reduce the supply cost of a unit. I couldn't find an option in the Unit Upgrades effects that would reduce the supply count, so I thought I should try using the Supply Drop's behavior to modify the unit's supply. I duplicated the behavior, modified it so that it will increase unit supply by 1, attached the behavior to the unit and added a requirement to work only when said upgrade has been completed. However, when I complete the upgrade, nothing happens.
Anybody got an idea what I might be missing or doing wrong?
@g0rilas: Go
Can you copy+paste the requirement you made? It sounds like you did the requirement wrong.
To make sure, take the requirement off and see if the behavior itself works.
@shardfenix: Go
Alright, I did some tweaking and it turned out that the behavior itself does work. However, it doesn't work at all the way I wanted it to.
When I morph in a Hydralisk, it still needs the standard amount of supply to be trained (which is 2), but when it is completed, it increases my supply by 1. I don't want it to increase the supply available, I just want it to cost less. It seems that this behavior works only on existing Hydralisks and it doesn't exactly affect the unit from a to-be-build perspective.
And to make things worse, the behavior works even without the upgrade. Plus, the behavior icon remains as a buff on the unit and I don't know how to make it invisible.
Here's the Learn requirement. I used this to make the upgrade register the existence of a Lair or a Hive, in order to be available, as well as to be unavailable for another research when it has already been queued.
This is the requirement that is supposed to make the behavior active only when said requirement is met (the upgrade having been completed).
And this is the behavior itself.
@g0rilas: Go
Behaviors are active or inactive based on validators, not requirements. I see your problem, about hydralisks still costing the regular amount of supply until they're finished building. I just messed with the editor and it looks like there is no way to do this cleanly with upgrades. Here's a solution that will take you a while to set up but may get close to the result you want.
Duplicate the hydralisk unit and make the copy's supply cost 1. Copy the ability to morph a larva to a hydralisk. Add the requirement you made to the second morph ability, set the unit created to the duplicated hydra, and add it to the larva's command card, so your larva's command card should have two things in the hydralisk slot: The top one for regular hydralisks, and the second one for the decreased supply hydralisks.
Unfortunately, this will not affect hydralisks already in play when the upgrade finishes. It will be proactive. However, I'm sure you can "fake" retroactivity by forcing the hydras in play to morph into the new ones over 0 seconds ;)