- Joined
- Jun 15, 2018
- Messages
- 195
Hello, I want to create a system for storing and reading data, using TriggerHappy's Codeless Save and Load (Multiplayer) - v3.0.1. A system that, for each player, will store the progression for all 24 basic heroes available in the melee WC3. For each hero I want to store the following statistics:
1. Wins
2. Losses
3. Kills
4. Deaths
5. Assists
I have a multiboard with KDA (Kills, Deaths, Assists) information ready. Determining wins and losses is also very easy - it will also be a trigger for recording the data:
1. Destroying the enemy team's castle
2. Forcing the enemy team to leave the game
I imagined it as something like this:
SaveMaxValue = 999
HeroWins[24]
HeroLosses[24]
SaveMaxValue = 9999
HeroKills[24]
HeroDeaths[24]
HeroAssists[24]
EDIT 2:
I already have the idea and have implemented some of the triggers. The writing and reading part remains. We need to decide how to enter (include) the read data into the Save/Load Hashtable (or other structure) which will later be used to overwrite the existing data.
I think I will somehow figure out at what point the saving of data should be done (probably before Defeating or Victoring the player). The hardest part for me is writing and reading the data, the data in the Hashtable is already easy to deal with. My guess is that reading the data should happen no sooner than 5 seconds after the game starts.
I think I correctly assign and store all values. I keep track of WLKDA (Wins, Loses, Kills, Deaths, Assists) for each hero of each player.
Items needed are:
1. performing a readout and converting it to a data structure
2. updating the readout with new information from the game
3. saving the updated data
1. Wins
2. Losses
3. Kills
4. Deaths
5. Assists
I have a multiboard with KDA (Kills, Deaths, Assists) information ready. Determining wins and losses is also very easy - it will also be a trigger for recording the data:
1. Destroying the enemy team's castle
2. Forcing the enemy team to leave the game
I imagined it as something like this:
SaveMaxValue = 999
HeroWins[24]
HeroLosses[24]
SaveMaxValue = 9999
HeroKills[24]
HeroDeaths[24]
HeroAssists[24]
EDIT 2:
I already have the idea and have implemented some of the triggers. The writing and reading part remains. We need to decide how to enter (include) the read data into the Save/Load Hashtable (or other structure) which will later be used to overwrite the existing data.
I think I will somehow figure out at what point the saving of data should be done (probably before Defeating or Victoring the player). The hardest part for me is writing and reading the data, the data in the Hashtable is already easy to deal with. My guess is that reading the data should happen no sooner than 5 seconds after the game starts.
I think I correctly assign and store all values. I keep track of WLKDA (Wins, Loses, Kills, Deaths, Assists) for each hero of each player.
Items needed are:
1. performing a readout and converting it to a data structure
2. updating the readout with new information from the game
3. saving the updated data