Zedzy
ℑΣÐℑΨ
- Reaction score
- 41
Importing/Exporting Triggers
Introduction
Hello, and welcome to my first tutorial. This tutorial will show you the simple process of importing triggers from one map to another, such as triggers from a tutorial demo map to your own map. There are two basic ways to import and export triggers from one map to another. The first being to use the import and export features in the trigger editor, and the second which this tutorial will focus on, is good ol' copy and paste.
Difficulty: Very Easy
How This Tutorial Can Help: This tutorial will teach you
how to easily implement triggers from one map to another.
Step 1: Getting Started
First of all, open the map you want to use the triggers from. This tutorial will be using Tinki3's creep revival tutorial, that can be found here. Then open up the map you want your triggers imported to. Then to make sure that this works properly you have to make sure the variables come with the triggers. To do this, go to File - Preferences under the General tab, and check, "Automatically create unknown variables while pasting trigger data," if it is not checked already. Lastly go back to your first map, by going to window - Your First Map.
Switching Between Maps
Step 2: Copying the Triggers
First, open up the trigger editor found near the top of the World Editor. It's a yellow "a."
The Trigger Editor
Next, right click on any folder that you need, and copy it. Copying the folder will take any triggers that are inside. For now don't worry about any other folders.
Copy This
Step 2: Pasting the Triggers
Next, switch to the map you want the triggers to go in. Then open up the trigger editor again. Finally, right click on any of the triggers or trigger folders and paste the folder.
Pasting the Folder
Final Step: Rinse and Repeat
Repeat step 2 and 3 until all the of trigger folders are in your second map.
Your Finished Product
Closing Comments
Congratulations! You should now have all your triggers successfully imported.
Warning: Preplaced objects (units, items, doodads, and cameras) will not come with the triggers. You will have to assign a different object to the trigger(s) that use that object.
FAQ
Q: Why not just export then import the triggers using the first method?
A: Though in some cases using the first method would be beneficial, it removes all the triggers you already had.
Q: Why does my trigger have a red triangle over it when I pasted it?
A: This means that one or more actions, conditions, or events in the trigger refer to a preplaced object.
More will be added as questions are asked.
Questions Welcome
Credits: Special Thanks to sjakie.
...___....___... ___........____..__........__
..|_...|.|. __|.| __ \.....|_....|.\...\..../.../
....././..|.|_ ...| |..|.|......././....\...\/.../
..././....|. _|...| |..|.|....././........\...../
././......|.|__..| |_.|.|..././_ .........|..|
|___|...|___|.|___ /....|___|........|__|