Too dumb to understand

Level 13
Joined
Mar 22, 2021
Messages
174
Hi, I'm trying to use the Codeless Save and Load (Version 1.3.9 Not the reforged one) for my own map.
What I need to do is simply save different integers that are either 0 or 1 to work as booleans.
This would be done to check if a player has acomplished any achievement ingame and unlock pickable traits at game start.

I tried really hard to understand how the base system works, even with the example and the trigger comments, but I'm really to dumb to understand.
I've been stuck with this for longer than I should have.

I already have had several people explain to me how the system works but theres no case on it. I gave up trying to get it.
If someone would be kind enough to post a single example of what should I remove/add/change of the original classic system I'm more than able to do the rest by myself. I just need to save 2 or 3 integers/booleans and load them at game start, either auto or manually, but has to work with 1.27b

I could help test any map on either reforged or classic, give feedback or whatever you need in exchange.
 
I find AI like chat GPT really useful for stuff like this, since you can just keep asking over and over again until you sharpen up the exact angle that is causing you difficulty to get the point. And that way you can always get the answers right away and you don't have to feel like you are asking for favors (which isn't fun)
 
I don't feel like going into greater detail because I've already explained this many times over the years, but here's everything you need to get started.

I attached a barebones map that shows how to automatically Save and Load an Integer. In this case the Integer represents the "Highest Difficulty" that the Player has achieved, in other words, it tracks whether they beat the game on Easy, Medium, or Hard difficulty. Note that this is just an example, you can make the saved Integer represent ANYTHING you want, and easily add more Integers. Just read the comments in the triggers and follow the pattern.

You can only save and load Integers. But an Integer can represent anything. Try to use your imagination and think outside of the box.

Sometimes you need to save something other than an Integer, like a Hero-Type:
  • Set Variable HeroTypes[1] = Paladin
  • Set Variable HeroTypes[2] = Blood Mage
  • Set Variable HeroTypes[3] = Mountain King
In the above example, HeroTypes is a Unit-Type Array variable.

Now if you wanted to save the fact that someone was playing as the Blood Mage then you'd save the Integer 2. This is because when you load and plug this value into HeroTypes[] you will get a reference to the Blood Mage. Then 1 would get you the Paladin and 3 would get you the Mountain King. So often times you don't save the actual data - instead you save a reference to that data's [index] inside of an Array that you created.

Notes:
1) I can't promise that this system works or that my examples are flawless. The system hasn't been updated in 6 years.
2) When I say barebones, I mean that I removed a lot of features from TriggerHappy's original system that I deemed unnecessary. For example, I got rid of the Dialog menu and all of the Hero related "helpers".
3) Make sure that your Aerial Shackles ability has these settings or the system won't work (it relies on this ability):
aerialshackles.png


Here's more barebone examples of TriggerHappy's Save/Load system:

This thread has a bunch of examples:
Note how the earlier posts are from 2020 and the later ones are from 2023, I'd trust the later ones more.

This thread has an example of saving Hero-Types and their Items (nothing else):
 

Attachments

Last edited:
Back
Top