• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Map Switch Trigger

Status
Not open for further replies.
Level 3
Joined
Jun 10, 2009
Messages
49
Hi!

I need GUI trigger that allows me to switch between maps if that is possible.

Example:
Common for maps: Singleplayer, 3rd person camera, Weapon attachements...
Difference : Terrain, Dodads, quests, other visual stuff

Map A: Winter theme, mountain type terrain
Map B: Summer theme, sea type terrain

Now what I want:
Unit/s owned by PlayerX enters region -Path to Map B-
Save unit/s (it saves: level (hero), skills (hero) and carried items)
Load triggerin unit/s in to Map B
And now u can walk around and have fun in Map B
When you get bored, simply get back in Map A or other map.

This can be donne in campaign editor:
1. I don't know how to do it.
2. There has to be victory condition and i dont like that fact.

So please help me.
If nothing can't be donne I'll settle for campaign version.
 
I'm not sure if it works because I'm not sure if you can access game caches from different maps (if not in a campaign)... Its pretty easy to do in a campaign (there's a tutotial here titled Map Transition)...

Scorpio9 said:
This can be donne in campaign editor:
1. I don't know how to do it.
2. There has to be victory condition and i dont like that fact.
and Campaigns do not need a victory condition...
 
Level 13
Joined
Sep 14, 2008
Messages
1,407
It's really not difficult :)

All you need is a campain including all playable map files!
And soem knowledge about gamecaches :)

See you go like this:

1. Create a gamecache variable. I name it "GC"
2. Add a trigger similar to this to your map:

Event: Unit enters region
Condition:...
Actions:

Gamecache - Create gamecache "GC.w3v"
Set GC = last created gamecache
Gamecache - Store unit in GC
Gamecache - store whatever needs to be stored. (e.g. an integer which sets the start location for the next map and so on)

And now! Important:

Gamecache - Save GC

Then you use something like:

Game - Save and switch map (save gn is nothing to worry about)
(it switches the map without showing the leading board)

Then!

New map:

Create gamecache from GC.w3v (must be the same name as the gamecache you created last map. the cache you CREATED. NOT the variable. The variable is only used to address it.)
set GC = last created gamecache
Gamecache - Load unit...
Gamecache - Load anything


Should work
 
Level 3
Joined
Jun 10, 2009
Messages
49
I'm not sure if it works because I'm not sure if you can access game caches from different maps (if not in a campaign)... Its pretty easy to do in a campaign (there's a tutotial here titled Map Transition)...


and Campaigns do not need a victory condition...

I found that Map Transition Tutorial.
It wasn't helpful, I can't make it work. To bad there isn't demo map.
I also found this: http://www.hiveworkshop.com/forums/triggers-scripts-269/anyone-who-has-done-transitions-among-campaign-maps-tutorial-34750/
 
Level 3
Joined
Jun 10, 2009
Messages
49
It's really not difficult :)

All you need is a campain including all playable map files!
And soem knowledge about gamecaches :)

See you go like this:

1. Create a gamecache variable. I name it "GC"
2. Add a trigger similar to this to your map:

Event: Unit enters region
Condition:...
Actions:

Gamecache - Create gamecache "GC.w3v"
Set GC = last created gamecache
Gamecache - Store unit in GC
Gamecache - store whatever needs to be stored. (e.g. an integer which sets the start location for the next map and so on)

And now! Important:

Gamecache - Save GC

Then you use something like:

Game - Save and switch map (save gn is nothing to worry about)
(it switches the map without showing the leading board)

Then!

New map:

Create gamecache from GC.w3v (must be the same name as the gamecache you created last map. the cache you CREATED. NOT the variable. The variable is only used to address it.)
set GC = last created gamecache
Gamecache - Load unit...
Gamecache - Load anything


Should work

Could you please make demo champaign? It would mean a world to me.
Like 2 maps, 1 hero lvl3 with 1 item and 1 ability, 2 units.
They enter region in 1st map and pass to 2nd map and vice versa.
I learn triggering faster with demo maps, that's how i learned to makef ixed 3rd person camera, floating text...etc
 
Last edited:
I found that Map Transition Tutorial.
It wasn't helpful, I can't make it work. To bad there isn't demo map.
I also found this: http://www.hiveworkshop.com/forums/triggers-scripts-269/anyone-who-has-done-transitions-among-campaign-maps-tutorial-34750/

well, it worked for me... basically you just need to save the things you need to save in the game cache, save it then load a new map... BTW its not a good idea to just copy paste everything that is said in the tutorials, you should just make them as examples and create the system yourself.

If you want I can send you a map that I dumped that has a working map trans later...
 
Level 3
Joined
Jun 10, 2009
Messages
49
well, it worked for me... basically you just need to save the things you need to save in the game cache, save it then load a new map... BTW its not a good idea to just copy paste everything that is said in the tutorials, you should just make them as examples and create the system yourself.

If you want I can send you a map that I dumped that has a working map trans later...

I wanted to make example so i could evolve that idea, but since this is most complicated thing I've ever donne I failed.
This my msn: you can send me that map there :ah:
 
Last edited:
Status
Not open for further replies.
Top