Hey everyone,
So I imagine someone before me has already asked this, but I was wondering how to make the automated refinery harvest vespene without needing a geyser that gives it a starting resource (I've made it so that you can place the automated refinery anywhere, but it never harvests any gas or show the timer). (Really what I'm looking for is a way to make the automated refinery in Squad TD).
Hey everyone, So I imagine someone before me has already asked this, but I was wondering how to make the automated refinery harvest vespene without needing a geyser that gives it a starting resource (I've made it so that you can place the automated refinery anywhere, but it never harvests any gas or show the timer). (Really what I'm looking for is a way to make the automated refinery in Squad TD).
You could add a behavior to the refinery which adds vespene to its owner in an interval. Would that solve your problem?
I attempted this and it did not work.
This should not be a problem at all
create a neweffect - effect type -> modify player change 'resources' to the amount of vespene you would gain each period
Create a behavior -> type buff: improtant fields of the bahavior are
- duration - -1 (= forever) - period - which ever time you want in seconds - effect - periodic add an your created effect
now add the behavior to the refinery select the structure in the units tab and look for the behavior - behaiors+ field
somewhere in these steps you might have made a mistake.
Refineries under the Units data type have a build upon field called Behavior: Built On.
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
I tried what you said IcyJay and it worked fine. Thanks for the help!