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



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?




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[05:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: NudeRaider