Tythoid
New Member
- Reaction score
- 23
Im finding game caches a real pain. There is is the alternative using a loading code but that doesnt fit the needs of the map.
What im trying to use this cache for is to at the start of the game load the last cache for each player each of these caches will have 36 peices of information. The names of all the last 12 people playing, the wins of each player and the number of games played using the name of the player playing and the saved ones a set of triggers should be able to asign each player thier wins and games played and use this to update.
What im trying though doesnt seem to work these are the triggers im using
At the moment the code is only set for load red if reds name matched pervious games redname but it will when its done load red if reds name matches any previous players name and their scores
Plus another trigger that will update a players games played just as they join incase they leave before the game ends
So what am I doing wrong and how can I fix this? Can such a idea work?
-This is a complicated trigger idea and i dont expect a reply right away so ill check back every hour-
What im trying to use this cache for is to at the start of the game load the last cache for each player each of these caches will have 36 peices of information. The names of all the last 12 people playing, the wins of each player and the number of games played using the name of the player playing and the saved ones a set of triggers should be able to asign each player thier wins and games played and use this to update.
What im trying though doesnt seem to work these are the triggers im using
Code:
Load
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Game Cache - Reload all game cache data from disk
Code:
load interger
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Name of Player 1 (Red)) Equal to (Load redname of names from GameCASHE)
Then - Actions
Set wins_red = (Load red_wins of wins from GameCASHE)
Set played_red = ((Load redplayed of gamesplayed from GameCASHE) + 1)
Else - Actions
Code:
set wins
Events<red victory>
Conditions
Actions
Set wins_red = (wins_red + 1)
Code:
Add to cache
Events
<victory>
Conditions
Actions
Game Cache - Clear GameCASHE
Game Cache - Store (Name of Player 1 (Red)) as redname of names in GameCASHE
Game Cache - Store wins_red as redplayed of gamesplayed in GameCASHE
Game Cache - Store wins_red as red_wins of wins in GameCASHE
Game Cache - Create a game cache from Galaxy.w3v
Set GameCASHE = (Last created game cache)
Game Cache - Save GameCASHE
Plus another trigger that will update a players games played just as they join incase they leave before the game ends
So what am I doing wrong and how can I fix this? Can such a idea work?
-This is a complicated trigger idea and i dont expect a reply right away so ill check back every hour-