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.
[2026-7-05. : 1:14 am]
l)ark_ssj9kevin -- Rectal!!!
[2026-7-05. : 12:13 am]
IskatuMesk -- u guys ever look at the "Backend performance improvements" line and kinda you know 👀
[2026-7-03. : 4:25 pm]
l)ark_ssj9kevin -- oh wow it's kind of like archipeligo but solo
[2026-7-03. : 9:43 am]
Oh_Man -- makes me wonder tho, a brood war achievement project culd be quite something, following the design methodology of SC2 achieves
[2026-7-03. : 9:43 am]
Oh_Man -- intresting concept, i see starcraft N64 is on there, most of the achieves seen bare bones though
[2026-7-03. : 9:43 am]
Oh_Man -- https://retroachievements.org/ i stumbled across this website
[2026-7-02. : 9:57 pm]
IskatuMesk -- :wob:
[2026-7-02. : 10:46 am]
UndeadStar -- :wob:
[2026-7-01. : 3:34 pm]
Symmetry -- :wob:
[2026-7-01. : 4:42 am]
Zycorax -- :wob:
Please log in to shout.


Members Online: NudeRaider