PDA

View Full Version : Making a Basic Campaign


Bob27
03-21-2006, 09:54 AM
The Campaign Editor

Introduction

The Campaign Editor is very simple to use. I hope you will find this tutorial useful. The Campaign Editor can make a .w3n file (Warcraft 3 Campaign File).

General Information

8714

This section in the Campaign Editor lets you change the name of the campaign, the difficulty, the author and description.

8715

The next part of this section lets you change the minimap display.

8716

The next part of this section lets you add, edit, extract and delete maps from the campaign file.

8717

This is a picture of a demo campaign I have made, it shows two maps i have added, a minimap preview, description, name, author, difficultly, ect.

8718

Adding a Map

Adding a map to your campaign is easy. Simply in the general section click on this button
8719

The Loading Screen Section

8721

This section of the Campaign Editor lets you edit the campaign screen, add campaign button and edit the music and sounds playing during the campaign screen. This picture is how you add a button to the campaign screen

8722

8723

The next picture shows how you can change the loading screen, and the shading of it.

8724

Now to add music to your campaign screen use this part of the Campaign Editor

8725

This is a picture of the loading screen section for the demo campaign.

8726

Custom Data

The Campaign Editor lets you make custom data. It works just like the Object Editor except the units you make in this section will be avaliable in every map in your campaign. Custom data made in the Campaign Editor will be blue, not pink like data in the Object Editor.

8727

Import Manager

This import manager works just like the normel import manager, except files imported here will be avaliable for use in evrery map. Also remember that the path will not be wc3mapimported\filename it will be wc3campimported\filename.

8728

Conclusion

This is a pretty simple tutorial. I have also included bellow my tutorial for Game Caches. incase any one needs it. If you have any questions private message me or email me at bob27dav@optusnet.com.au.

Game Caches

Introduction
This tutorial will tell you how to move units and other things from map to map. Remember that Game Caches can not be used on Battle Net, and are almost only ever used for campaigns.

Creating the Game Cache

The first thing you want to do is to create a variable for the Game Cache, go into the Variale editor and create a new Game Cache, like in the pictures bellow.

8731

8732

Then when the Game Caches variable has been created use this trigger to create the Game Cache.

Create Cache
Events
Map initialization
Conditions
Actions
Game Cache - Create a game cache from TutorialCache.w3v
Set TutorialCache = (Last created game cache)
Game Cache - Save TutorialCache

Storing Heros and Other Things

Now i'll show you how to store things using a Game Cache. The following trigger can be used to store a hero.

Store Hero
Events
Conditions
Actions
Game Cache - Store Paladin 0032 <gen> as Paladin of Heros in TutorialCache
Game Cache - Save TutorialCache
Trigger - Run Store Gold <gen> (ignoring conditions)

Remember that you will have to create all the nesecary variables in order for the triggers to work. This next trigger will show you how to store a players gold or lumber. This will require a variable, unlike storing a hero.

Store Gold
Events
Conditions
Actions
Set Gold = (Player 1 (Red) Current gold)
Game Cache - Store Gold as Gold of Recources in TutorialCache
Game Cache - Save TutorialCache
Trigger - Run Store Hero Name <gen> (ignoring conditions)

This next trigger will show you how to store a heros proper name, and one of the ways it can be used in a different map.

Store Hero Name
Events
Conditions
Actions
Set HeroName = (Proper name of Paladin 0032 <gen>)
Game Cache - Store HeroName as HeroName of Heros in TutorialCache
Game Cache - Save (Last created game cache)
Trigger - Run End Game <gen> (ignoring conditions)

This will also require a variable.

Restoring things from the Game Cache

I am now going to show you how to restore all these things in a different map. The first thing we need to do is the re-create all the variables. It makes it alot easier if the new variables in the new map are the same as in the old map. After all the required variables have been made make this trigger.

Load Game Cache
Events
Map initialization
Conditions
Actions
Game Cache - Create a game cache from TutorialCache.w3v
Set TutorialCache = (Last created game cache)

Now that the Game Cache has been re-created we can restore our heros, gold and hero names. This next trigger is used to restore the hero.

Restore Gold
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Set Gold = (Load Gold of Recources from TutorialCache)
Player - Set Player 1 (Red) Current gold to Gold

