- Joined
- May 5, 2004
- Messages
- 1,330
This will be an example for a two map long campaign where the hero and the player's money is transported. The campaign is uploaded on this site, here's the quick-link:
http://www.wc3sear.ch/?p=Maps&ID=9634
You can extract the maps from the campaign by opening the campaign in the campaign editor, right-click on the map and "extract map".
Important: When creating game-caches, labels, variables and all that stuff, remember NOT to put any spaces in their names. E.g. "OneMoreVariable" is a valid name, while "One More Variable" is not. As far as I know WE doesn't allow to put spaces while naming variables anyway. However, that doesn't fit for games-caches or the labels/categories used in a cache. WE won't tell you that there's a problem, it just won't work.
On our first map, we create these variables:
Then, we create following triggers:
In the second map we need these triggers:
OK. Now we open the Campaign Editor:
Now it should look this way:
I called my campaign "Unit Transport". Now, we select "Unit Transport" in "map files" and right-click on it. There's the option "add map":
There, we select our first map:
The Campaign editor checks now if there's any trigger inside the map which gives information about the following map (Game - Set next level) and shows the path
Now we right-click on that path and add the second map.
After doing so, we click "Loading Screen" (upper panel, atm we are in "General"). There, we right-click on the white field
Now we add an button. It's important for the first map that we mark "Visible (first time campaign is loaded)". "Title" is for the name in the campaign menu, here I called it "UnitTransportButton1
We add a second button concerning to our second map. There we don't mark "Visible", else the players could chose every map right from beginning
Looking at "General", it should be like this:
Now we add one small action in the first map by right-clicking on the map choosing "Edit Map". This will just change the file integrated in the campaign, the original map-file (the one you created before importing them in the campaign editor) won't be changed. If you do your changes in the original map-file, you'll have to replace the map in campaign editor by right-clicking and choosing "Replace Map".
For further information, use the demo campaign that comes with TFT. All I know about game-caches, cinematics or else I learned from that campaign. Most of the triggers there are well explained and show various ways of how to play with game-caches.
PM me if you find any mistakes in this tutorial
http://www.wc3sear.ch/?p=Maps&ID=9634
You can extract the maps from the campaign by opening the campaign in the campaign editor, right-click on the map and "extract map".
Important: When creating game-caches, labels, variables and all that stuff, remember NOT to put any spaces in their names. E.g. "OneMoreVariable" is a valid name, while "One More Variable" is not. As far as I know WE doesn't allow to put spaces while naming variables anyway. However, that doesn't fit for games-caches or the labels/categories used in a cache. WE won't tell you that there's a problem, it just won't work.
On our first map, we create these variables:
Then, we create following triggers:
In the second map we need these triggers:
OK. Now we open the Campaign Editor:
Now it should look this way:
I called my campaign "Unit Transport". Now, we select "Unit Transport" in "map files" and right-click on it. There's the option "add map":
There, we select our first map:
The Campaign editor checks now if there's any trigger inside the map which gives information about the following map (Game - Set next level) and shows the path
Now we right-click on that path and add the second map.
After doing so, we click "Loading Screen" (upper panel, atm we are in "General"). There, we right-click on the white field
Now we add an button. It's important for the first map that we mark "Visible (first time campaign is loaded)". "Title" is for the name in the campaign menu, here I called it "UnitTransportButton1
We add a second button concerning to our second map. There we don't mark "Visible", else the players could chose every map right from beginning
Looking at "General", it should be like this:
Now we add one small action in the first map by right-clicking on the map choosing "Edit Map". This will just change the file integrated in the campaign, the original map-file (the one you created before importing them in the campaign editor) won't be changed. If you do your changes in the original map-file, you'll have to replace the map in campaign editor by right-clicking and choosing "Replace Map".
For further information, use the demo campaign that comes with TFT. All I know about game-caches, cinematics or else I learned from that campaign. Most of the triggers there are well explained and show various ways of how to play with game-caches.
PM me if you find any mistakes in this tutorial