Introduction
Hello! Recently I’ve been working on a save code system that makes it hard for players to cheat with, and I wanted to share it with you guys as I found it VERY helpful! Let’s get started!!!
What you will need
6 triggers (with block code)
5 wires
1 lifecycle
1 relay
1 game overlay
5 properties
The Guide!
First place down a lifecycle, and have it transmit on Game Start
when the event occurs
next make a relay and have it relay on channel Start Save Code
to All Players when receiving on Game Start
now make a trigger that triggers when recieving on Start Save Code
with this block code!
Now before we continue, we need to
make these 3 properties!
Name: Save Code, type: Text, scope: player
Name: Save IDX, type: Number, scope: player
Name: Data to be encoded, type: text, scope: player
Once you have created those make a trigger that triggers when recieving on Loop
that deactivates when recieving on Show Code
and activates when recieving on Loop
and add this block code to it
[1]
Next, make a game overlay that does this block code when recieving on
Show Code
Now before we continue we need to make 2 more properties!
Name: Cash, Type: Number, Scope: Player, Value: [any number here]
Name: Character Equiped, Type: Text, Scope: Player, Value: [just put a random name you can think of here for testing]
And now we are set!
Place a trigger that when recieving on Encode Cash
triggers.
add this block code to it!
Now Duplicate that trigger and change it to recieve on Character Equiped
Edit the block code to set the Data to be encoded property to the Character Equiped Property!
next wire the Encode Cash trigger to the Trigger that recieves on Loop
this wire will activate the trigger
now make a new trigger with a delay of 0.03, wire the Trigger that recieves on Loop to this new trigger, this wire will trigger the new trigger, wire this new trigger to the Encode Cash trigger and the wire will deactivate the Encode Cash trigger.
Repeat these steps for the Character Equiped trigger.
Now we are ALMOST DONE!
make a new trigger that triggers when recieving on save code finished
with this block code
Now go back to our game overlay and make it do this block code when recieving on
Final Code
and now we are FINISHED!!!
Explanation
So what this does is that we give a value to Encode, we Encode it by taking each letter and matching it with one in the alphabet and Symbols variable, by doing this we make it harder for players to just set the number to get RIDICULOUSLY high stats which they obviously didn’t obtain by normal means. however it also makes it simple enough so the player doesn’t get confused when inputting their save code! hopefully that makes sense.
Basically
Save code without encryption: very bad and easily cheatable
Save code with encryption: very good and hard to cheat!
Conclusion
In conclusion this is a save code system that makes it difficult for players to just edit the save in cheat. this doesn’t stop them from copying others save files, as that’s impossible to do for now
Hope you enjoyed!!!
oh and don’t say “Great guide” the button is there for a reason, do feel free to give feedback!
set the “Alphabet and Symbols” variable to this string of text “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.,?!@#$%^&*()” ↩︎