Staredit Network > Forums > SC2 General Discussion > Topic: base swap between players. Need trigger help.
base swap between players. Need trigger help.
Dec 17 2013, 8:26 am
By: hobbes  

Dec 17 2013, 8:26 am hobbes Post #1



i'm working on a broodwar map for FFA purposes, but with triggers. These triggers will swap players' units and bases at different intervals in the game. Thanks to the good people here at staredit, i managed to get the map working. Though the map works and is playable, there are limitations due to the editor and broodwar's ol' engine. Now I'd like to make an sc2 version, but the trigger system is so intimidating. I can do basic things with it, but i just don't know where to start with this.

I'd like to ask your help.

The concept:

-The map will be a standard melee style map to be played in Free For all format. Every 3 minutes or so , your units and base will be swapped with someone elses.
-The swap occurs for every player, so each player finds himself with a new base and a new army.
-After you've played with everyone's base, you'll eventually play your original army/base again.
-Minerals/gas gathered should not transfer over: resources gathered with base A remain with base A even when you swap over to base B (then you get base B's gathered resources).
-Same rule above applies should apply to researches and upgrades as well.
-Just like in melee, when you lose all your buildings, you are out. However I would like to give the option of observer mode to the defeated players.
-The victor is not determined by the last man standing, but by a score system rewarding the players who build/expand/fight/etc. This is to prevent gimmicky strategies, such as killing off your own army and most of your base just before the swap timer hits 0, then swapping over to someone who has an army and simply kill off the remainder of that base.


Any help with the triggers would be much appreciated. I think this could make for a fun melee style arcade map.



None.

Dec 17 2013, 12:59 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

SC2's triggers are event based opposing to SCBW only having periodic triggers. That means that you always start with an event, then filter for conditions (to check for example the triggering player, triggering unit's unit type, etc), if required, and execute the actions you want to do.

1. To give units to different players, you change the owner of each unit:
For each unit VAR in (Any units in (Whole Map) excluding ...)
- change owner of (VAR) to ...

2. You need to detect the defeat conditions yourself. That means, after each death of a unit that is a structure, you need to check if there are more structures for the player on the map that prevent defeat. Beware that there are structures that don't prevent that like creep turmors. These structures have the "Prevent Defeat" flag set in their unit flags in data. You can check it using the catalog field value function or list the unit types directly.
Also, I'm not sure if the base revealing mechanic still works then or if you need to trigger that, too.

3. When the game ends (= at most one player has structures left), you should compare the score system should be determine the winner.

4. SC2 has no direct way to make someone spectate. So, altering the alliance settings with the remaining players and giving the remaining units to hostile or killing those, should suffice.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
Please log in to shout.


Members Online: Roy, jun3hong