Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Dark Templar and Cerebrates
Dark Templar and Cerebrates
Oct 3 2013, 5:32 pm
By: checkmate824  

Oct 3 2013, 5:32 pm checkmate824 Post #1



Does anyone know how the resurrection(without DTs) and permanent slaying(with DTs) of Zerg Cerebrates works in the official campaigns, specifically; what are the trigger conditions and actions used?



None.

Oct 3 2013, 6:08 pm jjf28 Post #2

Cartography Artisan

I highly recommend you download this at some point so you can look at the campaign maps yourself: Campaign Extraction Utility. Remember to put it in its own folder before you run it, since it will pull out alot of files.

These are the triggers (in text version), and a snapshot of the locations (stripped down to the important ones)

Code
Trigger("Player 5"){
Conditions:
    Bring("Player 2", "Protoss Dark Templar", "AttackCerebrate02 .g", At least, 1);
    Bring("Current Player", "Zerg Cerebrate", "Cerebrate2 .g", At most, 0);

Actions:
    Comment("Disable respawning Cerebrate (bring Dark Templar/bring 0 Cerebrate)");
    Set Switch("C2Dead", set);
}

//-----------------------------------------------------------------//

Trigger("Player 4"){
Conditions:
    Bring("Player 2", "Protoss Dark Templar", "AttackCerebrate01 .g", At least, 1);
    Bring("Current Player", "Zerg Cerebrate", "Cerebrate1 .g", At most, 0);

Actions:
    Comment("Disable respawning Cerebrate (bring Dark Templar/bring 0 Cerebrate)");
    Set Switch("C1Dead", set);
}

//-----------------------------------------------------------------//

Trigger("Player 4"){
Conditions:
    Switch("C1Dead", not set);
    Bring("Current Player", "Zerg Cerebrate", "Cerebrate1 .g", At most, 0);

Actions:
    Comment("Respawning Cerebrate (C1Dead clear/bring 0 Cerebrate)");
    Move Unit("All players", "Men", All, "Cerebrate1 .g", "Reloc1A .g");
    Move Unit("All players", "Men", All, "Cerebrate1 .g", "Reloc1B .g");
    Kill Unit At Location("All players", "Any unit", All, "Cerebrate1 .g");
    Create Unit("Current Player", "Zerg Cerebrate", 0, "Cerebrate1 .g");
    Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 5"){
Conditions:
    Switch("C2Dead", not set);
    Bring("Current Player", "Zerg Cerebrate", "Cerebrate2 .g", At most, 0);

Actions:
    Comment("Respawning Cerebrate (C2Dead clear/bring 0 Cerebrate)");
    Move Unit("All players", "Men", All, "Cerebrate2 .g", "Reloc2A .g");
    Move Unit("All players", "Men", All, "Cerebrate2 .g", "Reloc2B .g");
    Kill Unit At Location("All players", "Any unit", All, "Cerebrate2 .g");
    Create Unit("Current Player", "Zerg Cerebrate", 0, "Cerebrate2 .g");
    Preserve Trigger();
}

//-----------------------------------------------------------------//







TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Oct 3 2013, 6:24 pm Dem0n Post #3

ᕕ( ᐛ )ᕗ

Yeah, Blizzard just basically checked to see if there was a Dark Templar around the Cerebrate, and if there was, it didn't respawn, but if there wasn't one around it, they respawned the Cerebrate.




Oct 4 2013, 10:09 pm checkmate824 Post #4



Quote from Dem0n
Yeah, Blizzard just basically checked to see if there was a Dark Templar around the Cerebrate, and if there was, it didn't respawn, but if there wasn't one around it, they respawned the Cerebrate.

Yeah this is basically what I did, except I just triggered invincibility and deactivation.

Quote from jjf28
I highly recommend you download this at some point so you can look at the campaign maps yourself: Campaign Extraction Utility. Remember to put it in its own folder before you run it, since it will pull out alot of files.

These are the triggers (in text version), and a snapshot of the locations (stripped down to the important ones)

......


Thanks so much for the detailed info; this isn't as elegant as how I wrote the trigger, but I suppose it is more effective in some ways(such as lore).



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1: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.
Please log in to shout.


Members Online: Oh_Man, Roy