Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Adding game modes on Diplo map
Adding game modes on Diplo map
Oct 11 2021, 2:00 am
By: Henderson  

Oct 11 2021, 2:00 am Henderson Post #1



Hello,

I have been struggling to add 5 game modes onto this map (map is attached).

The game modes I would like to add is: #1. random select, #2. FFA #3. 3v3 select, #4. 2v2 select & #5. manual select

If anyone can please edit the map to have these modes in map or offer help/advise. Thanks!

Attachments:
Diplo Middle East 2.35 FINAL.scx
Hits: 0 Size: 407.03kb

Post has been edited 1 time(s), last time on Oct 11 2021, 2:17 am by Henderson.



None.

Oct 11 2021, 8:56 am NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Hello. :)

Nobody will create your map for you. But we will help you understand what you have to do. Assuming you want fixed alliances (no backstabbing) the system could go as follows:

The first player will get a civ for the initial choice:

P: Player Force
C: Always
A: Give all civ at chooser from P12 to player force

The choices could be realized by beacons with a location and a neutral unit whose names are the name of the mode. Save the result in death counter "Mode".


Player chooses 2v2, 3v3 or manual mode:
If "Mode" is either 3, 4 or 5, Player force gets 1 chooser at the team select location. Same principle: A beacon per Team, with a location and a unit named after team number. Setting teams:

P: Player Force
C: Current Player brings 1 civ to "Team 1"
A: Set death counter "Teams" to 1 for Current Player
A: Remove civ

P: Player Force
C: Current Player brings 1 civ to "Team 2"
A: Set death counter "Teams" to 2 for Current Player
A: Remove civ

Add restrictions to your heart's content so not everyone can join the same team.


Player chooses random mode:
Assuming there's a free CPU player in slot 8 and only 2 possible teams. Those assumptions make the triggers really simple but other solutions exist if they are wrong.

So what I do here is I set everyone to be in Team 1, and randomize a switch. Immediately after, I put them in Team 2 if their switch is set (they remain in Team 1 if the switch is cleared). Since the trigger is set up for the player force every player will run an independent copy of it.

P: Player Force
C: Player 8 has suffered exactly 1 death of "Mode"
A: Randomize Switch 1
A: Set "Teams" to 1 for Current Player

P: Player Force
C: CPU player has suffered exactly 1 death of "Mode"
C: Switch 1 is set
A: Add 1 to "Teams" for Current Player

Note that all of the triggers shown so far must not be preserved to function as intended.


Player chooses ffa mode:
As far as I understand the only mode with no enforced teams, so we don't need to do anything.
If you want to prevent manual alliances, just set everyone to be foes with player force and preserve. Condition would be Teams=0.





Now that the teams have been assigned it's just the matter of enforcing them. It'll look like this:
x = Every possible player number

P: Player Force
C: Current Player has suffered exactly 1 deaths of Teams
C: Player x has suffered exactly 2 deaths of Teams
A: Set Player x as enemy
A: Preserve

P: Player Force
C: Current Player has suffered exactly 2 deaths of Teams
C: Player x has suffered exactly 1 deaths of Teams
A: Set Player x as enemy
A: Preserve

P: Player Force
C: Current Player has suffered exactly 1 deaths of Teams
C: Player x has suffered exactly 1 deaths of Teams
A: Set Player x as ally
A: Preserve

P: Player Force
C: Current Player has suffered exactly 2 deaths of Teams
C: Player x has suffered exactly 2 deaths of Teams
A: Set Player x as ally
A: Preserve

Keep in mind that all of the above is just a quick mock-up and may contain bugs. Pay attention to trigger order, player/force numbers etc. as I did use some mapping tricks to keep trigger count low and logic obvious so it's recommended that you do use them as a starting point. But to make them work properly you'll most likely have to expand on them, so don't treat the triggers as a ready-to-go solution.




Oct 11 2021, 4:21 pm Dem0n Post #3

ᕕ( ᐛ )ᕗ

I offered a similar solution that was simplified so as to not require as many triggers. In my solution, you have two forces and divide the six players between them. That means that by default 3v3 or 2v2 (if there's only four players) is enabled. Then, when the game starts, the host chooses team mode or FFA. If he selects team mode, no changes need to be made, but if he selects FFA, run a trigger where everyone becomes unallied. Then, you can run your triggers to choose manual or random select for the countries.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Roy, Vrael, NudeRaider