Now that our gold has been restored we can make a text message appear on the screen saying Your heros proper name is the last game was: and have the heros proper name appear. You can do this with almost anything. Heres the trigger for it.

Restore Hero Name
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Set HeroName = (Load HeroName of Heros from TutorialCache)
Game - Display to (All players) for 20.00 seconds the text: (Your heros proper name is the last game was: + (Load HeroName of Heros from TutorialCache))

Conclusion

I hope you now find Game Caches alot easier, if you would like to ask me anything just private message me or email me at bob27dav@optusnet.com.au. If you need it you maybe download the demo.

Wolverabid
05-02-2007, 02:14 PM
I had to move this tutorial from its former place due to image failures.

Bob, Ralle: what's the story with these images guys?

hit
05-09-2007, 07:20 PM
For me the GameCache Party is perfect, the campaign party must be more details

Wolverabid
06-03-2007, 12:33 AM
:confused:

This tutorial was damaged.

Guess who is going to end up editing it?

Katu
06-09-2007, 11:54 AM
You?

sfger
06-16-2007, 07:46 PM
ok my main problem( im pretty good at the rest) is how to get the damn cmpaign to actoualy show up in wc3

Katu
06-17-2007, 02:53 PM
I suppose it's under Custom Campaigns.

Marcelo Hossomi
06-24-2007, 06:53 PM
I've got one question...

Do I have to open the maps of the campaign by the Campaign Editor (I mean, select it in the CE and click "Edit Map")?

Or else, the map will be as I saved it BEFORE adding it to the campaign...

Thanks! The tutorial is nice!

Wolverabid
06-30-2007, 06:02 AM
~ Tutorial (re)approved and moved to General Mapping Tutorials.

pure_pwner
09-09-2007, 01:58 PM
Thanks a lot I like youyr tutorial its easier than I taught

Paddymew
09-23-2007, 01:06 PM
I followed this tutorial and read it through but I have this problem: When I save my campaign it says that I have 2 maps "not in use, marked by blue" and whenever I play the campaign it says 0 missions and there are no "arrows" with mission names.
http://i19.photobucket.com/albums/b195/Paddymew/Unavngivet.jpg
The campaign editor looks like this, and I have followed the step to add a map to the campaign 100%!
:confused:
What should I do?

damurloc
09-27-2007, 09:09 PM
All hail the Bob :thumbs_up:
Seriusly this is a good tutorial, Im not making a campaign but I need a ****load of triggers in my new map.
3/5 Buffs
:pal::pal::pal::pal::pal:

Bob27
09-28-2007, 02:49 AM
I followed this tutorial and read it through but I have this problem: When I save my campaign it says that I have 2 maps "not in use, marked by blue" and whenever I play the campaign it says 0 missions and there are no "arrows" with mission names.
http://i19.photobucket.com/albums/b195/Paddymew/Unavngivet.jpg
The campaign editor looks like this, and I have followed the step to add a map to the campaign 100%!
:confused:
What should I do?

You probably didn't add Loading Screen buttons, go to the Loading Screen tab, and then right click on the blank white space, and click add new button. Then you can choose what you want it to say as its chapter, its name and whether or not it appears straight away when you load the campaign.

All hail the Bob :thumbs_up:
Seriusly this is a good tutorial, Im not making a campaign but I need a ****load of triggers in my new map.
3/5 Buffs
:pal::pal::pal::pal::pal:

Glad that you liked it :)

UchihaSasuke.gr
09-30-2007, 01:22 PM
Really good thread!This will surely help people creating their campaigns!

7fanfer7
10-09-2007, 11:25 PM
thx it a helped

Parrothead
10-15-2007, 10:18 PM
It says the next trigger is to restore the hero but it shows how to restore gold :)

Mysterio
12-02-2007, 09:21 AM
Yea.. good tutorial :thumbs_up:

Da)sniper
12-07-2007, 01:08 PM
Um, is it just me or is your tutorial map not working? It saves as a website and when you open the website it wants to download the website again! And its a endless loop!

Dark Hunter1357
12-11-2007, 04:53 PM
How to share trigger data between maps ??

damurloc
12-11-2007, 09:14 PM
Im really grateful about this Thread now, im making a Halloween vs Easter vs Christmas campaign, thank you oh mighty Bob. You get to pat my cat :ah:

