<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://staredit.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Bunker_Disabling_and_Stacking</id>
		<title>Bunker Disabling and Stacking - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://staredit.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Bunker_Disabling_and_Stacking"/>
		<link rel="alternate" type="text/html" href="https://staredit.net/wiki/index.php?title=Bunker_Disabling_and_Stacking&amp;action=history"/>
		<updated>2026-04-09T16:20:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://staredit.net/wiki/index.php?title=Bunker_Disabling_and_Stacking&amp;diff=164&amp;oldid=prev</id>
		<title>DevliN: 1 revision imported: Restoring SC1 backup</title>
		<link rel="alternate" type="text/html" href="https://staredit.net/wiki/index.php?title=Bunker_Disabling_and_Stacking&amp;diff=164&amp;oldid=prev"/>
				<updated>2015-03-21T04:33:09Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported: Restoring SC1 backup&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 04:33, 21 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>DevliN</name></author>	</entry>

	<entry>
		<id>https://staredit.net/wiki/index.php?title=Bunker_Disabling_and_Stacking&amp;diff=163&amp;oldid=prev</id>
		<title>UnholyUrine: /* Notes */</title>
		<link rel="alternate" type="text/html" href="https://staredit.net/wiki/index.php?title=Bunker_Disabling_and_Stacking&amp;diff=163&amp;oldid=prev"/>
				<updated>2012-01-05T21:53:49Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Notes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Terran Bunker]]s can be a useful tool in ''[[StarCraft]]'' mapping. In defense [[maps]], the structures can be used as a stationary &amp;quot;tower&amp;quot; that can host different infantry [[units]]. With clever [[Triggers|triggering]], [[Bunker]]s can be cloaked and [[stack]]ed.&lt;br /&gt;
