HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Loading a map

02-07-2008, 12:55 AM#1
Burning Rose
So, I've been fiddling with this RPG thing for a while now, and I think I'm going to actually really start developing it. The idea is a big Campaign, with lots of quests and maps. Obviously, I'd have things like Caves and stuff as well, with the ability to go back to old maps without the whole MISSION thing. The Problem is, I don't know how to simply load a map file without having to save the game. I plan to keep the Heroes with Game Cache, obviously, so the Save Game thing is useless. Anyone know how to do things like that?

And I mean like how they do it in the Rexxar Campaign; Bam, new map, no score screen, no defeat / victory box, and no Saved Game File.
02-07-2008, 01:28 AM#2
Zandose
Trigger:
Untitled Trigger 001
Events
Conditions
Collapse Actions
Game - Load LoadFile.w3z (Skip scores)
Game - Save game as SaveFile.w3z and load LoadFile.w3z (Skip scores)
Game - Save game as SaveFile.w3z and change level to Maps\MapName.w3x (Skip scores)
If using JASS use the natives SaveGame, ChangeLevel, and LoadGame.
02-07-2008, 01:34 AM#3
Burning Rose
No, not saving the Game. The point is that I'm not using that, I just want to load the map >_< Game Caches do the rest
02-07-2008, 01:45 AM#4
Zandose
Then just use the load one. I added the save ones because..uh..idk. Anyways, Game Cache and load.
02-07-2008, 01:51 AM#5
Burning Rose
No, because that loads a saved game file, not a map.
02-07-2008, 02:41 AM#6
Zandose
I've uploaded a map but it seems to be bugged and I don't know why. When you jump from the first map to the second map you get the Battle.net message that your "disconnecting..." or something. You can just type "-next" again before your disconnected to get to the 3rd map.

Adding Maps to the campaign (needed before you can use triggers to change levels):
Open the campaign editor
Under the "general" tab right click in the "Map Files" area and add your maps.
In the campaign editor, in the menu "File" select "Save Campaign".
Now anytime you want to edit one of the maps open the Campaign Editor, load up the campaign, right click the map under "Map Files" and select "Edit Map". You can also just edit the orginal map and add it to the campaign list each time, updating the current map in the campaign.
If the maps name is blue and it crashes when you try to save go to the tab "Loading Screen" in the Campaign Editor and add a "Campaign Screen Button". That should fix the blue and allow you to save.

Changing Maps:
Open Campaign Editor and through it open a map to edit.
Open the Trigger Editor.
Create new trigger.
Use the following trigger and whatever events you want.
Note: For "MapName.w3m" there is no "\". Just use whatever the map is called in the campagin editor.
Note 2: *.w3m is for normal warcraft 3 and *.w3x is for frozen throne.
Note 3: You can check if you did it right by looking in the campaign editor and seeing if your map now has sub-map to whatever map you wanted to change to.
Trigger:
Untitled Trigger 002
Events
Conditions
Collapse Actions
Game - Set the next level to MapName.w3m
Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)
Attached Files
File type: w3nca1-3.w3n (38.9 KB)
02-07-2008, 05:23 AM#7
The Elite
why didnt you just open the Raxar campaign? Just use WinWPQ or something to open the expantion MPQ and then export the campaign
02-07-2008, 03:32 PM#8
Alevice
THERE IS a need a savegame, not just to store the character's info, but also for stuff that changed while playing on the map (a destructable gone, new units created, etc).

Say you are in a map called "Shores" and destroy all boats there. Then you change to a map called "Bay" and buy a new rowboat. With just gamecache, you can store the hero with his new rowboat, but if you don't save the game on the "shores" map, when you go back to it, all the boats will be back there.

You have to go more or less like this.

going from map 1 to map 2

MAP1

Events&Conditions
-Criteria upon the map will change
Actions
-Save hero on gamecache
-Save map on map1.w3z file
-Set Map2 as the next level
-Change to Map2 skipping scores and crap

MAP2

Events&Conditions
-Map inits, and a game was not loaded
Actions
-Load hero from gamecache


going back from map 2 to map 1

MAP2

Events&Conditions
-Criteria upon the map will change back to map 1
Actions
-Save hero on gamecache
-Save map on map2.w3z file
-if map1.w3z exists
--Load map1.w3z
-else
--Set Map1 as the next level
--Change to Map1 skipping scores and crap

MAP1

Trigger1
Events&Conditions
-game called map1.w3z was loaded
Actions
-Load hero from gamecache