• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Do need some save/load code experts

Status
Not open for further replies.
Level 2
Joined
Mar 23, 2010
Messages
7
I'm designing an RPG type map and I know how to do most of the things i need to make it interesting, except one minor thing.....

I don't know how to put save/load codes into my map like the other RPG maps.

Does anyone here know how to do that?
 
Level 2
Joined
Nov 16, 2008
Messages
24
A save-load code basically is an string which stores data for later use. Usually they have an encryption which changes the value of for examples sake "a" by positive 3, so it would then be "d" this is done by converting each character into an array the changng the current array instance so that it would be 3 extra.

So
Character[1] ="a"

then if you add 3 you would get

Character[4] ="d"

Once the code goes through encryption it is then retyped by the player to load, i'd suggest using the substring function to decode it using the oppisite value to the encryption(if the encryption value is 3 then decryption is -3).

Or you could go with one of the premade codes out there such as:
Save/Load 1
Save/Load 2
Save/Load 3
Save/Load 4
Save/Load 5
Save/Load 6
 
Status
Not open for further replies.
Top