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-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
Please log in to shout.


Members Online: Dem0n, Symmetry