I want to make it so when any unit is created via a tirgger, it takes on the mineral/vespene/supply costs of another unit.
As an example, if I were to create a Stalker (125/50/2), it would take on the costs of a Marine (50/0/1). I don't want to change the unit type cost, rather than current cost of the specific unit. I know you can change life like this, I'm just unsure of how to do this with the above things. Set unit property doesn't include any, but unit property includes supplies used/supplies made, which is puzzling to me. I can set a unit's life to a unit's supplies used/made, but not vice versa, etc.
Im having a bit of difficulty understanding what your issue is.
You can suck create units via trigger
You can take Minerals/Gas from a player via triggers.
It seems you are hold up on supplys. The existing supply system is fine for most cases but, you should consider scrapping it for your own supply system via triggers and use it todo all the fancy things you want. Then, you force the real supply in game to constantly mimic yours for the GUI.
If the only units that are changed like that are created by trigger, then you can duplicate the Stalker unit to create a "Stalker with Marine cost". Then set your trigger so that it creates that second type of unit, rather than the normal one. Warp gates will still produce the standard stalker, but your trigger won't.
Im having a bit of difficulty understanding what your issue is.
You can suck create units via trigger You can take Minerals/Gas from a
player via triggers.
It seems you are hold up on supplys. The existing supply system is fine
for most cases but, you should consider scrapping it for your own supply
system via triggers and use it todo all the fancy things you want. Then,
you force the real supply in game to constantly mimic yours for the GUI.
So I want to alter the costs of a specific unit rather than a unit type so that triggers that later call on that unit receive that value. So my 50 mineral 1 supply stalker would be included with a trigger that is something like "Get all units that cost 50 minerals" or "Get all units that cost 1 supply", etc.
Yeah I'm trying to avoid having to make a data copy of every unit as well as change my triggers to spawn specific copy units rather than the unit they are copying.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want to make it so when any unit is created via a tirgger, it takes on the mineral/vespene/supply costs of another unit.
As an example, if I were to create a Stalker (125/50/2), it would take on the costs of a Marine (50/0/1). I don't want to change the unit type cost, rather than current cost of the specific unit. I know you can change life like this, I'm just unsure of how to do this with the above things. Set unit property doesn't include any, but unit property includes supplies used/supplies made, which is puzzling to me. I can set a unit's life to a unit's supplies used/made, but not vice versa, etc.
Im having a bit of difficulty understanding what your issue is.
You can suck create units via trigger You can take Minerals/Gas from a player via triggers.
It seems you are hold up on supplys. The existing supply system is fine for most cases but, you should consider scrapping it for your own supply system via triggers and use it todo all the fancy things you want. Then, you force the real supply in game to constantly mimic yours for the GUI.
If the only units that are changed like that are created by trigger, then you can duplicate the Stalker unit to create a "Stalker with Marine cost". Then set your trigger so that it creates that second type of unit, rather than the normal one. Warp gates will still produce the standard stalker, but your trigger won't.
So I want to alter the costs of a specific unit rather than a unit type so that triggers that later call on that unit receive that value. So my 50 mineral 1 supply stalker would be included with a trigger that is something like "Get all units that cost 50 minerals" or "Get all units that cost 1 supply", etc.
@Telenil: Go
Yeah I'm trying to avoid having to make a data copy of every unit as well as change my triggers to spawn specific copy units rather than the unit they are copying.