Found this a while ago, and haven't ran across anything lately, so figured this update may help others. I am writing this with memory so comments and updates will be grateful. I would have a better understanding of this trigger if my computer didn't get fried a week ago. This is based on your unit entering/leaving a certain amount of distance of another unit (Gate). This is also my first tutorial.
Go to File > Dependencies.
Click 'Add Dependencies' and check the box(es) next to 'Liberty Story (Campaign)' and 'Liberty (Campaign)'.
Press 'Ok' and 'Ok' again.
Go to 'Unit Palette' and in the 'Search' field, type 'Gate' (w/ No Filters).
Use the first gate (For this tutorial) since it is already lowered (AKA - Open Gate).
Place the gate anywhere on the map (Or specific area if using for a Project).
Open the 'Data Module' (F7).
Change the 'Data Type' to 'Buttons'.
Click on the 'Search' field and type 'Open Gate'.
Right-Click the button and copy it (or Ctrl-C).
Right-Click in the blank area and click paste (or Ctrl-V).
Right-Click on your Copied Button and click 'Modify Object'.
Change to these specifications:
---------------------------------------------------------------------------------------------------------------------------------------
Name: Close Gate
ID: CloseGate
Button Type: Generic
Based On: CButton
Race: Neutral
Field Values: Do Not Change
When finished, press 'Ok' and close the 'Data Module'.
Open the 'Trigger Module' (F6).
Create a new 'Trigger' and name it 'Open Gate'.
It should look like this:
_____________________________________________________________________________
(Aid in Finding Appropriate Events, Local Variables, Conditions and Actions)
Open Gate
Events: Unit - Unit Enters/Leaves Range of Unit
Local Variables: N/A
Conditions: N/A
Actions: Issue Order
Open Gate
Events: Unit - Any Unit Enters a Distance of 2.0 from Gate (Your Previous Placed Unit)
Local Variables: N/A
Conditions: N/A
Actions: Unit - Order Gate to (*Open Gate*) (Replace Existing Orders)
* Note - Make sure the 'Open Gate' Order has the same Unit - Type as your Gate.
---------------------------------------------------------------------------------------------------------------------------------------
Create a new 'Trigger' and name it 'Close Gate'.
It should look like this:
Close Gate
Events: Unit - Unit Enters/Leaves Rang of Unit
Local Variables: N/A
Conditions: N/A
Actions: Issue Order
---------------------------------------------------------------------------------------------------------------------------------------
(Make it like this)
Close Gate
Events: Unit - Any Unit Leaves a Distance of 2.0 from Gate (Your Previous Placed Unit)
Local Variables: N/A
Conditions: N/A
Actions: Unit - Order Gate to (Close Gate) (Replace Existing Orders)
_____________________________________________________________________________
Final Step:
Test your new 'Open/Close Gate' Triggers. Place a Unit on the Map and have them toward the gate, and away from the gate. If done correctly, the gate should open and close when your Unit enters or leaves the written distance from the gate.
_____________________________________________________________________________
I hope that this was helpful to everyone. I do not take full credit for this post/tutorial. I was trying my best to just go off of memory from a post that I have seen a while ago through another site. They deserve most credit. This is my first posted tutorial, so be easy with the comments and what-not. I hope that this tutorial was helpful to you all.
_____________________________________________________________________________
Side Note:
The trigger 'Does Not' have to activate only with entering/leaving a distance from the unit. It can be used in many ways. Such as:
Close Gate
Events: Unit - Any Unit Enters Region
Local Variables: N/A
Conditions: N/A
Actions: Unit - Order Gate to (Close Gate) (Replace Existing Orders)
---------------------------------------------------------------------------------------------------------------------------------------
// Then
---------------------------------------------------------------------------------------------------------------------------------------
Open Gate
Events: Unit - Any Unit (Preferably An Enemy Unit) Dies
Local Variables: N/A
Conditions: N/A
Actions: Unit - Order Gate to (Open Gate) (Replace Existing Orders)
_____________________________________________________________________________
If this is a tutorial and not a problem then you should ask for it to be moved to the "Tutorial" section. Also, a wall of text tends to scare people away from a tutorial. Try to use pictures. The more the merrier.
Also using heading tags might help get some more important points across.
Just a thought!
Hope this helps!
Ow also. Be more specific as to what the user should be doing and why. Telling someone to just do this and that put this here and there and it will work without explaining the why this goes into that is very confusing. You can do better. No offense intended.
Also I just found this tutorial which is almost exactly the same as what you wrote.
Exact same tutorial
Thanks for the tips. I don't have any pics that i could probably use, that is why there was a lot of text going through this tutorial. thank you though. will remember that for the next time.
Just saw the 'Exact Trigger' link. That was where I got it from. Thank you for finding it for me. I couldn't find the damn thing, so decided to just post it and let everyone know that I am not the original creator.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Found this a while ago, and haven't ran across anything lately, so figured this update may help others. I am writing this with memory so comments and updates will be grateful. I would have a better understanding of this trigger if my computer didn't get fried a week ago. This is based on your unit entering/leaving a certain amount of distance of another unit (Gate). This is also my first tutorial.
_____________________________________________________________________________
Step One:
Go to File > Dependencies.
Click 'Add Dependencies' and check the box(es) next to 'Liberty Story (Campaign)' and 'Liberty (Campaign)'.
Press 'Ok' and 'Ok' again.
_____________________________________________________________________________
Step Two:
Go to 'Unit Palette' and in the 'Search' field, type 'Gate' (w/ No Filters).
Use the first gate (For this tutorial) since it is already lowered (AKA - Open Gate).
Place the gate anywhere on the map (Or specific area if using for a Project).
_____________________________________________________________________________
Step Three:
Open the 'Data Module' (F7).
Change the 'Data Type' to 'Buttons'.
Click on the 'Search' field and type 'Open Gate'.
Right-Click the button and copy it (or Ctrl-C).
Right-Click in the blank area and click paste (or Ctrl-V).
Right-Click on your Copied Button and click 'Modify Object'.
Change to these specifications:
---------------------------------------------------------------------------------------------------------------------------------------
Name: Close Gate
ID: CloseGate
Button Type: Generic
Based On: CButton
Race: Neutral
Field Values: Do Not Change
When finished, press 'Ok' and close the 'Data Module'.
_____________________________________________________________________________
Step Four:
Open the 'Trigger Module' (F6).
Create a new 'Trigger' and name it 'Open Gate'.
It should look like this:
_____________________________________________________________________________
(Aid in Finding Appropriate Events, Local Variables, Conditions and Actions)
Open Gate
Events: Unit - Unit Enters/Leaves Range of Unit
Local Variables: N/A
Conditions: N/A
Actions: Issue Order
---------------------------------------------------------------------------------------------------------------------------------------
(Make it like this)
Open Gate
Events: Unit - Any Unit Enters a Distance of 2.0 from Gate (Your Previous Placed Unit)
Local Variables: N/A
Conditions: N/A
Actions: Unit - Order Gate to (*Open Gate*) (Replace Existing Orders)
* Note - Make sure the 'Open Gate' Order has the same Unit - Type as your Gate.
---------------------------------------------------------------------------------------------------------------------------------------
Create a new 'Trigger' and name it 'Close Gate'.
It should look like this:
---------------------------------------------------------------------------------------------------------------------------------------
Close Gate
Events: Unit - Unit Enters/Leaves Rang of Unit
Local Variables: N/A
Conditions: N/A
Actions: Issue Order
---------------------------------------------------------------------------------------------------------------------------------------
(Make it like this)
Close Gate
Events: Unit - Any Unit Leaves a Distance of 2.0 from Gate (Your Previous Placed Unit)
Local Variables: N/A
Conditions: N/A
Actions: Unit - Order Gate to (Close Gate) (Replace Existing Orders)
_____________________________________________________________________________
Final Step:
Test your new 'Open/Close Gate' Triggers. Place a Unit on the Map and have them toward the gate, and away from the gate. If done correctly, the gate should open and close when your Unit enters or leaves the written distance from the gate.
_____________________________________________________________________________
I hope that this was helpful to everyone. I do not take full credit for this post/tutorial. I was trying my best to just go off of memory from a post that I have seen a while ago through another site. They deserve most credit. This is my first posted tutorial, so be easy with the comments and what-not. I hope that this tutorial was helpful to you all.
_____________________________________________________________________________
Side Note:
The trigger 'Does Not' have to activate only with entering/leaving a distance from the unit. It can be used in many ways. Such as:
_____________________________________________________________________________
Close Gate
Events: Unit - Any Unit Enters Region
Local Variables: N/A
Conditions: N/A
Actions: Unit - Order Gate to (Close Gate) (Replace Existing Orders)
---------------------------------------------------------------------------------------------------------------------------------------
// Then
---------------------------------------------------------------------------------------------------------------------------------------
Open Gate
Events: Unit - Any Unit (Preferably An Enemy Unit) Dies
Local Variables: N/A
Conditions: N/A
Actions: Unit - Order Gate to (Open Gate) (Replace Existing Orders)
_____________________________________________________________________________
Hmm... I had a lot of coffee...
@OMGitzragequit: Go
If this is a tutorial and not a problem then you should ask for it to be moved to the "Tutorial" section. Also, a wall of text tends to scare people away from a tutorial. Try to use pictures. The more the merrier.
Also using heading tags might help get some more important points across.
Just a thought!
Hope this helps!
Ow also. Be more specific as to what the user should be doing and why. Telling someone to just do this and that put this here and there and it will work without explaining the why this goes into that is very confusing. You can do better. No offense intended.
Also I just found this tutorial which is almost exactly the same as what you wrote. Exact same tutorial
@DarlD: Go
Thanks for the tips. I don't have any pics that i could probably use, that is why there was a lot of text going through this tutorial. thank you though. will remember that for the next time.
@DarlD: Go
Just saw the 'Exact Trigger' link. That was where I got it from. Thank you for finding it for me. I couldn't find the damn thing, so decided to just post it and let everyone know that I am not the original creator.