R
Ricky
Guest
Hi~Ricky
Me again, as some of you may know this is my second tutorial and some should know that all comments are welcome and crititism would be great as long as it is constructive (you tell me whats wrong and your solution to it. As their is no point in saying thats wrong but not say how to fix it). Anyway in this tutorial im going to explain how to use elevators and gates. Now most would find it pointless as it is simple but some dont understand how to use them.So lets begin!
I shall start with gates as it is the shorter of the two
First of all we need to open the editor and make a new map. Once there place down on the map a gate any gate (they are found in trees/destructables) Now open the trigger editor:Make a new trigger named of your choice (mine is gate open) then make another (mine is called gate close)Now go to the first trigger the open one and under events type in what you want for it to open. then under actions put open gate then select the gate(the trigger is under destructable) then the gate will open. If you want you can also add a condition.
This is an exampl
Now we do almost the exact same thing except we change the events to what you want to close it then under actions change it to close gate 001
This is an example
If you want to make it so it only opens or close once you only need one trigger.
Thats all for baisic gates.
Now we are on to the elevators
To start with we need to place an elevator now under normal circumstances an elevator can only go up to a hight of plus two in the terain palette if it is on the ground so thats how we will do it. First we have to make sure that the elevator is in the right place if you press p it should show you were units can walk we need the elevator in a position were it shows the edge of the cliff blue so units can walk there. Now if we left it like that the elevator wouldnt move and units can just move up and down it unrealisticly so first we need elevator walls, place one on each side of the elevator but you must place a dead elevator wall on the entrance point of the elevator as dead means open. (it is hard to do this as unfortuneately the elevator walls are longer than the elevator and i have stupidly forgoten how to remedy this. My solution to this problem i make it so it is impossable to get to the side of the elevator by using props or suchlike) Now for the triggers.
Open up the trigger editor and create two new triggers (i called mine elevator up and elevator down) in the first one the 'up' one put the events to whatever you want to make the elevator go up then you must put under actions set elevator hight 2 (if the terain you want it to go up to is 'up' one as setting it to 1 makes it go to its begining position)you also need the actions open and close elevator walls (close the one you came in by and open the one you leaving through)
This is an example
Now all we have to do is reverse the operation
And their we have it a baisic way of using elevators.
So thats the end of my second tutorial i hope you found it usefull.
Me again, as some of you may know this is my second tutorial and some should know that all comments are welcome and crititism would be great as long as it is constructive (you tell me whats wrong and your solution to it. As their is no point in saying thats wrong but not say how to fix it). Anyway in this tutorial im going to explain how to use elevators and gates. Now most would find it pointless as it is simple but some dont understand how to use them.So lets begin!
I shall start with gates as it is the shorter of the two
First of all we need to open the editor and make a new map. Once there place down on the map a gate any gate (they are found in trees/destructables) Now open the trigger editor:Make a new trigger named of your choice (mine is gate open) then make another (mine is called gate close)Now go to the first trigger the open one and under events type in what you want for it to open. then under actions put open gate then select the gate(the trigger is under destructable) then the gate will open. If you want you can also add a condition.
This is an exampl
Code:
[U]Trigger gate open[/U]
events
a unit enters region 001<this region is in front of the gate
conditions
(trigering) unit equal to sorceress
actions
open gate 001
Now we do almost the exact same thing except we change the events to what you want to close it then under actions change it to close gate 001
This is an example
Code:
[U]Trigger gate close[/U]
events
a unit enter region 002 (This time the region is on the other side of the gate)
conditions
(triggering) unit equal to sorceress
actions
close gate 001
If you want to make it so it only opens or close once you only need one trigger.
Thats all for baisic gates.
Now we are on to the elevators
To start with we need to place an elevator now under normal circumstances an elevator can only go up to a hight of plus two in the terain palette if it is on the ground so thats how we will do it. First we have to make sure that the elevator is in the right place if you press p it should show you were units can walk we need the elevator in a position were it shows the edge of the cliff blue so units can walk there. Now if we left it like that the elevator wouldnt move and units can just move up and down it unrealisticly so first we need elevator walls, place one on each side of the elevator but you must place a dead elevator wall on the entrance point of the elevator as dead means open. (it is hard to do this as unfortuneately the elevator walls are longer than the elevator and i have stupidly forgoten how to remedy this. My solution to this problem i make it so it is impossable to get to the side of the elevator by using props or suchlike) Now for the triggers.
Open up the trigger editor and create two new triggers (i called mine elevator up and elevator down) in the first one the 'up' one put the events to whatever you want to make the elevator go up then you must put under actions set elevator hight 2 (if the terain you want it to go up to is 'up' one as setting it to 1 makes it go to its begining position)you also need the actions open and close elevator walls (close the one you came in by and open the one you leaving through)
This is an example
Code:
[U]Trigger elevator up[/U]
events
player 1 types elevator up as an exact match
conditions
actions
set hight of elevator 001=2
open north elevator wall
close south elevator wall
Now all we have to do is reverse the operation
Code:
[U]Trigger elevator up[/U]
events
player 1 types elevator down as an exact match
conditions
actions
set hight of elevator 001=1
open south elevator wall
close north elevator wall
And their we have it a baisic way of using elevators.
So thats the end of my second tutorial i hope you found it usefull.