Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Invisible Bunker System
Invisible Bunker System
Jan 17 2008, 3:40 pm
By: Impeached  

Jan 17 2008, 3:40 pm Impeached Post #1



It isn't quite working. The bunker gets moved, but to the wrong location.


Code
Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6","Player 7","Player 8"){
Conditions:
    Bring("Current Player", "Terran Supply Depot", "Anywhere", Exactly, 1);
    Bring("Player 1", "Devouring One (Zergling)", "Gunner1 Ghost", Exactly, 1);
    Accumulate("Current Player", At least, 200, ore);

Actions:
    Comment("Gunner 1 - Make");
    Move Location("Current Player", "Terran Supply Depot", "Anywhere", "BunkerMaker");
    Remove Unit("Current Player", "Terran Supply Depot");
    Play WAV("sound\\glue\\bnetclick.wav", 0);
    Move Unit("Current Player", "Terran SCV", All, "BunkerMaker", "SCV");
    Create Unit("Current Player", "Terran Bunker", 1, "BunkerMaker");
    Create Unit("Current Player", "Terran Ghost", 1, "BunkerMaker");
    Run AI Script At Location("EnBk", "BunkerMaker");
    Set Deaths("Current Player", "Independent Starport", Set To, 10);
    Set Resources("Current Player", Subtract, 200, ore);
    Preserve Trigger();
}

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


Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6","Player 7","Player 8"){
Conditions:
    Deaths("Current Player", "Independent Starport", At least, 2);

Actions:
    Comment("Bunker Timer");
    Set Deaths("All players", "Independent Starport", Subtract, 1);
    Preserve Trigger();
}

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

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6","Player 7","Player 8"){
Conditions:
    Deaths("Current Player", "Independent Starport", Exactly, 1);

Actions:
    Comment("Bunker Invisible");
    Set Deaths("All players", "Independent Starport", Set To, 0);
    Move Location("Current Player", "Protoss Observer", "Anywhere", "Bunker Move");
    Move Location("Current Player", "Terran Bunker", "Defense Area", "SCV Return");
    Move Unit("Current Player", "Terran Bunker", 1, "Defense Area", "Bunker Move");
    Move Unit("Current Player", "Terran SCV", 1, "SCV", "SCV Return");
    Set Invincibility("Current Player", "Terran Bunker", "Bunker Move", enabled);
    Preserve Trigger();
}

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


Attachments:
TD.scx
Hits: 4 Size: 29.98kb



None.

Jan 17 2008, 9:49 pm Falkoner Post #2



Did you use anything to protect it at any point in time? Like Uberation perhaps?



None.

Jan 17 2008, 10:21 pm Impeached Post #3



Nope.



None.

Jan 18 2008, 2:32 am Fwop_ Post #4



Just moving the bunker under an observer won't stack them. You need to have preplaced stacked buildings (traditionally Crash Norads). Move location over the Norads, remove one of them, then move the bunker.

Also, you should probably separate the triggers from each of the players, my guess is, the error is because you have them for Player 1, 2, 3, etc.



None.

Jan 18 2008, 2:54 am who Post #5



lol, i forgot about that when I submitted that tutorial. should have made a test map.

also, it should work if the observer is placed correctly over the norads/stacked buildings, because it will still remove one and move the bunker over. I don't think there's a problem with the triggers being for P1, P2, P3, etc, because it uses current player anyway.
i looked at the map, and i still don't see why the location centers there. It's not even in the center of the map.



None.

Jan 18 2008, 2:56 am Fwop_ Post #6



You don't need the observer at all, you can just move the location over the stacked norads.



None.

Jan 18 2008, 3:55 am Impeached Post #7



I tried the stacked buildings, and it did the same thing. No clue why it keeps moving there.



None.

Jan 18 2008, 4:24 am Fwop_ Post #8



It's moving there when it's being displaced. Do the stacked buildings again but move them to a different location (I did it under the top left engineering bays and it worked), probably away from your null tiles. Or maybe just put another layer of tiles around the buildings.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5: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
[2024-5-06. : 5: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
[2024-5-06. : 3: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
[2024-5-06. : 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
Please log in to shout.


Members Online: Ultraviolet