So, I recently started working on my first serious project; a They Are Billions inspired map. I've got most of the data editing done and working, but I've hit a bit of a roadblock.
In They Are Billions, money is generated by housing periodically, and I wish to do the same in my map, using Colonist Huts. I know that the Automated Refinery behaviour does this for Vespene Gas, but I'm not trying to use Vespene here - Is there a way to alter the behavior (or a copy of it) to provide Minerals instead?
i would create a new behavior that acts like the one on the Automated Refinery, but uses the modify player effect to give the owning player minerals as a periodic effect, now the units with this behavior would produce the minerals every period, but i dont know if its possible to synch them to world time allowing them all to produce minerals at the same time every period interval.
you would need a modify player effect that gives minerals with the Effect:resources field then you would add it to a behavior with infinite (-1 ) periods as a periodic effect, then set the Stats: Period Field to the length of time you want ( i believe this is counted in seconds). you can also when finishing set a flag on the behavior to be invisible if you like.
sorry im thinking like some one with more experience....i am terrible at teaching but i can make a demonstration map much easier... i will edit this post with a link to the map hosted some where, sorry.
here is a Demonstration map i hope it can be of some help. the idea of the map is to use the SCV to build supply depots that in turn generate 10 minerals every few seconds.
Also feel free to drop by the Maspter Discord if you like. others there may be able to help better than my self.
Open the data editor (little marine icon at the top of the terrain editor. Press the green + tab to open other data types. Find the Effects and Behaviours data type. Right click the upper left window to add a new effect/behaviour. Make sure you create the right type. Make a Buff type behaviour and a Modify Player type effect. From there try and follow what has already been said. You then add that behaviour to your unit under the Units data type in the Behavior: Behaviors - Behavior field.
So, I recently started working on my first serious project; a They Are Billions inspired map. I've got most of the data editing done and working, but I've hit a bit of a roadblock.
In They Are Billions, money is generated by housing periodically, and I wish to do the same in my map, using Colonist Huts. I know that the Automated Refinery behaviour does this for Vespene Gas, but I'm not trying to use Vespene here - Is there a way to alter the behavior (or a copy of it) to provide Minerals instead?
Or could I use triggering instead in some way?
i would create a new behavior that acts like the one on the Automated Refinery, but uses the modify player effect to give the owning player minerals as a periodic effect, now the units with this behavior would produce the minerals every period, but i dont know if its possible to synch them to world time allowing them all to produce minerals at the same time every period interval.
How might I go about doing that? This isn't my first time toying around with data, but it is my first time making behaviors.
you would need a modify player effect that gives minerals with the Effect:resources field then you would add it to a behavior with infinite (-1 ) periods as a periodic effect, then set the Stats: Period Field to the length of time you want ( i believe this is counted in seconds). you can also when finishing set a flag on the behavior to be invisible if you like.
I... what?
sorry im thinking like some one with more experience....i am terrible at teaching but i can make a demonstration map much easier... i will edit this post with a link to the map hosted some where, sorry.
here is a Demonstration map i hope it can be of some help. the idea of the map is to use the SCV to build supply depots that in turn generate 10 minerals every few seconds.
Also feel free to drop by the Maspter Discord if you like. others there may be able to help better than my self.
I've been there before. Twice. I don't mesh so well with some of the folks there, so I left.
Open the data editor (little marine icon at the top of the terrain editor. Press the green + tab to open other data types. Find the Effects and Behaviours data type. Right click the upper left window to add a new effect/behaviour. Make sure you create the right type. Make a Buff type behaviour and a Modify Player type effect. From there try and follow what has already been said. You then add that behaviour to your unit under the Units data type in the Behavior: Behaviors - Behavior field.
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
It's already been done, but thanks.