If you edit a script using notepad / notepad ++ you will see the word "
function rndpos_spawn_init (e)" in this case save the file as "
rndpos_spawn.lua" in the scriptbank folder.
Do the same with the script called "
plr_randomspawn"
If you want to change the name of the file you will have to change the name of the function too, in your case it would be:
"function spawn_init (e)"
"function spawn_main (e)"
so the file would be called "
spawn.lua"
First let's try as is.
Do not change the name of the scripts, in fact do not change anything at all.
Create a new map and follow the steps in the video.
On the first attempt the player spawn near the barrel rusted.
On the second attempt the player spawn near the barrel clean.
In other words, the player spawn in a random place every time you test the map; which I understand is the first objective.
Now that you have verified on your computer that the scripts work, you can now make the changes you want to adapt it to your needs.
As for the second objective.
I personally do not use standalone except when I have to try to reproduce an error that a user experiences and to try to help.
But from what I've read, you pretend just the opposite of what many people claim: GG does not keep objects between levels. If this is true, you have the problem solved.
However, if I have some free time, I will try to create a standalone with several levels and check it personally.
Through LUA you can get, but you have to modify some lua files to get it, files that would be modified as soon as you check files via steam, or an update of GG.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4