In this tutorial I will show you how to make lava/water raise and lower using triggers. This will also include a trigger to kill the units in the lava/water when it is raised.
I have attempted to emulate the lava effects from the single player mission "The Devils Playground"
Step 1: Creation
Create your map and terrain. In this tutorial I will be using the Redstone texture set with a base height of 10.
Step 2: Adding Water
Add Lava/Water to ever part of your map you want to be covered when it raises. I just covered the entire map with lava because its a small map.
Step 3: Modifying Water Height
Select your water set you have been using and click on 'edit water'.
In the new window right-click in the white window area and select Add Water State.
Now you should have two water states, Default and Alternative Setting. The default is going to be the normal height and the Alternative Setting is going to be the higher one.
Edit the Heights of both water states to what works best for your map. Since my base height of the map is 10, I used a height of 8.5 for the default and 10.5 for the alternative.
Step 4: Lighting
When the lava rises we want the lighting to change also because it seems more realistic.
Open the Lighting window by selecting Window -> Lighting or pressing Ctrl+Shift+F10.
Next, create a new light set by right-clicking on the right side and selecting 'New Light Set'. Name the new light set Lava or something easy, click on 'suggest' to help the editor understand your new name, and also under field values, Copy From: select the texture set you are using. I copied Redstone because my texture set is Redstone.
Click OK.
Now edit the light to your liking. I changed the color to a shade of red (R:154, G:17, B:59), increased the Specular Multiplier to 6.0 and the Emissive Multiplier to 2.85.
When you satisfied with your light close the lighting window.
Step 5: Triggers
Variables
Delete the Melee Initiation trigger. Create a Timer variable called 'Raise Lava', another Timer variable called 'Lower Lave', a Timer Window variable called 'Lava Timer Window', and a Boolean variable called 'Lava Death?'.
Initialization Trigger
Create a new trigger with the event Map Initialization. Now we to set up the timer and show the timer window.
Events
Game - Map initialization
Local Variables
Conditions
Actions
Timer - Start Raise Lava Timer as a One Shot timer that will expire in 20.0 Game Time seconds
Variable - Set Raise Lava Timer = (Last started timer)
Timer - Create a timer window for (Last started timer), with the title "Lava will raise in: ", using Remaining time (initially Visible)
Variable - Set Lava Timer Window = (Last created timer window)
Timer - Show (Last created timer window) for (All players)
Variable - Set Lava Death? = false
I also added a point to the map so the player's camera would start in the middle and also revealed the entire map for all players.
Camera - Pan the camera for player 1 to (Point 001 offset by (0.0, 0.0)) over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Visibility - Create a visibility revealer for player 1 within (Playable map area)
Raise Lava Trigger
This trigger will raise the lava level, play a sound, display a msg, change the lighting, and start the timer to lower the lava level.
Create a Trigger named 'Raise Lava' with a Timer expires Event; .
Events
Timer - Raise Lava Timer expires
Local Variables
Conditions
Actions
Timer - Destroy Lava Timer Window
Sound - Play Alert_BaseUnderAttackKlaxon for (All players) (at 100.0% volume, skip the first 0.0 seconds)
UI - Display "!!!WARNING!!! The lava is rising! ..." for (All players) to Subtitle area
Environment - Change water to Redstone, Alternate Setting over 8.0 seconds, using a Linear blend curve.
Environment - Set lighting to Lava, blending over 8.0 seconds
General - Wait 8.0 Game Time seconds
Timer - Start Lower Lava Timer as a One Shot timer that will expire in 20.0 Game Time seconds
Variable - Set Lower Lava Timer = (Last started timer)
Timer - Create a timer window for (Last started timer), with the title "Lava will lower in: ", using Remaining time (initially Visible)
Variable - Set Lava Timer Window = (Last created timer window)
Variable - Set Lava Death? = true
Lower Lava Trigger
This trigger will lower the lava back to the original height, change the lighting back to normal, play a sound, display a msg, and start the timer to raise the lava.
Create a Trigger named 'Lower Lava' with the event Timer Expires. Timer - Lower Lava Timer expires.
Events
Timer - Lower Lava Timer expires
Local Variables
Conditions
Actions
Timer - Destroy Lava Timer Window
Sound - Play Alert_BaseUnderAttackKlaxon for (All players) (at 100.0% volume, skip the first 0.0 seconds)
UI - Display "!!!WARNING!!! The lava is lowering..." for (All players) to Subtitle area
Environment - Change water to Redstone, [Default] over 8.0 seconds, using a Linear blend curve.
Environment - Set lighting to Redstone, blending over 8.0 seconds
Timer - Start Raise Lava Timer as a One Shot timer that will expire in 20.0 Game Time seconds
Variable - Set Raise Lava Timer = (Last started timer)
Timer - Create a timer window for (Last started timer), with the title "Lava will raise in: ", using Remaining time (initially Visible)
Variable - Set Lava Timer Window = (Last created timer window)
Variable - Set Lava Death? = false
Kill Units in Lava Trigger
This trigger will kill any unit that stays in the lava when it is risen.
Create a Trigger named 'Kill units in Lava' with a Periodic Event for the event.
Events
Timer - Every 0.5 seconds of Game Time
Local Variables
Conditions
Lava Death? == true
Actions
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any
Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Ground height at (Position of (Picked unit))) <= 10.5
Then
Unit - Add 1 Lava Damage to (Picked unit) from player 15 Add behavior to unit.
Else
Else
Play Warning Sound Trigger
This trigger is not needed but is really cool. When the raise lava timer is at 15 seconds, the Terran Adjutant will warn you of the incoming lava surge.
First you will need to load the single player dependencies. Just like in the single player mission.
Goto File -> Dependencies... Click on 'Add Standard' and select both Liberty Story [Champaign] and Liberty [Champaign]. Click OK and then Click OK to close the window.
Now create this trigger
Events
Timer - Every 1.0 seconds of Game Time
Local Variables
Conditions
(Remaining time of Raise Lava Timer) == 15.0
Actions
Sound - Play TTosh01Adjutant00013 for (All players) (at 100.0% volume, skip the first 0.0 seconds)
That is it! You can test it out and see the lava raise and fall! Add a few units to your map and test out the Kill Units in Lava Trigger.
You can instead make the lava rise and fall with a dialog button, when an unit enters a region/point, ect.
Hope this helps!
Will be adding screen caps and example map for reference.
Navigate to the "Support" folder in your Starcraft 2 directory. Move the original SC2Editor.exe to another folder so you don't delete it. Then put the SC2Editor.exe from the cracked download in the Support folder.
Run the program and go to options and click the button "crack latest patch" this will bring you after few seconds the path of the latest sc2.exe it found and cracked it! close the launcher
Now when you run the editor just click on "No" when it asks to log in to bnet. The dialog will go away and the editor stays open! When you test the document an error will come up but the game will continue to load your map :D
Navigate to the "Support" folder in your Starcraft 2 directory. Move the original SC2Editor.exe to another folder so you don't delete it. Then put the SC2Editor.exe from the cracked download in the Support folder.
Now when you run the editor just click on "No" when it asks to log in to bnet. The dialog will go away and the editor stays open! When you test the document an error will come up but the game will continue to load your map :D
0
@fnxGRL
Go to File -> Dependencies. Select Add Standard and select both campaign sets.
0
In this tutorial I will show you how to make lava/water raise and lower using triggers. This will also include a trigger to kill the units in the lava/water when it is raised.
I have attempted to emulate the lava effects from the single player mission "The Devils Playground"
Step 1: Creation
Create your map and terrain. In this tutorial I will be using the Redstone texture set with a base height of 10.
Step 2: Adding Water
Add Lava/Water to ever part of your map you want to be covered when it raises. I just covered the entire map with lava because its a small map.
Step 3: Modifying Water Height
The default is going to be the normal height and the Alternative Setting is going to be the higher one.
Since my base height of the map is 10, I used a height of 8.5 for the default and 10.5 for the alternative.
Step 4: Lighting
When the lava rises we want the lighting to change also because it seems more realistic.
I copied Redstone because my texture set is Redstone.
I changed the color to a shade of red (R:154, G:17, B:59), increased the Specular Multiplier to 6.0 and the Emissive Multiplier to 2.85.
Step 5: Triggers
Variables
Delete the Melee Initiation trigger. Create a Timer variable called 'Raise Lava', another Timer variable called 'Lower Lave', a Timer Window variable called 'Lava Timer Window', and a Boolean variable called 'Lava Death?'.
Initialization Trigger
Create a new trigger with the event Map Initialization. Now we to set up the timer and show the timer window.
I also added a point to the map so the player's camera would start in the middle and also revealed the entire map for all players.
Camera - Pan the camera for player 1 to (Point 001 offset by (0.0, 0.0)) over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Visibility - Create a visibility revealer for player 1 within (Playable map area)
Raise Lava Trigger
This trigger will raise the lava level, play a sound, display a msg, change the lighting, and start the timer to lower the lava level.
Create a Trigger named 'Raise Lava' with a Timer expires Event; .
Lower Lava Trigger
This trigger will lower the lava back to the original height, change the lighting back to normal, play a sound, display a msg, and start the timer to raise the lava.
Create a Trigger named 'Lower Lava' with the event Timer Expires. Timer - Lower Lava Timer expires.
Kill Units in Lava Trigger
This trigger will kill any unit that stays in the lava when it is risen.
Create a Trigger named 'Kill units in Lava' with a Periodic Event for the event.
Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Play Warning Sound Trigger
This trigger is not needed but is really cool. When the raise lava timer is at 15 seconds, the Terran Adjutant will warn you of the incoming lava surge.
First you will need to load the single player dependencies. Just like in the single player mission.
Goto File -> Dependencies... Click on 'Add Standard' and select both Liberty Story [Champaign] and Liberty [Champaign]. Click OK and then Click OK to close the window.
Now create this trigger
That is it! You can test it out and see the lava raise and fall! Add a few units to your map and test out the Kill Units in Lava Trigger.
You can instead make the lava rise and fall with a dialog button, when an unit enters a region/point, ect.
Hope this helps!
Will be adding screen caps and example map for reference.
Lava Test Map link
0
@zeldarules28: Go
I'm creating a tutorial.. I'll let you know when I post it.
0
If you are trying to use the Editor and you can keep getting the log in error message. Here is what you need to do in order to fix this problem...
Download this: http://darkblizz.org/Forum2/sc2-tools/cracked-sc2-exe-and-mapeditor/
Next download this SC2AllInOne file and install it: http://darkblizz.org/Forum2/sc2-tools/starcraft-2-beta-best-allin1-crack-(offline-mode)/
Now when you run the editor just click on "No" when it asks to log in to bnet. The dialog will go away and the editor stays open! When you test the document an error will come up but the game will continue to load your map :D
0
I have the same problem. I wanted to finish my map I was working for the launch, but I guess its going to have to wait. :/
I was using the editor everyday but since Monday(19th) I haven't been able to.
EDIT: I found a solution!!
Download this:
http://darkblizz.org/Forum2/sc2-tools/cracked-sc2-exe-and-mapeditor/
Navigate to the "Support" folder in your Starcraft 2 directory. Move the original SC2Editor.exe to another folder so you don't delete it. Then put the SC2Editor.exe from the cracked download in the Support folder.
Next download this SC2AllInOne file and install it.
http://darkblizz.org/Forum2/sc2-tools/starcraft-2-beta-best-allin1-crack-(offline-mode)/
Go to options and click the button "crack latest patch" this will bring you after few seconds the path of the latest sc2.exe it found and cracked it! close the launcher
Now when you run the editor just click on "No" when it asks to log in to bnet. The dialog will go away and the editor stays open! When you test the document an error will come up but the game will continue to load your map :D