cyrusmorti
01-29-2008, 12:39 AM
For some reason it won't show up in the actual campaign screen. I had the same problem as Paddymew above and fixed it. Now it lets me save and the button won't appear in-game.
EDIT nevermind, I had the game running when I saved the campaign and when I turned it off and started it up again, the button showed up.

3rgytr54
04-06-2008, 11:50 PM
I had the button problem, I never knew... thanks for writing this :grin:

+ rep

Ravenore
04-24-2008, 01:13 PM
Forgive my "whelpness" (started today to learn how to make triggers and that stuff) and my bad English, but I have some simple questions. When I create the variable for "Hero Name":
-Do I have to create a "Hero Name" variable per each different hero on the same campaign?
-On the variable type when I create the "Hero Name", do I need to put Game Cache or what kind of variable type I must to put on it? I'm stuck there.

Thanks in advance, and hello :wink:

jjlendaya
05-27-2008, 04:23 PM
I have a question though, when I use the custom data instead of the object editor in the map, it works fine when I place the custom units in the editor but when I test the map, all the custom units and spells don't show up in game play, when I switch back to the editor the custom units and spells are still there. How do I fix this? Do I have to copy paste all the custom units and spells I made in the campaign editor to the map's object editor?

vegetation
07-23-2008, 01:35 AM
I have a problem, i did everything in this tutorial but when i open my compaign, there is nothing that apear and when i test my map, my warcraft 3 shut down. Can anyone help me?

Wupday
07-24-2008, 05:54 PM
I have a question though, when I use the custom data instead of the object editor in the map, it works fine when I place the custom units in the editor but when I test the map, all the custom units and spells don't show up in game play, when I switch back to the editor the custom units and spells are still there. How do I fix this? Do I have to copy paste all the custom units and spells I made in the campaign editor to the map's object editor?

I got the same issue...

Furthermore i got a problem with starting the actual campaign ingame.... i choose the first map and screens goes black and then switches back to the same screen with buttons :(

Dark Hunter1357
07-27-2008, 06:20 AM
jjlendaya: To test campaigns, you must save them from the campaign editor and run them from ingame.
Wupday: Your map may be corrupted (trigger error, or most likely a corrupted model)

Flame_Phoenix
07-31-2008, 06:31 PM
How do I make it if I want to store an item?? There is no "Store Item" thing =S

Aeroblyctos
07-31-2008, 06:32 PM
No there's not. That is why you must save heroes and those heroes have items.

Flame_Phoenix
07-31-2008, 06:39 PM
Mmmmm, I am sure there is a way of doing it, however it is not GUI...
I will look into this problem I didn't see and et some information.
Else there is another way, but it is messy:
1 - The game ends
2 - Give all items from the bag to a few dummy carrier units
3 - load this units into the next level
4 - Take their items into the bags again. =P

donald333
08-17-2008, 12:09 AM
Your tutorial on campaign editor have helpt me alot !
ty

Shadelord
10-20-2008, 03:57 AM
I have a problem, I have made a level one for my campaign and made my level 2 not visible, but when I complete level 1, level 2 doesn't show up. Why is this happening?
EDIT/ answer: Nvm I figured it out you should have put something in about showing the next campaign button trigger, it would have helped....

dimasa3
12-13-2008, 02:03 PM
I followed this tutorial and read it through but I have this problem: When I save my campaign it says that I have 2 maps "not in use, marked by blue" and whenever I play the campaign it says 0 missions and there are no "arrows" with mission names.
http://i19.photobucket.com/albums/b195/Paddymew/Unavngivet.jpg
The campaign editor looks like this, and I have followed the step to add a map to the campaign 100%!
:confused:
What should I do?


Im getting the same problem.My maps arent like in the deemo campaign but just like in Paddymews picture. How do i link (or what ever i have to do) these maps togather so they look like in the demo campaign?

x0fo0x
12-17-2008, 12:34 PM
TYhttp://www.hiveworkshop.com

LightxKira
01-30-2009, 09:30 AM
Yea.. im really new um i just wanna know how the hell do i make objectives. i cant move the dam spawner to something different and all my models dont work. can i get some help?

Gamecrafter_DK
01-30-2009, 04:13 PM
As far as i know, 2 things are missing from what i want from this tutorial. How do i load the hero? and not just his name? it doesn't make any sense to me. and, also, how do you close down this map, and move on to the next? i can't find a trigger for it.

CheatEnabled
01-31-2009, 03:59 AM
Yea.. im really new um i just wanna know how the hell do i make objectives. i cant move the dam spawner to something different and all my models dont work. can i get some help?

objectives, by this do you mean what you must do to win the map?

what is the dam spawner?

SAJE
02-23-2009, 08:42 AM
As far as i know, 2 things are missing from what i want from this tutorial. How do i load the hero? and not just his name? it doesn't make any sense to me. and, also, how do you close down this map, and move on to the next? i can't find a trigger for it.

agreed Im trying to figure it out once I do Ill post ya :)

