Me thinks to truely answer his question he needs to re-define exactly what he wants to be done.
Questions for the question asker.
Can only one player be rewarded for having buildings near the city? (this player being the owner of the city)
Is there a set ammount that the city rewards the owning player? Or is it possible to be rewarded a varring ammount depending on the buildings located around the city?
Why are you giving rewards based on buildings around a city when you can just use a Variable Array to dictate the owner and worth of a city, therefore avoiding the need to check for buildings near the city?
In my sig is a tutorial for "region Arrays" in this i slightly cover how to go about implementing arrays to track ownership of regions and giving money periodically to the owners of said regions. Also the tutorial covers aquiring and losing ownership of said regions.... Region = City basically.
Lets pretend the korhal flag is the unit that you would build to conquer a state.
How about you just make it so that whenever a flag is built near the vacinity of a state/city, the state building becomes yours (unless there is already a flag there, indicating it belongs to another, so it needs to first be destroyed along with all defenses in the region), and then income is dispersed by looking up how many states you have accumulated multiplied by the income value.
This should be easy to implement, if not, you need to hang around here more and learn a ton more than you already have. Because in order to make a good modernized version of Diplomacy for SC2, you're gonna need a lot of knowledge. The basic mechanics of the game are the easy part. This is the kind of map that will benefit greatly from some sort of bank-assisted ladder, GUI (especially for formation of alliances), etc. Basically, all the features that would add to the game without taking away from the team-based competitiveness of the game.
Best of luck to your journey, plenty of people around here willing to help you get up to pace.
Hi , can any one maybe assist me with a problem i have,
i build a map in sc2 map editor with 4 players in 2 teams
1 player (the user) against 3 players (computer)
but as soon as i take one shot at a building or take the first building out the current attaced player wants to
surrender, i did set up difficult settings in map properties and defined player teams.
please any assistance to make the map a bid harder.
Thanx
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
try using Ctrl+W while highlighting parts of the if-then-else statement, it should open up menus to select conditions, and you add actions into the "then" section like you would inside a trigger body.
If you would rather not use Ctrl+W (New Element), you just have to make sure you understand what type of stuff goes into each section. Under the "if" part its a condition element, and under then/else its an action (ex: you could nest another if-then-else inside).
Logic programming isn't for the feint of heart, hopefully you already know how if-then-else statements work in general.
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?
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
@kenxftw: Go
Updated my example to include this. IMHO it would be simpler to just require structures than to exclude everything else.
Me thinks to truely answer his question he needs to re-define exactly what he wants to be done.
Questions for the question asker.
In my sig is a tutorial for "region Arrays" in this i slightly cover how to go about implementing arrays to track ownership of regions and giving money periodically to the owners of said regions. Also the tutorial covers aquiring and losing ownership of said regions.... Region = City basically.
@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
Like he said, the tutorial is linked in his signature. Click the {Region Arrays} - link in his signature (or here)
I don't understand your problem with the if/then/else, could you elaborate?
Lets pretend the korhal flag is the unit that you would build to conquer a state.
How about you just make it so that whenever a flag is built near the vacinity of a state/city, the state building becomes yours (unless there is already a flag there, indicating it belongs to another, so it needs to first be destroyed along with all defenses in the region), and then income is dispersed by looking up how many states you have accumulated multiplied by the income value.
This should be easy to implement, if not, you need to hang around here more and learn a ton more than you already have. Because in order to make a good modernized version of Diplomacy for SC2, you're gonna need a lot of knowledge. The basic mechanics of the game are the easy part. This is the kind of map that will benefit greatly from some sort of bank-assisted ladder, GUI (especially for formation of alliances), etc. Basically, all the features that would add to the game without taking away from the team-based competitiveness of the game.
Best of luck to your journey, plenty of people around here willing to help you get up to pace.
Hi , can any one maybe assist me with a problem i have, i build a map in sc2 map editor with 4 players in 2 teams 1 player (the user) against 3 players (computer) but as soon as i take one shot at a building or take the first building out the current attaced player wants to surrender, i did set up difficult settings in map properties and defined player teams. please any assistance to make the map a bid harder. Thanx
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
@NoXiOuSMoB: Go
try using Ctrl+W while highlighting parts of the if-then-else statement, it should open up menus to select conditions, and you add actions into the "then" section like you would inside a trigger body.
If you would rather not use Ctrl+W (New Element), you just have to make sure you understand what type of stuff goes into each section. Under the "if" part its a condition element, and under then/else its an action (ex: you could nest another if-then-else inside).
Logic programming isn't for the feint of heart, hopefully you already know how if-then-else statements work in general.
Do i Do custom script for the False and True parts?
@NoXiOuSMoB: Go
There should be a checkbox
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
Anybody?