Greetings,
Since I'm absolutely no pro in the galaxy editor I was unable to create a passive ability which gives a certain player minerals from time to time. I just could not find an appropriate option for this.
And if there is a way, can you display the number of given minerals above the unit?
Note that I want to do it via data, not trigger.
Thanks,
Anarcy
There is an effect type in the data editor called modify player, add it to an behavior that give the unit as an periodic effect and set the period to whatever time interval you want.
Good of you to want to make it via Data since that is the way it should be done.
Create an effect of type "Modify Player" which we'll call "Give Passive Resources". Now, for this effect, set the Resources field to the values you want (eg. set Minerals to 5, if you want to increase by 5 minerals each time).
Now, create a behavior of type "Buff" which we'll call "Passive Resources". For this behavior set the Effect - Period field to "Give Passive Resources". Set the Period Duration field to the time you want between each Resource gain (eg. Set this to 10, and resources will be given every 10 seconds).
Your last step is to give this behavior to the units you want that will passively acquire resources. You do this by finding the appropriate unit type under the Units tab. Add the "Passive Resources" behavior to the behavior field and you're done.
To add a visual to the effect you'll need to look into Actors. See how Blizzard did it for the Automated Refinaries.
P.S.: I didn't have the editor here so the field names may be slightly inaccurate.
Greetings, Since I'm absolutely no pro in the galaxy editor I was unable to create a passive ability which gives a certain player minerals from time to time. I just could not find an appropriate option for this. And if there is a way, can you display the number of given minerals above the unit? Note that I want to do it via data, not trigger. Thanks, Anarcy
There is an effect type in the data editor called modify player, add it to an behavior that give the unit as an periodic effect and set the period to whatever time interval you want.
Good of you to want to make it via Data since that is the way it should be done.
Create an effect of type "Modify Player" which we'll call "Give Passive Resources". Now, for this effect, set the Resources field to the values you want (eg. set Minerals to 5, if you want to increase by 5 minerals each time).
Now, create a behavior of type "Buff" which we'll call "Passive Resources". For this behavior set the Effect - Period field to "Give Passive Resources". Set the Period Duration field to the time you want between each Resource gain (eg. Set this to 10, and resources will be given every 10 seconds).
Your last step is to give this behavior to the units you want that will passively acquire resources. You do this by finding the appropriate unit type under the Units tab. Add the "Passive Resources" behavior to the behavior field and you're done.
To add a visual to the effect you'll need to look into Actors. See how Blizzard did it for the Automated Refinaries.
P.S.: I didn't have the editor here so the field names may be slightly inaccurate.
Thank you, it worked. I don't know what I got wrong in the first place, but following your description worked just fine.