saphiree
03-03-2009, 01:00 PM
I also have a fucked problem which havent got answered in any thread...
I have made Custom models and stuff, in the campigns "Custom Data", but then, when i try place a unit in the map, i cant find it anywhere :S

plz help, cus i want custom stuff in my map. and i dont guess i have to Copy/Paste all the way through :S

EDIT: nvm got it work, i just had to open the map via campaign editor :D

ninjaen
03-03-2009, 07:35 PM
hey im having a problem when i have made loading screen buttons but i want to that when first mission is complete the player should be able to play the next and so on

marcelluspye
03-12-2009, 10:51 PM
When you use the custom data thing, where do custom units show up? I have checked in campaign, custom,meelee, etc. Where did my guy go? also, it is and undead if that makes a difference. But i know I didn't miss anything this time.

saphiree
03-13-2009, 09:02 PM
hey im having a problem when i have made loading screen buttons but i want to that when first mission is complete the player should be able to play the next and so on

Its pretty simple. in map initalation (or anywhere you want) make a trigger with the action "set next level" its under the category "game"

ubran
03-21-2009, 06:11 PM
In my RPG map that I am working on, I thought I could use Campaigns to make different Zones. (like in the W3x Rexxar campaign) However, instead of allowing me to go from zone to zone, it has to start a new map, which is irritating. Does anyone know how to make these kinds of zones within levels?

saphiree
03-21-2009, 06:24 PM
is this map multiplayer? cus then you cant make this.

If not then you need to let it load the new map.

AlienMaker
05-27-2009, 11:02 AM
For many people asking the load hero trigger i'll post it:


LoadHero
Events
Time - Elapsed game time is 0.01 seconds
Actions
Game Cache - Create a game cache from herodata.w3v
Comment text - The "herodata.w3v" should be the same game cache as in the first map where you saved the stuff.
Set HeroData = (Last created game cache)
Game Cache - Save HeroData
Set StartPoint = (Center of Start <gen>)
Game Cache - Restore label of Category from HeroData for Player 1(Red) at StartPoint facing 180.00
Comment text - Into "label" field you must write the name you saved your hero with. Into "Category" field you must write the category where you saved the hero.
Custom script: call RemoveLocation(udg_StartPoint)


But i have a question from Campaign Editor as well.

It's about the Game Interface and Game Constants. Im using different than normal values on them and it would be a to always on a new map to add them again, so is there a way to "copy" them to every map in the campaign or something like that? I've used the "Scenarion > Map Preferences > External Custom Data Source" thing and only successfully loaded object data and triggers. But Game Interface and Constants are still the default (i tried putting them already into "Use Custom Values" but didn't work either).

Edit: I figured it out somehow. I had to create the map first then add it into list and put loading screen button and then some stuff and then shut WE and open the map from campaign editor and it suddenly put them up liek *PUFF* =p ("The values show as blue since they are from the "Campaign Editor" not like pink in normal editor*).

If you want to do a campaign and use the same units in every map and triggers and some imported stuff without in need of importing and extracting all the time, you need to open Campaign Editor and from there edit the maps. You must first create the map though, just the size and tileset (Lordareon Summer, Winter, Fall etc.) and then add it to campaign and there press the "Edit Map" button.

Darkgamma
07-24-2009, 10:10 AM
ok my main problem( im pretty good at the rest) is how to get the damn cmpaign to actoualy show up in wc3

Umm, save it under campaings and load it under Custom Campaings??:slp:

MonkIE cReW
10-14-2009, 04:59 PM
there are no *save gamecaches trigger* anymore ... so what do i do?