&lt;br /&gt;
This tutorial explains how one can use these bunkers.&lt;br /&gt;
&lt;br /&gt;
== Bunker disabling ==&lt;br /&gt;
In some ''StarCraft'' [[UMS]] maps, like [[Tower Defense]], certain [[Terran]] buildings are automatically replaced with invisible [[Terran Bunker]]s when constructed. Typically, the replaced building determines what units ([[Terran Marine|Marines]], [[Terran Firebat|Firebats]], or [[Terran Ghost|Ghosts]]) are loaded into the Bunker; the buildings are priced accordingly. [[Triggers]] detect the completion of the building using the Bring condition; they then remove the building, and replace it with a [[Bunker]] and the corresponding units. These units are loaded into the [[Bunker]] using an [[AI script]], and then the [[Bunker]] is [[Set Doodad State|disabled]].&lt;br /&gt;
&lt;br /&gt;
=== Triggers ===&lt;br /&gt;
{{StarCraft Trigger&lt;br /&gt;
|description=Trigger No. 1 - Replacing Initial building with Bunker (location names are arbitrary)&lt;br /&gt;
|players=&lt;br /&gt;
*Player 1&lt;br /&gt;
*Player 2&lt;br /&gt;
*''etc...''&lt;br /&gt;
|conditions=&lt;br /&gt;
*Current player brings at least 1 [building] to [location: arena]&lt;br /&gt;
|actions=&lt;br /&gt;
*Move 1 [[Terran SCV]] from [location: arena] to [location: SCV dump] for Current Player&lt;br /&gt;
*Center Location [location: Bunker Converter] on [building] at [location: arena]&lt;br /&gt;
*Create 3 [marines/firebats/ghosts] at [location: Bunker Converter] for Current Player&lt;br /&gt;
*Remove Unit at Location 1 [building] at [location: Bunker Converter] for Current Player&lt;br /&gt;
*Create 1 Terran Bunker at [location: Bunker Converter] for Current Player&lt;br /&gt;
*Run AI script Enter Closest Bunker at [location: Bunker Converter]&lt;br /&gt;
**''You can use a 1000-millisecond wait trigger here but risk [[wait blocks]]. Instead, we have chosen to split the actions that would ordinarily follow the wait into a second trigger.''&lt;br /&gt;
*Preserve trigger.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{StarCraft Trigger&lt;br /&gt;
|description=Trigger No. 2 - Instead of using a Wait trigger, use a second trigger to detect the presence of infantry next to the bunker&lt;br /&gt;
|players=&lt;br /&gt;
*Player 1&lt;br /&gt;
*Player 2&lt;br /&gt;
*''etc...''&lt;br /&gt;
|conditions=&lt;br /&gt;
*Current player brings at least 1 Terran Bunker to [location: Bunker Converter]&lt;br /&gt;
*Current player brings exactly 0 [marines/firebats/ghosts] to [location: Bunker Converter]&lt;br /&gt;
|actions=&lt;br /&gt;
*[[Set Doodad State|Disable doodad state]] for Terran Bunker owned by Current Player at [Location: Bunker Converter]&lt;br /&gt;
*Move 1 Terran SCV from [location: SCV dump] to [location: arena]&lt;br /&gt;
**''If you have used Wait, place these actions in the first trigger after the Wait, instead of in a second trigger.''&lt;br /&gt;
*Preserve trigger.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
*Moving the SCV away from the Bunker prevents it from entering the Bunker and being permanently lost.&lt;br /&gt;
*Although the Bunker can carry up to four infantry units, it is best to use only three, as four units may have pathfinding issues trying to enter the Bunker.&lt;br /&gt;
*Remember to have a building in place before creating the infantry on that [[location]]. Otherwise, the infantry will be in the way when the Bunker is created. (The pre-existing building displaces the infantry when they are created).&lt;br /&gt;
*If you decide to split the trigger into two, as shown above, the [Location: Bunker Converter] must be at least 4x3 in size (i.e. the size of a bunker) in order for it to correctly detect whether infantry is still there. It is recommended to use a location size that is a tad bigger, in case of unit placement issues.&lt;br /&gt;
* You also need [[hyper triggers]] to make the transition between buildings smooth.&lt;br /&gt;
&lt;br /&gt;
== Bunker stacking ==&lt;br /&gt;
The same logic applies here. Units are created and moved into a [[Bunker]], and then the [[Bunker]]'s doodad state is disabled. This time, however, the [[Bunker]] is moved using triggers. This makes the area walkable and buildable, but it also allows the units in the [[Bunker]] to shoot from the Bunker's original position. (This is because the units themselves were effectively positioned at the center of the Bunker; they were not moved with the Bunker because the Bunker was disabled when it was moved.) This can be seen in maps such as [[Path Defense]] and [[Clock Defense]].&lt;br /&gt;
&lt;br /&gt;
In order to stack the Bunkers, you must pre-place a pile of ''perfectly stacked buildings'' using a third-party [[map editor]]. When a player plays the map and a Bunker is created, a building from the pile is removed. This marks the entire pile as being buildable, making it possible to stack the newly-created Bunker on top of it. The act of moving the Bunker marks the pile as being &amp;quot;occupied&amp;quot;, while making the Bunker's original location buildable again. This system gives the illusion that players can stack the invisible Bunkers; the system will function until all of the pre-placed buildings have been removed.&lt;br /&gt;
&lt;br /&gt;
=== Triggers ===&lt;br /&gt;
Copy the first trigger from the sections above. A second trigger must be used when stacking.&lt;br /&gt;
&lt;br /&gt;
{{StarCraft Trigger&lt;br /&gt;
|description=Trigger No. 2 - Replacing Initial building with Bunker (location names are arbitrary)&lt;br /&gt;
|players=&lt;br /&gt;
*Player 1&lt;br /&gt;
*Player 2&lt;br /&gt;
*''etc...''&lt;br /&gt;
|conditions=&lt;br /&gt;
*Current Player brings at least 1 [building] to [location: arena]&lt;br /&gt;
|actions=&lt;br /&gt;
*Move 1 Terran SCV from [location: arena] to [location: SCV dump] for Current Player&lt;br /&gt;
*Center location [location: Bunker Converter] on [buildings] at [location: arena]&lt;br /&gt;
*Create 3 [marines/firebats/ghosts] at [location: Bunker Converter] for Current Player&lt;br /&gt;
*Remove 1 [building] at [location: Bunker Converter] for Current Player&lt;br /&gt;
*Create 1 Terran Bunker at [location: Bunker Converter] for Current Player&lt;br /&gt;
*Run AI script Enter Closest Bunker at [location: Bunker Converter]&lt;br /&gt;
*Preserve trigger.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{StarCraft Trigger&lt;br /&gt;
|description=Trigger No. 3 - Remove one of the stacked buildings and replace it with a bunker&lt;br /&gt;
|players=&lt;br /&gt;
*Player 1&lt;br /&gt;
*Player 2&lt;br /&gt;
*''etc...''&lt;br /&gt;
|conditions=&lt;br /&gt;
*Current player brings at least 1 Terran Bunker to [location: Bunker Converter]&lt;br /&gt;
*Current player brings exactly 0 [marines/firebats/ghosts] to [location: Bunker Converter]&lt;br /&gt;
|actions=&lt;br /&gt;
*[[Set Doodad State|Disable doodad state]] for Terran Bunker owned by Current Player at [Location: Bunker Converter]&lt;br /&gt;
*Remove 1 [Stacked Building] at [Location: stacked building loc]&lt;br /&gt;
*Move 1 Terran Bunker at [location: Bunker Converter] to [location: stacked building loc]&lt;br /&gt;
*Move 1 Terran SCV at [location: SCV dump] to [location: arena]&lt;br /&gt;
*Preserve trigger.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
And there you have it.&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
*You can only stack as many Bunkers as there are stacked buildings. If, for example, you only pre-placed ten stacked buildings, then this system would only stack ten Bunkers. When the player attempts to build an eleventh Bunker, it would become invisible, but it would not be moved.&lt;br /&gt;
*It is important to note that ''StarCraft'' has a maximum number of units that can be attacking at the same time. This means that if you have fifty Bunkers stacked in the same location, with each containing three Marines (for a total of 150 Marines), then they would all end up attacking at the same time. This can cause [[unit freeze]], which can be seen more commonly in [[Terran Valkyrie]]s and [[Zerg Devourer]]s due to their attack animations. To avoid this, you can limit the amount of Bunkers a player can create by removing newly-built initial buildings if the Current Player has no more stacked buildings at their [Stacked building loc]. (This also allows the system to [[Wikipedia:Fault-tolerant system|degrade gracefully]] when no more buildings can be stacked.)&lt;br /&gt;
*You need [[hyper triggers|Hyper Trigger]] to make the transition between buildings smooth.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
All credit goes to [[User:UnholyUrine|UnholyUrine]] for writing this tutorial. :)&lt;br /&gt;
&lt;br /&gt;
[[Category:StarCraft]]&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>UnholyUrine</name></author>	</entry>

	</feed>