Hi! I was wondering if you could he,lp me with this..? Well what i want to to is have Cities all over the map that need to have a supply depo or ANY srtucture next to them to be award money every 4 minutes or so... Was wondering if you could help me do this With regions?
General - If (Conditions) then do (Actions) else do (Actions)
If
playerAwarded == false
((Picked unit) is in (Region((Position of ([Money Giving Building])), 5.0))) == true
Then
Player - Modify player 1 Minerals: Add 1500
Variable - Set playerAwarded = true
Else
Variable - Set playerAwarded = false
At this part Im stuck I cant fwr the playerawarded == false in there and picked unit is in region
Events Periodic Event - Every 45 seconds of game time Local Variables playerAwarded = false <Boolean> Conditions Actions Player Group - Pick each player in (All Players and do (Actions) Actions Unit Group - Pick each unit in (Any units in (Entire Map) owned by player (Picked Player) matching Required: Structure; Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions) Actions General - If (Conditions) then do (Actions) else do (Actions) If playerAwarded == false ((Picked unit) is in (Region((Position of ([Money Giving Building])), 5.0))) == true Then Player - Modify player 1 Minerals: Add 1500 Variable - Set playerAwarded = true Else Variable - Set playerAwarded = false
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.
Do i Do custom script for the False and True parts?
Yes imlearning i no im taking a big task lol thaats way over my skills i currently have now lol but im here asking for help :D No i Simplyjust want A STRUCTure not multiple ones just one built near a city ... but i think i mighgt use ^^ Array tuorial for this sounds like it might actually work... And with the If Then Else I cant type, out anything in there... when i double click nothing happens if you could look back to the last trigger code abion gave me you'll know what im talkin about
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 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)
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
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
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
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
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
0
Anybody?
0
Hi! I was wondering if you could he,lp me with this..? Well what i want to to is have Cities all over the map that need to have a supply depo or ANY srtucture next to them to be award money every 4 minutes or so... Was wondering if you could help me do this With regions?
0
General - If (Conditions) then do (Actions) else do (Actions) If playerAwarded == false ((Picked unit) is in (Region((Position of ([Money Giving Building])), 5.0))) == true Then Player - Modify player 1 Minerals: Add 1500 Variable - Set playerAwarded = true Else Variable - Set playerAwarded = false
At this part Im stuck I cant fwr the playerawarded == false in there and picked unit is in region
0
Do i Do custom script for the False and True parts?
0
Yes imlearning i no im taking a big task lol thaats way over my skills i currently have now lol but im here asking for help :D No i Simplyjust want A STRUCTure not multiple ones just one built near a city ... but i think i mighgt use ^^ Array tuorial for this sounds like it might actually work... And with the If Then Else I cant type, out anything in there... when i double click nothing happens if you could look back to the last trigger code abion gave me you'll know what im talkin about
0
@SouLCarveRR: Go
1.) Only one player can be awarded. 2.) No we cleared this isssue already
Can you link me to your tutorial? please
@Abion47
When i get to the If then Else part it wont let me change anything to them it just stays balnk? what do i do
0
So can anyone help me...?
0
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?
0
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)
0
@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
0
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
0
Thank anyways though appreciate
0
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
0
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
0
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