• 🏆 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] transition among maps

Status
Not open for further replies.
Level 2
Joined
Jul 10, 2012
Messages
12
hey hivers! im trying to make the trigger about transition among map using this
http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/transitions-among-campaign-maps-6283/.I have follow everything this trigger taught,what I can do now is I can make it from map 1 to map 2 to map 3. Another 1 is from map 3 to map 1. I cant make the trigger works from map 2 to map 1,map 3 to map 2 and map 3 to map 1. So if anyone found a bug,there is a file attached below here. Here is my trigger:
  • Map Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game Cache - Create a game cache from CommonCache.w3v
      • Set CommonCache = (Last created game cache)
      • Set LoadingFrom[1] = FromMap1 <gen>
      • Set LoadingFrom[3] = FromMap3 <gen>
      • Set Map2NewGame = False
      • Trigger - Turn off (This trigger)
      • Trigger - Run Load <gen> (ignoring conditions)
  • Sub Starts
    • Events
      • Game - A saved game is loaded
    • Conditions
    • Actions
      • Game Cache - Create a game cache from CommonCache.w3v
      • Set CommonCache = (Last created game cache)
      • Trigger - Run Load <gen> (ignoring conditions)
  • Go To Map 1
  • Events
    • Unit - A unit enters ToMap1 <gen>
  • Conditions
    • ((Entering unit) is A Hero) Equal to True
  • Actions
    • Set LeftFromMap = 2
    • Game Cache - Clear all labels of Units in CommonCache
    • Game Cache - Store (Entering unit) as Hero of Units in CommonCache
    • Game Cache - Store (Life of (Entering unit)) as HeroLife of Units in CommonCache
    • Game Cache - Store (Mana of (Entering unit)) as HeroMana of Units in CommonCache
    • Game Cache - Store LeftFromMap as LeftFromMap of Variables in CommonCache
    • Game Cache - Store Map2NewGame as Map2NewGame of Variables in CommonCache
    • Game Cache - Save CommonCache
    • Unit - Remove (Entering unit) from the game
    • Game - Save game as Saves\TransTutMap2.w3z and load Saves\TransTutMap1.w3z (Skip scores)
  • Load
    • Events
    • Conditions
    • Actions
      • Game Cache - Reload all game cache data from disk
      • Set LeftFromMap = (Load LeftFromMap of Variables from CommonCache)
      • Set Map3NewGame = (Load Map3NewGame of Variables from CommonCache)
      • Game Cache - Restore Hero of Units from CommonCache for Player 1 (Red) at (Center of LoadingFrom[LeftFromMap]) facing 0.00
      • Unit - Set life of (Last restored unit) to (Load HeroLife of Units from CommonCache)
      • Unit - Set mana of (Last restored unit) to (Load HeroMana of Units from CommonCache)
  • Map Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game Cache - Create a game cache from CommonCache.w3v
      • Set CommonCache = (Last created game cache)
      • Set LoadingFrom[1] = From Map 1 <gen>
      • Set LoadingFrom[3] = From Map 2 <gen>
      • Set Map3NewGame = False
      • Trigger - Turn off (This trigger)
      • Trigger - Run Load <gen> (ignoring conditions)
  • Sub Starts
    • Events
      • Game - A saved game is loaded
    • Conditions
    • Actions
      • Game Cache - Create a game cache from CommonCache.w3v
      • Set CommonCache = (Last created game cache)
      • Trigger - Run Load <gen> (ignoring conditions)
  • Go To Map 1
    • Events
      • Unit - A unit enters To Map 1 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Set LeftFromMap = 3
      • Game Cache - Clear all labels of Units in CommonCache
      • Game Cache - Store (Entering unit) as Hero of Units in CommonCache
      • Game Cache - Store (Life of (Entering unit)) as HeroLife of Units in CommonCache
      • Game Cache - Store (Mana of (Entering unit)) as HeroMana of Units in CommonCache
      • Game Cache - Store LeftFromMap as LeftFromMap of Variables in CommonCache
      • Game Cache - Store Map3NewGame as Map3NewGame of Variables in CommonCache
      • Game Cache - Save CommonCache
      • Unit - Remove (Entering unit) from the game
      • Game - Save game as Saves\TransTutMap3.w3z and load Saves\TransTutMap1.w3z (Skip scores)
  • Go To Map 2
    • Events
      • Unit - A unit enters To Map 2 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Set LeftFromMap = 3
      • Game Cache - Clear all labels of Units in CommonCache
      • Game Cache - Store (Entering unit) as Hero of Units in CommonCache
      • Game Cache - Store (Life of (Entering unit)) as HeroLife of Units in CommonCache
      • Game Cache - Store (Mana of (Entering unit)) as HeroMana of Units in CommonCache
      • Game Cache - Store LeftFromMap as LeftFromMap of Variables in CommonCache
      • Game Cache - Store Map3NewGame as Map3NewGame of Variables in CommonCache
      • Game Cache - Save CommonCache
      • Unit - Remove (Entering unit) from the game
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Map2NewGame Equal to True
        • Then - Actions
          • Game - Save game as Saves\TransTutMap3.w3z and change level to Test Trans 2.w3x (Skip scores)
        • Else - Actions
          • Game - Save game as Saves\TransTutMap3.w3z and load Saves\TransTutMap2.w3z (Skip scores)
  • Load
    • Events
    • Conditions
    • Actions
      • Game Cache - Reload all game cache data from disk
      • Set LeftFromMap = (Load LeftFromMap of Variables from CommonCache)
      • Set Map2NewGame = (Load Map2NewGame of Variables from CommonCache)
      • Game Cache - Restore Hero of Units from CommonCache for Player 1 (Red) at (Center of LoadingFrom[LeftFromMap]) facing 0.00
      • Unit - Set life of (Last restored unit) to (Load HeroLife of Units from CommonCache)
      • Unit - Set mana of (Last restored unit) to (Load HeroMana of Units from CommonCache)
 

Attachments

  • TestTrans.w3n
    61.1 KB · Views: 55
Last edited:
Status
Not open for further replies.
Top