Ok, this is the list of steps I would use, feel free to change it and make it better fit you, and if you need any more help ask me.
NOTE: THERE ARE SCREENSHOTS OF THE PROCESS AT lordoftheseas_IMAGES - Google Drive
- When hosting the server, first you need a way to generate a code to add to the extra settings.
-
My personal way of doing this, as there currently is not a “random string of length” node would be to have a variable (Array of strings), called ‘CharacterSet’ and make the default value have all of the characters you want present in your codes, each as it’s own entry. This will most likely be the entire alphabet, so just make it A, B, C, D, etc.
-
Create an empty string variable called Code.
-
Create a ‘Set Code’ node and make the value blank, connect this to your “On Host Server” event.
-
Make a For Loop, with the first index set to 0 and the last index set to the length of the code you want to generate (something reasonable, like 5)
-
Connect a ‘Set Code’ node to the loop body pin, and make the value of the set node to the output of an Append String node, with the input A being a random element of the Character Set variable, and B being the Code variable.