Changing the Visible Portion of the Map (intermediate level)

Written by: Thalassicus
Modified by Matze
The visible portion of the map is what the player can see and move to. Many maps change this throughout the course of a mission, to ensure that a player completes one objective at a time. One such level is the Allied mission in Europe, where you must destroy the two nuclear missile silos. The mission begins with only half of itself visible, and expands to include new objectives.
To show only the top half of a map when it is loaded:
1) Under the Edit menu, select Map.
2) There is one editable text box in the middle. This is the visible portion of the map, symbolized by the blue line on the iso view. The top text box shows the actual editable dimensions of the map, symbolized by the red line in the iso view. In order, the dimensions are:
a. Left edge of the visible map.
b. Top edge of the visible map.
c. Width of the remaining portion of the map.
d. Height of the remaining portion of the map.
e. Format: "LeftEdge,TopEdge,Width,Height"
3) In the second text box, type the following:
a. Set the left edge at 0 (closest you can get to the left side)
b. Set the top edge at 4. DO NOT set the top edge less than 4, or graphic errors will occur.
c. Look at the top text box and find the width. Set the visible width to this number as well.
d. Look at the top text box and find the height. Set the visible height to this number, divided by 2. Exact calculations of the middle are not required, you can approximate.
4) The left visibility border is now at the far left, the right border is at the far right, the top is as close as it can get to the top of the map, and only the top half of the map is visible.
To change the visible portion of any map to only the bottom half during gameplay:
1) This tutorial assumes that the player will use a global variable '5 ResizeMap' to trigger the map's resizing.
2) Under the Edit menu, open the Trigger Editor.
3) Create a new trigger with the following attributes:
a. Name: "Resize Map 1"
b. Repeating: No
c. Event: "36-Global is set", parameter "5 ResizeMap,0"
d. Action: "40 Resize visible map", parameters:
i. Top = [Map height divided by 2 (middle of map)]
ii. Left = 0
iii. Right = [Map width]
iv. Bottom = [Map height divided by two (when added to Top is the same as the bottom half of the map)]