• 🏆 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!

Game Caches and Campaigns (help please)

Status
Not open for further replies.
Level 2
Joined
Feb 7, 2009
Messages
25
Hey... im trying to make a campaign, and im having some troubles with game cache from one map to another...

Map 1 triggers (save):
  • Stone Exit Test
    • Events
      • Unit - A unit enters Stone Exit <gen>
    • Conditions
      • (Entering unit) Equal to Player
    • Actions
      • Game - Display to (All players) the text: Saving...
      • Game Cache - Create a game cache from Map 1.w3v
      • Set GameCache = (Last created game cache)
      • Game - Show custom campaign button 2
      • Game Cache - Store Player 0073 <gen> as HERO of CATEGORY in GameCache
      • Game Cache - Save GameCache
      • Game - Victory Player 1 (Red) (Show dialogs, Skip scores)
Map 2 triggers (load):

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game Cache - Create a game cache from Map 1.w3v
      • Game Cache - Restore HERO of CATEGORY from (Last created game cache) for Player 1 (Red) at (Center of (Playable map area)) facing 0.00
Can any1 tell me why it isn't working?? :confused:



And so on to the second question about campaigns:
How can i make it so that when u finish Map 1, you go directly to Map 2 instead of entering the menu in between?





if you need more information to help me, just say what kind you need :)
also: not that i just copied the trigger as text, since im not experienced with triggers on the forum :)
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
I don't know why it isn't loading. I'm using almost the same triggers in my campaign. Maybe the map name is incorrect. Is it w3x and not w3n? Maybe remove the space from the name. Try adding a second of wait between "save game cache" and victory. Or save <triggering unit> instead of specific unit. Try setting the triggering unit to a variable and then saving it.

The other thing:
  • Game - Set the next level to MapName.w3x
    • Game - Victory Player 1 (Red) (Show dialogs, Skip scores)
 
Status
Not open for further replies.
Top