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

[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