Hello Everyone,
I've been trying to figure this out for a while and it's got me stumped.
Essentially what I want is to have 2 or more different types of supplies for different units, so for example a supply for infantry and a separate supply for vehicles, or what ever I end up using it for.
maybe use custom resource? maybe you could start the game with a certain amount of custom resource and have the vehicles use up some of the resource and when they die they replenish the resources they used?
well you can set the starting custom resources from the "races" tab in the data editor. what i can think of for using the data editor may be irritating due to lots of work, but.... essentially using up the custom resource would just mean setting the cost for your vehicles to consume a certain amount of custom resource, no problem there. to get them to give it back on death... well making a behavior that has a "modify player" effect put in its "effect: effect-final" that modifies the player's custom resources by a positive amount. this would probably mean making specific buffs for each custom resource "supply" cost and their corresponding modify player amounts. after doing all that, all you would have to do is give specific units their individual "replenish supply" buff.
for example: you have a unit that uses 3 custom resource supply. its buff would have the "effect-final" have a modify player effect that would have the value of '3' in the custom resource section of either the effect: resources+ or the effect: resources gathered+ (one of them should work properly). then of course making different buffs with different values for the custom resource modification for each "supply" cost. lot of repetitive work, but it should work all right. there may be a simpler way of doing this, but this should do just fine :)
Hello Everyone, I've been trying to figure this out for a while and it's got me stumped.
Essentially what I want is to have 2 or more different types of supplies for different units, so for example a supply for infantry and a separate supply for vehicles, or what ever I end up using it for.
maybe use custom resource? maybe you could start the game with a certain amount of custom resource and have the vehicles use up some of the resource and when they die they replenish the resources they used?
would there be a way to do that in data... or would I need an on death trigger...
well you can set the starting custom resources from the "races" tab in the data editor. what i can think of for using the data editor may be irritating due to lots of work, but.... essentially using up the custom resource would just mean setting the cost for your vehicles to consume a certain amount of custom resource, no problem there. to get them to give it back on death... well making a behavior that has a "modify player" effect put in its "effect: effect-final" that modifies the player's custom resources by a positive amount. this would probably mean making specific buffs for each custom resource "supply" cost and their corresponding modify player amounts. after doing all that, all you would have to do is give specific units their individual "replenish supply" buff.
for example: you have a unit that uses 3 custom resource supply. its buff would have the "effect-final" have a modify player effect that would have the value of '3' in the custom resource section of either the effect: resources+ or the effect: resources gathered+ (one of them should work properly). then of course making different buffs with different values for the custom resource modification for each "supply" cost. lot of repetitive work, but it should work all right. there may be a simpler way of doing this, but this should do just fine :)
Or you could have a hidden unit that has counter buff stacks that the requirements use which gains buff stacks for each supply structure you have
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
huh that's an interesting idea, I haven't worked with the interface mutch so I'd have to figure out a way to display it to the player
Use triggers to have a leaderboard.
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