| 11-24-2003, 01:26 AM | #1 |
If a player has built a hero up very good and he doesn't want to go on to the nest campaigns level being level one hwhat are the steps to make a game cache? And be descriptive, I know nothing about variables. So don't leave any part out Also if you have a map with an example please post it! |
| 11-24-2003, 02:27 AM | #2 |
Here you got an exampe of a very basic cache trigger This is what you should add to your first level Events: Units - Archimonde dies Conditions: Actions: Game - Victory Player 1 (red) (Show dialogs, Show scores) Game Cache - Create a game cache from Map1.w3v ----Map1.w3v is your map name---- Game Cache - Store Paladin 0000 as Hero1 of SavedHeroes in (Last created game cache) ----You dont need variables to store/restore units, reals or integers---- Game Cache - Save (Last created game cache) ----Now you just save the cache---- Game - Set the next level to Maps\NextMapName.w3m Now this is what you should add to your next level Events: Map initialization Conditions: Actions: Game Cache - Create a game cache from Map1.w3v ----Were Map1.w3v stands for the map were you stored your hero---- Game Cache - Restore Hero1 of SavedHeroes from (Last created game cache) for Player 1 (red) at (Center of MyStartingRegion) facing 0.00 ----The Label and Category must be exactly the same as where you stored your hero in order to make it load correctly---- I will attach this file, it gots really complex triggers, i was trying to figure out if there was any way to save characters on bnet, indeed you can, but inmediatly you leave the game the cache is erased, so you can only load/save stuff inside the same game This beta version of my map supports 4 slots to save heroes |
| 11-25-2003, 12:42 AM | #3 |
Thanks a bunch |
| 11-25-2003, 12:50 AM | #4 |
np |
