Hi so I'm trying to figure out how to have a struture such ass a statue give you minerals when you have a structure built next to it. for example a supply depot
Every 5 seconds we'd pick every Supply Depot in a circular area (with radius of 5) around our Money Building. And for each Depot we increase the mineral count of the owner of this unit by 10.
Thanks this is a bit useful But i was thinking minerals around every 3 or 4 mins im going to be using a structure representing a city and i want minerals coming in every 3-4 mins for every city you have capture with a supply depo occupying it Would your suggestion need any other modifcations to it?
This is a Periodic Event, an event which fires the action every X amount of seconds (in this case, 5 sec).
Now, his action is a bit complicated:
Action:
Unit Group - Pick each unit in (Supply Depot units in (Region((Position of (Our Money Giving Building)), 5.0)) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)Action: Player - Modify player (Owner of (Picked unit)) Minerals: Add 10
This code basically Picks every unit that is a Supply Depot in the region around your Money-giving building (radius of 5), and does the action which modifies the mineral of the owner of the supply depot by +10.
~~~~~~~~~~~~~~~~~~~~~~
The first modification you have to make is to change the seconds of the Periodic Event. Change it to 180 for 3 minutes and 240 if you want 4 minutes. Remember it's Game Time, not Real Time. Game Time is every second of the game (game speed can be adjusted), shown bottom left corner, while real time is every real life second time.
I don't get what you mean by the second half of your description, so if you could elaborate i can help.
Like Say the structure you have your supply depo around represents a city and by having this gives you X monney so if you had 2 cities you get 2(x) monney
but different cities will have different values ofc I dont want the money you get determines by how many supply depos you have around the city? is that clear O.o i hope so haha
It sounds pretty complicated. How about just changing the owner and color of the city to whichever player conquers the city? I can write a trigger for you to do that if you want me to. But if that will affect the gameplay of your map, I can still try and do ur original idea.
If you could do that , that would be so help ful thank you if i did it by conquering people could just hit and run on cities easily and would make the game very hectic
If you could do that , that would be so help ful thank you if i did it by conquering people could just hit and run on cities easily and would make the game very hectic
Made a test map for you. Just steal the triggers. Go open it and press CTRL + F9 to test it in-game, and tell me if you want to change anything.
Here's my test for it:
1. Don't move marauders at all
2. Ultralisk will enter Beacon while trying to attack second marauder. Shows that units are vulnerable and might die when capturing.
3. After Ultralisks captures, type "dt" to spawn a Beast Slayer.
4. Use BS to kill Ultralisk and re-capture your ultralisk.
5. Notice that your income will then be restored
Obviously, I didn't really test it with 2 players and there might still be a lot of bugs, so feel free to ask me to fix any bugs you discover.
Well i do appreciate it, its not what im looking for have you ever played the diplomacy 7.7 gold on sc bw? thats the effect im trying to look for if you ever played it
Well i do appreciate it, its not what im looking for have you ever played the diplomacy 7.7 gold on sc bw? thats the effect im trying to look for if you ever played it
I've never played BW, so I can't help you with that. Maybe someone who has played that map can help you. Try PMing mods or people with high posts, or just wait for someone to help you I guess
Yeah, it would help if you could be more specific as to what you want your trigger to do. If you just want to award minerals based on supply depots around each city, the above example would work fine.
No i would not like to have minerals awarded based on supply depos around the city i would like minerals awarded to the player that has a supply depot or any building near the city such 1400 mins
I think I get what he means now. If a player has any building near the city, he will be awarded minerals. Amount of buildings doesn't matter. I'm not at my PC right now so I can't help you ATM.
YES! EXACTLY! lol sorryfor not being any clearer earlier but if you could help me out now lol i would be so glad... haha i been searching through the triggers trying to find something usefull that might help me no luck... everything is so complicated haha
So i figured out a trigger for this to work but i would still likle to see what you can do if thats fine with you my question nwo is how do i apply it to the structure (city)
I used
Event: periodic event | Every 5 seconds of game time
Condition: Withing bounds | 1 - 2
Action : Set player property| award 100 mins
How do I apply this to The structures i will be using?
Hi so I'm trying to figure out how to have a struture such ass a statue give you minerals when you have a structure built next to it. for example a supply depot
I'd use a periodic trigger for that.
Every 5 seconds we'd pick every Supply Depot in a circular area (with radius of 5) around our Money Building. And for each Depot we increase the mineral count of the owner of this unit by 10.
Thanks this is a bit useful But i was thinking minerals around every 3 or 4 mins im going to be using a structure representing a city and i want minerals coming in every 3-4 mins for every city you have capture with a supply depo occupying it Would your suggestion need any other modifcations to it?
Yes, it would need modifications.
Take a look at his code first
Event: Event: Every 5.0 seconds of Game Time
This is a Periodic Event, an event which fires the action every X amount of seconds (in this case, 5 sec).
Now, his action is a bit complicated:
Action: Unit Group - Pick each unit in (Supply Depot units in (Region((Position of (Our Money Giving Building)), 5.0)) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions) Action: Player - Modify player (Owner of (Picked unit)) Minerals: Add 10
This code basically Picks every unit that is a Supply Depot in the region around your Money-giving building (radius of 5), and does the action which modifies the mineral of the owner of the supply depot by +10.
~~~~~~~~~~~~~~~~~~~~~~
The first modification you have to make is to change the seconds of the Periodic Event. Change it to 180 for 3 minutes and 240 if you want 4 minutes. Remember it's Game Time, not Real Time. Game Time is every second of the game (game speed can be adjusted), shown bottom left corner, while real time is every real life second time.
I don't get what you mean by the second half of your description, so if you could elaborate i can help.
Like Say the structure you have your supply depo around represents a city and by having this gives you X monney so if you had 2 cities you get 2(x) monney but different cities will have different values ofc I dont want the money you get determines by how many supply depos you have around the city? is that clear O.o i hope so haha
@NoXiOuSMoB: Go
It sounds pretty complicated. How about just changing the owner and color of the city to whichever player conquers the city? I can write a trigger for you to do that if you want me to. But if that will affect the gameplay of your map, I can still try and do ur original idea.
If you could do that , that would be so help ful thank you if i did it by conquering people could just hit and run on cities easily and would make the game very hectic
Made a test map for you. Just steal the triggers. Go open it and press CTRL + F9 to test it in-game, and tell me if you want to change anything.
Here's my test for it: 1. Don't move marauders at all 2. Ultralisk will enter Beacon while trying to attack second marauder. Shows that units are vulnerable and might die when capturing. 3. After Ultralisks captures, type "dt" to spawn a Beast Slayer. 4. Use BS to kill Ultralisk and re-capture your ultralisk. 5. Notice that your income will then be restored
Obviously, I didn't really test it with 2 players and there might still be a lot of bugs, so feel free to ask me to fix any bugs you discover.
Well i do appreciate it, its not what im looking for have you ever played the diplomacy 7.7 gold on sc bw? thats the effect im trying to look for if you ever played it
I've never played BW, so I can't help you with that. Maybe someone who has played that map can help you. Try PMing mods or people with high posts, or just wait for someone to help you I guess
@NoXiOuSMoB: Go
Yeah, it would help if you could be more specific as to what you want your trigger to do. If you just want to award minerals based on supply depots around each city, the above example would work fine.
Thank anyways though appreciate
No i would not like to have minerals awarded based on supply depos around the city i would like minerals awarded to the player that has a supply depot or any building near the city such 1400 mins
I think I get what he means now. If a player has any building near the city, he will be awarded minerals. Amount of buildings doesn't matter. I'm not at my PC right now so I can't help you ATM.
@kenxftw: Go
YES! EXACTLY! lol sorryfor not being any clearer earlier but if you could help me out now lol i would be so glad... haha i been searching through the triggers trying to find something usefull that might help me no luck... everything is so complicated haha
So i figured out a trigger for this to work but i would still likle to see what you can do if thats fine with you my question nwo is how do i apply it to the structure (city)
I used Event: periodic event | Every 5 seconds of game time Condition: Withing bounds | 1 - 2 Action : Set player property| award 100 mins How do I apply this to The structures i will be using?
So can anyone help me...?
Try this:
This code will only work for one building, so if you have more than one statue, you will have to run it once for every statue.
@Abion47: Go
His code is only for supply depots, so if you want it to be any buildling, make it any unit and exclude everything except structures