ID:167273
 
How would I make a save point become possible? Would it look like...

mob
verb
view //whatever
and then comes the save information?

And then were would the icon code go?

Maybe like....

mob/verb
view //whatever
icon='save.dmi'
and then the save information

dm tags, please. use < then "dm" then > to start a code segment, and < then "/dm" then > to end one.

What, exactly, do you wish to save? Everything, I'd guess.
Like this, then:
obj
savepillar
verb/save()
usr.saveProc()

mob/proc/saveProc()
var/savefile/F = new(ckey) // create a savefile with the name of the player's account
src<<"Saving..."
Write(F) // write the information into the savefile
src << "Your progress has been saved."

Note that your icon is saved by default.
You'd also need to modify the Read() and Write() procs to save location:
    Write(savefile/F)
..() // Continue as normal
F["last_x"] << x // Channel x, y, and z into the savefile
F["last_y"] << y
F["last_z"] << z
Read(savefile/F)
..() // Continue as normal
var/last_x // Create variables to hold the coordinates
var/last_y
var/last_z
F["last_x"] >> last_x // Put the coordinates in the variables
F["last_y"] >> last_y
F["last_z"] >> last_z
loc = locate(last_x, last_y, last_z) // Move the player to the coordinates of the last save


Get it?
DON'T just copy my code into your game. Get the gist of what I'm doing, then write one for your specifications.


--Vito