• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Campaign ediotr questions to switch level

Status
Not open for further replies.
Level 5
Joined
Feb 6, 2009
Messages
96
Hey Everbody im trying to make a galactic rpg (campaign) where you can also fly into space... kind of like the campaign with rexxar

can somebody tell me who i can do that if i enter a region with my hero
I load the next map which is "space" but keeping the hero?

need some help here... and is it possible to also take the "Wood" and "money" too into the next level?!
 
Take a look at a "gamecache" tutorial.

Basicly it works like this:

Create gamecache X.w3v
set GamecacheVar = last created gamecache
Save int wood in GamecacheVar
Save int gold in GamecacheVar
Save unit Hero in GamecacheVar
(be sure that you hero is created in the Campaign editor "object editor" AND NOT in the one of the map!)
Save gamecache GamecacheVar.


Change map

Create gamecache from X.w3v
set ... = last created...
load int...
load int..
load unit...
 
@ pharaoh
will my hero be saved as well by this map change?


EDIT: and bonus question^^ is it possible with (gui) to make a ability which makes a shield in front of a unit which reflects spells?
 
  • Trigger
  • Events
    • Unit - A unit enters Region 000 <gen>
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to X
  • Actions
    • Game - Set the next level to Maps\MapName.w3m
For your second question, you will need Game Cache.

Make sure the file extension is correct, there's a good chance it is .w3x instead of .w3n.
 
after Set next level you would need to end the game via Victory...

saving the game will take some more space so I suggest to use Pharaoh_'s example.
  • Trigger
  • Events
  • Unit - A unit enters Region 000 <gen>
  • Conditions
  • (Unit-type of (Triggering unit)) Equal to X
  • Actions
  • Game - Set the next level to Maps\MapName.w3m
  • Game - Victory
also be aware that game caches only work between campaigns and single player maps... since you are making a campaign there would be no problem...

also on the trigger above, just directly use the map names since the maps are inside a campaign...
 
Status
Not open for further replies.
Back
Top