HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Campaign Tutorial

10-06-2007, 03:05 AM#1
The Elite
Introduction
Hello, in this tutorial you will learn what is needed to make a campaign and how to make one.
Dont scream to me that there already is a campaign tutorial, if you look at that tutorial you'll know that nothing like that should be in the wc3c database anymore, so i wrote this as a replacement. No offence, TheFirstSword
What to do
Ok, run world edit and open up the campaign editor, this comes up
Zoom (requires log in)
Ok, change the name from "Just another Warcraft 3 Campaign" to "Learning Campaign", change the author to your name and change the description to "Just a learning campaign".
Now click on "Custom Data"
Zoom (requires log in)
Click on "New Custom Unit"
Zoom (requires log in)
Change the name to "Hero" and select the Paladin
Zoom (requires log in)
Now click OK
Now minimize the Campaign Editor and go into the Terrain Editor (which is the default World Edit screen) and go to "New Map"
Zoom (requires log in)
Click OK
Now go File>Save Map As and save it as "Map01"
Now go back to the Campaign Editor and click on the General tab
Zoom (requires log in)
Right Click On Just Another Warcraft 3 Campaign
Zoom (requires log in)
And select add map
Zoom (requires log in)
And select Map01 then click OK
It's like this now
Zoom (requires log in)
Now right click on Map01 and select edit. This is so we can just click on Save whenever we want it to save to the campaign instead of having to reimport it into the campaign.
Now in the tool palette go to unit palette > custom units and place "Hero" anywhere on the map.
Now go into the trigger editor
Zoom (requires log in)
Delete the "Melee Initialization" trigger.
Make a new trigger and call it "Save Hero"
Add the Event
Trigger:
Player - Player 1 (Red) leaves the game with a victory
this event fires when Player 1 (red) has a victory.
No conditions
add the actions
Trigger:
Game Cache - Create a game cache from Learning Campaign.w3v
this just creates the Game Cache that we're going to save "Hero" in.
Trigger:
Game Cache - Store Hero 0001 <gen> as Hero of Map01 in (Last created game cache)
this stores "Hero" in the Game Cache so we can load him in another map
Trigger:
Game Cache - Store Hero 0001 <gen> as Hero of Map01 in (Last created game cache)
And this trigger just saves the game cache.
So the trigger should look like this
Trigger:
Save Hero
Collapse Events
Player - Player 1 (Red) leaves the game with a victory
Conditions
Collapse Actions
Game Cache - Create a game cache from Learning Campaign.w3v
Game Cache - Store Hero 0001 <gen> as Hero of Map01 in (Last created game cache)
Game Cache - Save (Last created game cache)
Now we need another trigger, one that sets the next map, but first we need another map. Press the save button or Ctrl + S NOT SAVE AS.
Now once it has saved make a new map doing what i said before to make it.
Press Save As and save it as Map02.
Now go back into the campaign editor and add that make, doing what i said before.
Now right click on Map01 (not Map02) and select edit. Go back into the trigger editor and back into the Save Hero Trigger.
Add a new action.
Trigger:
Game - Set the next level to Map02.w3m
This sets the next level to Map02 so that when you have a victory it will go to that map.
Press Save (not save as)
Go back into the Campaign Editor.
You'll notice that now it looks like this:
Zoom (requires log in)
That meens that the Set Next Level action works.
Now rightclick on Map02(not the one that's branching off Map01) and select edit.
Now in Map02, go to the trigger editor.
Click on the "Variable Editor"
Zoom (requires log in)
Make a new variable called Hero with the type Unit
Zoom (requires log in)
Now get out of the variable editor
Delete the "Melee Initialization" trigger.
Make a new trigger called Load Hero.
Add the Event
Trigger:
Map initialization
This event fires as soon as the map loads.
Add the action
Trigger:
Game Cache - Create a game cache from Learning Campaign.w3v
Now this recreates the Game Cache we made in Map01 so that we can load "Hero" from it
Trigger:
Game Cache - Restore Hero of Map01 from (Last created game cache) for Player 1 (Red) at (Center of (Playable map area)) facing 0.00
This restores "Hero" which we stored in the game cache in Map01
Trigger:
Set Hero = (Last restored unit)
This sets "Hero" to a variable so that you can do stuff with him via triggers, because you wouldnt be able to reference him in triggers otherwise.
So the trigger should look like this:
Trigger:
Load Hero
Collapse Events
Map initialization
Conditions
Collapse Actions
Game Cache - Create a game cache from Learning Campaign.w3v
Game Cache - Restore Hero of Map01 from (Last created game cache) for Player 1 (Red) at (Center of (Playable map area)) facing 0.00
Set Hero = (Last restored unit)
Now your hero will be loaded.
Press Save (do i really have to tell you again not to press Save As?)
Now go back into the Campaign Editor
You'll notice that Map01 is blue, why is this? Because it's not used, AKA you cant play it from the Campaign yet.
To solve this delema press the loading screen tab
Zoom (requires log in)
Now, right click in this area
Zoom (requires log in)
And select Add Button
Zoom (requires log in)
This comes up
Zoom (requires log in)
Leave Chapter as it is
Change Title to "First Map"
Leave File Loaded as it is
and select the "Visible (first time campaign is loaded)" button.
Should look like this now:
Zoom (requires log in)
Click OK.
Go back into the General Tab.
Notice That Map01 is no longer blue.
Go back into the Loading Screen Tab
If you want to be able to access anymap without having to go to Map01 then add another button for the other maps, otherwise just go back to the general tab.
Press Save.
And thats how you make a Campaign, of course you need more maps and actual content in the map.

Good Luck with your campaign and hopefully you finish it.

This is The_Elite saying "Have Fun Everyone"
Attached Images
File type: png1.png (7.1 KB)
File type: png2.png (720 bytes)
File type: png3.png (1.0 KB)
File type: png4.png (82.5 KB)
File type: png5.png (662 bytes)
File type: png6.png (1.9 KB)
File type: png7.png (2.6 KB)
File type: png8.png (2.0 KB)
File type: png9.png (3.0 KB)
File type: png10.png (3.1 KB)
File type: png11.png (760 bytes)
File type: png12.png (6.6 KB)
10-06-2007, 06:40 AM#2
Razernok
nice tutorial. very well written in my option, like my option really matters though.
10-06-2007, 06:45 AM#3
The Elite
thanks, im gonna rep you because you put me in a happy mood
10-06-2007, 06:47 AM#4
Razernok
cool thx
10-06-2007, 09:17 AM#5
PitzerMike
Yes, it is very good.
I will have to approve it right away.
10-06-2007, 09:20 AM#6
The Elite
omg, that was faster then i thought, thats why your my favourite mod and i think you should graveyard This tutorial because this renders it obselete
10-06-2007, 10:59 AM#7
PitzerMike
Yes, true.
Someday I'll have to go through all the old imported tutorials and get rid of the obsolete ones.
10-06-2007, 11:03 AM#8
The Elite
Quote:
Originally Posted by PitzerMike
Yes, true.
Someday I'll have to go through all the old imported tutorials and get rid of the obsolete ones.
Imported? Please Explain
10-06-2007, 11:16 AM#9
PitzerMike
Imported from the old site after the big downtime/staff change in 2005.
10-07-2007, 11:35 PM#10
PsykieKILLA
Nice tutorial!

I actually didn't know how the whole hero save function worked so thank you...

+Rep
10-15-2007, 09:52 PM#11
Anopob
Thank you, it helped me in my own ways. +rep
11-23-2007, 09:36 PM#12
FOX_84killer
awsome this is good. thx now i can do it better, thanks..
11-23-2007, 10:36 PM#13
FOX_84killer
what the, am reading this and it shows, atwhere it says that the map01 is blue and it sayd go to this spott and it shows me a x??????????
11-23-2007, 11:16 PM#14
The Elite
please dont double post, there is an edit button.
Anyway clicking on the "X" will take you to the variable editor when you can create and edit variables, if you dont understant what variables are i suggest you try and learn more before you try and complete your campaign
01-01-2008, 10:17 AM#15
Arcanis
Sorry if I post to old thread, but I though that this is the best place to ask.
(And apologize if my text has typos, english is my secondary language)

So, I have this problem with "linking" maps with Campaing Editor. I did exactly like The_Elite did in this tutorial, but added some content in those maps. But after I complete the First map in campaing the second won't start automaticly after scoreboard. (as it should do, with that "Game: Set next lvl" action) Those maps are not blue (nor red) in campaing editor, and they are linked like in one picture in this tutorial. Can you help me solve this problem?