- Joined
- Oct 27, 2008
- Messages
- 1,176
how much can u do with game caches?
ok i think im close but cant come up with wat im missing
- Nightelf
- Events
- Conditions
- Actions
- Unit - Replace Peasant 0000 <gen> with a Maiev using The new unit's default life and mana
- Game Cache - Create a game cache from Orbs.w3v
- Game Cache - Store (Last created unit) as Hero of Hero in (Last created game cache)
- Game Cache - Save (Last created game cache)
- Game - Set the next level to Maps\StolenSouls\Stage picker.w3x
- Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)
- Untitled Trigger 003
- Events
- Map initialization
- Conditions
- Actions
- Game Cache - Create a game cache from Orbs.w3v
- Game Cache - Restore Hero of Hero from (Last created game cache) for Player 1 (Red) at (Center of Region 000 <gen>) facing (Position of (Triggering unit))
- If ((Last restored unit) Equal to No unit) then do (Skip remaining actions) else do (Do nothing)
- Unit - Create 1 Maiev for Player 1 (Red) at (Center of Region 000 <gen>) facing Default building facing degrees
You're right, Last Created Unit unit doesn't work for replaced units. You need to use Last Replaced Unit.First you are replacing your unit with a maiev, so you have to store the last replaced unit i think or try removing the peasant and creating the maiev on his position.
That's not a problem. If you read the trigger more carefully, he only creates that unit if the one from the game cache doesn't exist.And when you are reloading it, you dont need to create the unit again, it will be created instantly.
That's not a problem. If you read the trigger more carefully, he only creates that unit if the one from the game cache doesn't exist.And when you are reloading it, you dont need to create the unit again, it will be created instantly.
Which is the same point I was trying to make... or did you not understand me properly? I'm native English, so that shouldn't happen unless you don't understand English very well .Wrong, he is not using and if the else multiple actions he is using a single line if then else, and he es using as an action: the skip remaining actions, so it would'n create that unit if there isn't anything on cache.