• 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.

[Trigger] Game cache problem (Not asking for a Tutorial)

Status
Not open for further replies.
Level 8
Joined
Jul 22, 2008
Messages
331
Let's say these are maps:

  • Campaign
  • Map 1
    • Map 2
  • Map 2
    • Map 3
  • Map 3
    • Map 4
And these are triggers in Map 1:

  • Initialization trigger (works)
  • Events
    • Map initialization
  • Conditions
  • Actions
    • Game Cache - Create game cache from Map 1.w3v
    • Set Game_Cache as (Last created game cache)
    • Game Cache - Save Game_Cache
  • Trigger which stores Hero (works)
  • Events
    • Unit - Unit enters Cache_My_Hero <gen>
  • Conditions
    • Unit - Entering Unit equal to My_Hero
  • Actions
    • Game Cache - Store My_Hero in Heroes of Map1 in Game_Cache
    • Game Cache - Save Game_Cache
    • Game - Show custom campaign button 2
    • Game - Set next level to Map 2
    • Wait for 1 seconds
    • Cinematic - Fade out over 3 seconds using Black Mask and color (100,100,100) and transparency 0%
    • Game - Victory _ME_ skip dialogs, skip scores

Now triggers from Map 2


  • Initialization trigger (Don't work)
  • Events
    • Map initialization
  • Conditions
  • Actions
    • Game Cache - Create game cache from Map 1.w3v
    • Set Game_Cache as (Last created game cache)
    • Game Cache - Restore My_Hero from Heroes of Map1 from Game_Cache
    • Game Cache - Save Game_Cache


  • Trigger which stores Hero (works)
  • Events
    • Unit - Unit enters Cache_My_Hero <gen>
  • Conditions
    • Unit - Entering Unit equal to My_Hero
  • Actions
    • Game Cache - Store My_Hero in Heroes of Map2 in Game_Cache
    • Game Cache - Save Game_Cache
    • Game - Show custom campaign button 3
    • Game - Set next level to Map 3
    • Wait for 1 seconds
    • Cinematic - Fade out over 3 seconds using Black Mask and color (100,100,100) and transparency 0%
    • Game - Victory _ME_ skip dialogs, skip scores
In Map 3 I've using the same steps but it wont restore Hero...
What is the problem. Do I have to Create another game cache or what?
 
Status
Not open for further replies.
Top