[Trigger] Game Cache Problems

Status
Not open for further replies.
Level 3
Joined
Jun 15, 2008
Messages
23
I began trying to learn campaign levels and saving heroes, but something seems wrong with loading the hero... I tried to check campaign map tutorials, even though I learned, it seemed to not fix my problems. I'll list my triggers for map 1 and 2.

  • Actions
    • Trigger - Turn off (This trigger)
    • Cinematic - Fade out over 5.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
    • Game Cache - Create a game cache from Heroes.w3v
    • Set GameCacheHeroes = (Last created game cache)
    • Game Cache - Store HeroUnit[1] as KevinSword of Heroes in GameCacheHeroes
    • Game Cache - Store HeroUnit[2] as Kinju of Heroes in GameCacheHeroes
    • Game Cache - Store HeroUnit[3] as Kyle of Heroes in GameCacheHeroes
    • Game Cache - Store HeroUnit[4] as RolandMounted of Heroes in GameCacheHeroes
    • Game Cache - Store HeroUnit[5] as Alystryx of Heroes in GameCacheHeroes
    • Game Cache - Store HeroUnit[6] as Tesract of Heroes in GameCacheHeroes
    • Game Cache - Save GameCacheHeroes
    • Game - Set the next level to DS Camp2.w3x
    • Game - Show custom campaign button 2
    • Wait 7.00 seconds
    • Game - End game, load the map DS Camp2.w3x and Skip scores
The herounits[] variables were set at map init

This is the second map

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Limit Heroes to 1 per Hero-type (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
      • Wait 1.00 seconds
      • Trigger - Run Load Initiate <gen> (ignoring conditions)
  • Load Initiate
    • Events
    • Conditions
    • Actions
      • Game Cache - Create a game cache from Heroes.w3v
      • Set GameCacheHeroes = (Last created game cache)
      • Trigger - Run Load Char <gen> (ignoring conditions)
  • Load Char
    • Events
    • Conditions
    • Actions
      • Game Cache - Reload all game cache data from disk
      • Game Cache - Restore KevinSword of Heroes from GameCacheHeroes for Player 9 (Gray) at (Center of Start <gen>) facing 90.00
      • Game Cache - Restore Kyle of Heroes from GameCacheHeroes for Player 9 (Gray) at ((Center of Start <gen>) offset by (100.00, 0.00)) facing 90.00
      • Game Cache - Restore Kinju of Heroes from GameCacheHeroes for Player 9 (Gray) at ((Center of Start <gen>) offset by (-100.00, 0.00)) facing 90.00
      • Game Cache - Restore RolandMounted of Heroes from GameCacheHeroes for Player 9 (Gray) at ((Center of Start <gen>) offset by (-200.00, 0.00)) facing 90.00
      • Game Cache - Restore Alystryx of Heroes from GameCacheHeroes for Player 9 (Gray) at ((Center of Start <gen>) offset by (200.00, 0.00)) facing 90.00
      • Game - Display to (All players) for 30.00 seconds the text: 6

I got map to successfully load, but the characters aren't being loaded into the second map.
 
Status
Not open for further replies.
Top