• 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.

[General] Save/Load... I'm just not getting it?

Status
Not open for further replies.
Level 2
Joined
Nov 30, 2013
Messages
13
Okay, I've read many tutorials on how to add a save/load function, not sure if i'm just really noob at world edit, but I can't seem to even get started on a save/load trigger. I know its alot to ask, but perhaps someone can give me a step by step tutorial on how to do it? or a video?
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
Okay, I've read many tutorials on how to add a save/load function, not sure if i'm just really noob at world edit, but I can't seem to even get started on a save/load trigger. I know its alot to ask, but perhaps someone can give me a step by step tutorial on how to do it? or a video?

The save/load system should probably come last, but you should design your map so it will be easy to take advantage of. It all comes down to what things you want the player to save. That will determine how long the code will be more or less.

You should keep track of everything you want a player to keep when they load their code (the hero, the hero's level, the hero's items, the hero's stats, etc.). Some of these things come for free (you can just call native functions on a hero handle to get these values). Others might not if you have special attributes (e.g. which quests has the hero beaten).

All the code is, is a mapping of those values (usually integers) to characters in such a way that people can't randomly guess correct codes.

Once you have your systems underway and all the important information in data structures or readily accessible for a save system, then you should look into it. Otherwise I would not worry too much.
 
Status
Not open for further replies.
Top