• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Player Hero Stats Tracker with Save and Load system

Status
Not open for further replies.

KPC

KPC

Level 8
Joined
Jun 15, 2018
Messages
230
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
 

Attachments

Status
Not open for further replies.
Back
Top