Hey guys, been looking for a while after how to make a unit gain an income. For instance, if i build a command center, i want it to gain 10 minerals every 5 seconds, how do i do this?
Make an Effect of type "Modify Player", named "Command Center Income" and set the minerals in its "Resources" field to 10.
Now, make a Behavior of type "Buff", named "Command Center Income" too, set its "Period" field to 5 (time for each period), its "Effect - Period" to the "Command Centre Income" effect we've made.
Go to the Command Center unit and add the "Command Center Income" behavior we've just created to its "Behaviors" field.
That should make your command centers provide a steady flow of income. I might have skipped something since I don't have the editor here but that should be roughly what needs to be done.
P.S.: Is it worrying that I'm beginning to memorise these steps by heart now? :P
I'm doing a 3v3 map.
There will be 3 "income" buildings that will generate income to all players in the team who own them. In other words "shared" income.
Part1:
Lets say 20 minerals (for each teammate) every 10 second for each "income building" alive.
If a building is killed the income is lost for that building.
Part2:
Any team member should be able to rebuild the same building on the same spot with a special worker unit.
If the building is remade the income should be restored.
How can i make all this in a smart way with maybe possibility's to "upgrade" the income buildings to generate even more income.
Use a trigger to give the income to all the players of a team when a dummy effect owned by one of them occurs, which the building makes similar to what has already been said. As the building upgrades it used a different behaviour + dummy effect.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I to had the same question and I tried what you said creating an effect and then a behavior and it didn't work I got ingame to test it and it had the behavior icon reading what it is City Income but I did not get any income?
I did look into that as well I came out making an extractor behavior copied from the original with the right tweaks but it didn't work when I got in game.
maybe a better detailed effect? idk what do you think?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey guys, been looking for a while after how to make a unit gain an income. For instance, if i build a command center, i want it to gain 10 minerals every 5 seconds, how do i do this?
Make an Effect of type "Modify Player", named "Command Center Income" and set the minerals in its "Resources" field to 10.
Now, make a Behavior of type "Buff", named "Command Center Income" too, set its "Period" field to 5 (time for each period), its "Effect - Period" to the "Command Centre Income" effect we've made.
Go to the Command Center unit and add the "Command Center Income" behavior we've just created to its "Behaviors" field.
That should make your command centers provide a steady flow of income. I might have skipped something since I don't have the editor here but that should be roughly what needs to be done.
P.S.: Is it worrying that I'm beginning to memorise these steps by heart now? :P
I'm doing a 3v3 map. There will be 3 "income" buildings that will generate income to all players in the team who own them. In other words "shared" income.
Part1: Lets say 20 minerals (for each teammate) every 10 second for each "income building" alive.
If a building is killed the income is lost for that building.
Part2: Any team member should be able to rebuild the same building on the same spot with a special worker unit.
If the building is remade the income should be restored.
How can i make all this in a smart way with maybe possibility's to "upgrade" the income buildings to generate even more income.
Thanks for the post, Klishu.
Use a trigger to give the income to all the players of a team when a dummy effect owned by one of them occurs, which the building makes similar to what has already been said. As the building upgrades it used a different behaviour + dummy effect.
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 to had the same question and I tried what you said creating an effect and then a behavior and it didn't work I got ingame to test it and it had the behavior icon reading what it is City Income but I did not get any income?
It may be worth looking at the Automated Refinery/Extractor structures as they generate resources via Behaviours and/or Effects.
I did look into that as well I came out making an extractor behavior copied from the original with the right tweaks but it didn't work when I got in game. maybe a better detailed effect? idk what do you think?