mob
verb
Record_Adventure()
switch(input("Are you sure you would like to save your game? If you save it will overwrite your previous save.")in list("Yes","No"))
if("Yes")
var/savefile/F = new(ckey)
Write(F)
alert("Your adventure has been recorded!")
I would like to know how to integrate a way of saving the location when manually saving, and also when it auto saves when a person logs out. The coding for that is here:
mob
Logout()
var/savefile/F = new(ckey)
Write(F)
del usr
The loading character code is as follows:
if("Continue With Old Journey")
switch(input("Are you sure you want to continue?")in list("Yupper's!(Yes)", "Nah I don't really want to..."))
if("Yupper's!(Yes)")
var/savefile/F = new(ckey)
Read(F)
world << "[usr] has entered this world!=)"
if("Nah I don't really want to...")
del(usr)
Also, if you could tell me how I would be able to instead of when you click the "No"(you don't want to log in as your saved character), what the coding would be to return to the previous menu instead of being disconnected. I know the return proc would be used, just not how.
-Thanks
If needed, here is a Manual save verb:
Your welcome if you need any more help feel free to page me