- Joined
- Dec 14, 2009
- Messages
- 48
hi again,
Ive got a problem with my Caches. Ill start with the triggers Im currently using
Map1 - here you only choose a character you want to play, then it does this
-initialization trigger
after I played the map first time it was OK, but when I played it second time (opened Map1, choosed hero so the save trigger runned again) but the values were like QuestPhase was 14, experience was 0.00,... these were the values when I ended the map when I played it first time (at the end was a save function runned in bloodwraith map).
It seems like these caches are not removing after I close war3. I have tried this to figure it out but it didnt helped:
Map1 - the same function as above but changed a litle bit
thanks in advance
Ive got a problem with my Caches. Ill start with the triggers Im currently using
Map1 - here you only choose a character you want to play, then it does this
- Game Cache - Create a game cache from RoHCache.w3v
- Set Cache = (Last created game cache)
- Game Cache - Store Chosen_Hero as Chosen_Hero of HERO in Cache
- Game Cache - Store 1 as Starting_Location of MAIN in Cache
- Game Cache - Store 40.00 as ExperiencePercentage of MAIN in Cache
- Game Cache - Save Cache
- Game - Save game as <Empty String> and change level to Maps\RoH\BLOODWRAITH.w3x (Skip scores)
-initialization trigger
- Game Cache - Create a game cache from RoHCache.w3v
- Set Cache = (Last created game cache)
- Trigger - Run Load Cache <gen> (checking conditions)
- Game Cache - Restore Chosen_Hero of HERO from Cache for Player 1 (Red) at (Center of Region_Reviveing) facing 0.00
- Set QuestStory_Phase = (Load Phase of QUEST from Cache)
- Set ExperienceGain_Percentage = (Load ExperiencePercentage of MAIN from Cache)
after I played the map first time it was OK, but when I played it second time (opened Map1, choosed hero so the save trigger runned again) but the values were like QuestPhase was 14, experience was 0.00,... these were the values when I ended the map when I played it first time (at the end was a save function runned in bloodwraith map).
It seems like these caches are not removing after I close war3. I have tried this to figure it out but it didnt helped:
Map1 - the same function as above but changed a litle bit
- Game Cache - Create a game cache from RoHCache.w3v
- Set Cache = (Last created game cache)
- Game Cache - Clear Cache
- Game Cache - Clear Category MAIN in Cache
- Game Cache - Clear Category HERO in Cache
- Game Cache - Store Chosen_Hero as Chosen_Hero of HERO in Cache
- Game Cache - Store 1 as Starting_Location of MAIN in Cache
- Game Cache - Store 40.00 as ExperiencePercentage of MAIN in Cache
- Game Cache - Save Cache
- Game - Save game as <Empty String> and change level to Maps\RoH\BLOODWRAITH.w3x (Skip scores)
thanks in advance