• 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] Loadimg map

Status
Not open for further replies.
Level 5
Joined
Oct 30, 2007
Messages
91
So i m making a map and i use caches and when i try to change maps using the change level action the game just goes back to the main screen what did i do wrong? Here's the trigger, it activates when the player types ok and its supposed to take the selected hero and move it to the other map.
  • Yes
    • Events
      • Player - Player 1 (Red) types a chat message containing ok as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Select_Unit Equal to No unit
        • Then - Actions
          • Quest - Display to (All players) the Warning message: No unit selected, p...
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Select_Unit Not equal to No unit
        • Then - Actions
          • Set Hero = Select_Unit
          • Trigger - Turn off (This trigger)
          • Trigger - Turn off Select Heros M <gen>
          • Trigger - Turn off Select Heros A <gen>
          • Trigger - Turn off Select Heros W <gen>
          • Trigger - Turn off loopa <gen>
          • Trigger - Turn off loopm <gen>
          • Trigger - Turn off loopy <gen>
          • Trigger - Turn off loopw <gen>
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Hero Equal to Archer 0233 <gen>
            • Then - Actions
              • Hero - Create Old Bow and give it to Hero
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Hero Equal to Warrior 0235 <gen>
            • Then - Actions
              • Hero - Create Rusty Sword and give it to Hero
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Hero Equal to Mage 0234 <gen>
            • Then - Actions
              • Hero - Create Wooden Staff and give it to Hero
            • Else - Actions
          • Game Cache - Create a game cache from TestMap.w3v
          • Game Cache - Store Hero as Saved_Hero_Unit of Hero in (Last created game cache)
          • Game Cache - Store (Level of Hero) as Hero_Level of Hero in (Last created game cache)
          • Game Cache - Store (Life of Hero) as Hero_Life of Hero in (Last created game cache)
          • Game Cache - Store (Mana of Hero) as Hero_Mana of Hero in (Last created game cache)
          • Game Cache - Store (Player 1 (Red) Current gold) as Player_Gold of Player in (Last created game cache)
          • Game Cache - Store (Player 1 (Red) Current lumber) as Player_Lumber of Player in (Last created game cache)
          • Game Cache - Save (Last created game cache)
          • Wait 0.50 game-time seconds
          • Game - Save game as TestMap.w3v and change level to Area1.w3x (Skip scores)
        • Else - Actions
 
Status
Not open for further replies.
Top