• 🏆 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 Caches:

Status
Not open for further replies.
Level 19
Joined
Jun 16, 2007
Messages
1,574
Ok i'm a noob at mainly all triggers n here is my game cache at the moment


Earth to West City:
  • North Test
    • Events
      • Map initialization
      • Unit - A unit enters Enter Cap <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Quest - Create a Required quest titled Last Area with the description North Entrence of W..., using icon path UI\Minimap\MinimapIconCreepLoc2.blp
      • Trigger - Run North Test 1 <gen> (ignoring conditions)
  • North Test 1
    • Events
    • Conditions
    • Actions
      • Game Cache - Store (Triggering unit) as Hero of Heros in DBZCache
      • Game Cache - Store (Player 1 (Red) Current gold) as Gold of Resources in DBZCache
      • Game Cache - Store (Player 1 (Red) Current lumber) as Lumber of Resources in DBZCache
      • Game Cache - Store ((Last created quest) is completed) as Quest of Quests in DBZCache
      • Game Cache - Save DBZCache
      • Game - Set the next level to WestCity.w3x
      • Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)
Restoring In West city:
  • North Test 1
    • Events
    • Conditions
    • Actions
      • Game Cache - Create a game cache from EarthV2.w3v
      • Set DBZCache = (Last created game cache)
      • Game Cache - Restore Hero of Heros from DBZCache for Player 1 (Red) at (Center of (Playable map area)) facing 0.00
      • Set Gold = (Load Gold of Resources from DBZCache)
      • Set Lumber = (Load Lumber of Resources from DBZCache)
      • Game Cache - Clear DBZCache
      • Game Cache - Save DBZCache
      • Game Cache - Store ((Last created quest) is completed) as Quest of Quests in DBZCache
      • Player - Set Player 1 (Red) Current gold to Gold
      • Player - Set Player 1 (Red) Current lumber to Lumber
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Last created quest) is completed) Equal to True
        • Then - Actions
          • Unit - Move (Triggering unit) instantly to (Center of Enter1 <gen>)
        • Else - Actions
      • Game - Display to (All players) for 30.00 seconds the text: your Character Has ...







The Problem is That i want to detect a units last place with a quest.
But i can't find where to find "Restore Quest"
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
Perhaps you could store the quest as an integer variable?
0 = not begun
1 = begun
2 = finished
If not try storing it as a string and then convert it to an integer variable.
This is just an idea... I've never really used game catch before.
 
Level 1
Joined
Jul 2, 2008
Messages
6
Need help finding a trigger option :cute:

I cant find this in my triggers action type list, or even worse I dont know what the triggger name is :( anyone that can make this clear to me I need to know how to set my game cache thanks!
Set DBZCache = (Last created game cache)
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
I cant find this in my triggers action type list, or even worse I dont know what the triggger name is :( anyone that can make this clear to me I need to know how to set my game cache thanks!
Set DBZCache = (Last created game cache)

You just necro posted.


attachment.php

 

Attachments

  • Loc here.jpg
    Loc here.jpg
    30 KB · Views: 185
Status
Not open for further replies.
Top