this is a saving test for five nights at freddys 1s1s. (update 4/14/2021: probably not gonna make fnaf1s1s but this project is still cool) hit space to change your night! v HOW IT WORKS v ---------------------------------------------------------------- this saves the name every user that uses the project (provided it fits in the 128 character limit), or more specifically, clicks the green flag. normally, text cannot be saved to cloud variables, only numeric values. In order to save usernames, characters, or the individual letters, numbers, and symbols that spell out a username, are converted to 2-digit values that can be saved in a cloud variable (i.e. the letter 'e' would be saved as '05'). Values range from 00-99, giving me 100 total characters that can be included (most of which don't get used). Values then get strung together to "spell out" the username as numbers. this can then be saved to a cloud variable. to save multiple names to a single variable, I used an unused value, 88, as a spacer to separate different usernames. when the program is reading a string of values, it will always go until it sees an 88. That tells the program the username has ended and to add it to a list. the nights are a bit easier as they are already numbers so they can just be saved. since they are always 1 digit, I don't have to do anything fancy to detect which night is which and I just can go down the line to get them and put them in lists. while the lists themselves are, for the most part, not much more than displays, they actually do serve an important purpose: matching usernames and nights. the position of information in the 2 lists, usernames and usernights, directly correspond with one another in a way that perfectly lines up which name goes with which night. when retrieving information, the program checks to see what names are in the same postitions in the usernames list as the nights are in the nights list. this lets it make sure the user receives the correct information when running the program.
V1.0: initial release. Saves names and nights. V1.01: bug fixes V1.1: simplified nights variable a little and added ability to delete data V1.11 fixed a bug to update playerIDs when someone's data is deleted _______________________________________________________ More updates in the future? maybe i'll set it up to hold more people.