You are both asking entirely different questions:
* DaChevs: How to save a player's data between player logins in a single mission, as used by Sahrani Life and Evolution. For a start, it is usual to set the mission as persistent ("persistent=1;" in description.ext) so that the mission won't end if all the players logged off. Otherwise, when you returned later, the data would have been lost anyway when the server started the mission the second time. This is best done with publicVariable as you suspected. There is no absolute connection with onPlayerConnected, though you could use that to help determine when a new player has connected. There isn't a simple "plug-and-play" script for doing this, or I would give it to you. I never got around to doing it for SPON Money, or I would point you in that direction ;P
* D007: How to save data between different missions, including when a mission is restarted on a server. For this, look towards ArmALib but be aware that this requires an exe running on the server, so is not generally useful for most mission developers, unless they have a dedicated server to use for it (that is why I've not even bothered looking at it...).
Well, for one, you are asking about between-mission recording, not between-logins-in-the-same-mission recording. Nevertheless, people making missions like SL and Evo write their scripts specifically for those missions and it can be a non-trivial to unhook these scripts and port them across to other missions. As someone who writes generic scripts, I can tell you that there is at least twice as much work involved in making, documenting and releasing a script which will work in any mission compared to making one that will only work for you in your own mission. However, there is nothing stopping you backwards engineering how they did it, and replicating that, or even asking the authors.
Lol I'm sure you looked at sahrani lifes files then.
I have, extensively.. they made that mission and the files there in intentionally hard to decipher.
Their file system and referencing system are so in depth.
that if you didn't start as a mission maker for that mission, it will take you a week just to find out what the layout is like and how to access things in any sort of timely manner..lol
City life was however very kind in their methods
.
thank you city life..lol..
I spent weeks looking at those SL files. XD..
Believe me it's not that I haven't tried to reverse engineer it..
I wouldn't be here asking the "how do i" question If I hadn't first tried to do it myself.
I know a lot of people come here and just ask people to write scripts for them but that's not the way I work.
If I ask any question here, you can bet for at least 24 hours of actual work time.
I have tried to get that particular script working lol..
Usually more like 2 days pass before I ask anyone anything.
way I see it is if you don't rack your brain learning it, you will never retain the info you learned anyway.
getting info easy, just lets you forget it easy.
..
saving info just for one mission, until the server restarts, would be just fine for starters though..
I'm just trying to make it easy servers who get the missions my brother and I make.
So they and I, can easily incorporate the save script.
It's just a great piece of rpg
But I have checked forms and biki and wiki and Bi and comref and and..lol..
I'm just stumped..
Thanks for all the hard work you must of put into the spon script by the way.
Huge benefit things like that give the community.
Works like a charm for Quarantine Unleashed.
and you didn't horde it all for yourself..lol..
thank you guys very much for your insight.
I Will look into all of these methods..
If anyone has a script that might show an example I'd sure appreciate it but np if not.
We'll just wee what we can see.