Staredit Network > Forums > Staredit Network > Topic: Command Center + Comsat Addon
Command Center + Comsat Addon
Feb 6 2024, 11:54 am
By: Tonblader  

Feb 6 2024, 11:54 am Tonblader Post #1



Made with Starcraft Broodwar 1.16.1 - ScmDraft 2.0 (Beta 0.9.10)

Is it possible to change control of the comsat to another player, after using the switch it to another player trick before without removing or killing them? (do I need some kind of nifty upgrade)



Go to these detonators to see the process.

Quote
Trigger("Player 7"){
Conditions:
Deaths("Current Player", "Right Upper Level Door", Exactly, 1);
Switch("P_CC+Comsat1A", Set);
Switch("P1_Building", Set);
Switch("P2_Army", Set);

Actions:
Comment("P7 Right Upper Level Door DC -- 1 \r\nP2 Crea CC Lifted , Remueve CC Lifted \r\nP1 Crea CC ");
Move Unit("All players", "Men", All, "P_CC1A", "P_CC+Comsat1A");
; Give Units to Player("All players", "Player 2", "Terran Comsat Station", All, "P_CC+Comsat1A");
Remove Unit At Location("All players", "Terran Comsat Station", All, "P_CC+Comsat1A");
Create Unit with Properties("Player 2", "Terran Comsat Station", 1, "P_CC+Comsat1A", 2);
Create Unit with Properties("Player 2", "Terran Command Center", 1, "P_CC1A", 1);
Remove Unit At Location("Player 2", "Terran Command Center", All, "P_CC1A");
Create Unit("Player 1", "Terran Command Center", 1, "P_CC1A");
Preserve Trigger();
}

Quote
Trigger("Player 7"){
Conditions:
Deaths("Current Player", "Right Upper Level Door", Exactly, 1);
Switch("P_CC+Comsat1A", Set);
Switch("P2_Building", Set);
Switch("P1_Army", Set);

Actions:
Comment("P7 Right Upper Level Door DC -- 1 \r\nP1 Crea CC Lifted , Remueve CC Lifted \r\nP2 Crea CC ");
Move Unit("All players", "Men", All, "P_CC1A", "P_CC+Comsat1A");
; Give Units to Player("All players", "Player 1", "Terran Comsat Station", All, "P_CC+Comsat1A");
Remove Unit At Location("All players", "Terran Comsat Station", All, "P_CC+Comsat1A");
Create Unit with Properties("Player 1", "Terran Comsat Station", 1, "P_CC+Comsat1A", 2);
Create Unit with Properties("Player 1", "Terran Command Center", 1, "P_CC1A", 1);
Remove Unit At Location("Player 1", "Terran Command Center", All, "P_CC1A");
Create Unit("Player 2", "Terran Command Center", 1, "P_CC1A");
Preserve Trigger();
}

I attach the map for more details.

Attachments:
change_control_4p_v6c.scm
Hits: 0 Size: 94.63kb




Feb 7 2024, 1:45 pm Ultraviolet Post #2

We do a little trolling

Could you just center a ground only location on the command center and then you could center another 2x2 location on the CC and use EUD location shifting to shift it into the position where the Comsat station would belong and then if you detect the command center is on the ground and the comsat station is in the comsat location then give it to the player?



My Projects:

Impossible Ultraviolet | Impossible UV 2 | Impossible UV 3
Mercenaries 2020 | Mercenaries III
Squad Defense

Legacy Projects (No guarantee of functionality in modern SC):

Pixel Adventure 2 | Space Snipers | Control the Ball

______________________________________________

Join me in Torn City

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: Ojan