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 :)
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?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
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 :)
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?