HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trouble with the game cache....

08-12-2004, 07:39 AM#1
Veragoan
Well I can seem to get this to work... Basicly on one map you select something and it sets a variable value to a number based on the selection.. then saves it to a game cache.. and its loaded into the next map so it can be used again... here are my triggers.

Map A Map Change
Code:
Event
    Player - Player 1 (Red) types a blah blah blah as An exact match
Conditions
Actions
    Set MapAValue = 2
    ------------
    Cinimatic Junk
    ------------
    Game Cache - Create a game cache from MapA.w3v
    Game Cache - Store MapAValue as 2 of 2 in (Last created game cache)
    Game Cache - Save (Last created game cache)
    Game - Set the next level to MapB.w3x
    Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)

and map b initilization trigger..

Code:
Events
    Map initilazation
Conditions
Actions
    Game Cache - Create a game cache from MapA.w3v
    Game Cache - Reload all game cache data from disk
    Set MapAValue = (Load 2 of 2 from {Last created game cache)

Anyhow.. I cant seem to get the variable to load.. probobly a simple mistake
08-12-2004, 11:41 AM#2
weaaddar
What type is MapAValue?
Also you really don't need the GameCache Reload data thingy.