- 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:
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"
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)
-
Events
-
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)
-
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
-
If - Conditions
- 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"