Custom Variable Save/Load Code

Warraven

New Member
Reaction score
1
Hello people, I have a map that is going quite well, and I now need help with the final touch.
It is the save/load code, I am going to use this save/load code to save a variable. Such as a players rank and score, I only want it small with abit of colors and only using:
Code:
abcdefghijklmnopqrstuvwxyz ( [COLOR="Yellow"]Yellow[/COLOR] )
ABCDEFGHIKLMNOPQRSTUVWXYZ ( [COLOR="Lime"]Green[/COLOR] )
1234567890 ( [COLOR="DarkOrange"]Orange[/COLOR] )
I have had a read about the tutorial section and could only find save codes which are for RPGs and have alot with it, I only need a simple one that just loads ranks and score.
I know it is possible but im not a genious at save/load codes.
Can anyone help?
Thanks in advance!
 

Chocobo

White-Flower
Reaction score
409
http://www.thehelper.net/forums/showthread.php?t=49392

For colors you can modify the string output (encode the integers with the script, then check for each digit and add a |cfxxxxxx depending on the digit type).

example :
You save and you get a string called s (for instance it handles the string "ABCD-1234").
Check for how long is the string s : Set integer i = (Length of s)
Create a loop :
For Loop (Integer A) from 1 to i, (Do Actions) ; Loop - Actions
then just check for each digit, in the reverse mode (else your string will be added new digits ; for instance "|cf000000ABCD-1234" is 18 strings long)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top