Ok, im trying to get a save point in like a traditional RPG, for my game. here is the code I have:
#include
client/base_num_characters_allowed = 2
client/base_autoload_character = 0
client/base_autosave_character = 0
client/base_autodelete_mob = 0
// client/base_autoload_character = 0
// client/base_autosave_character = 0
// client/base_autodelete_mob = 0
mob
Login()
..()
Write(savefile/F)
..()
if (world.maxx)
F["last_x"] << x
F["last_y"] << y
F["last_z"] << z
Read(savefile/F)
..()
if (world.maxx)
var/last_x
var/last_y
var/last_z
F["last_x"] >> last_x
F["last_y"] >> last_y
F["last_z"] >> last_z
loc = locate(last_x, last_y, last_z)
mob/book
icon = 'book.dmi'
Click()
verb/Save()
src.client.base_SaveMob()
src << "You have been saved."
area
floor
icon = 'floor.dmi'
mob
book
icon = 'book.dmi'
Im getting 1 error and I think it has to do with the lib, here it is:
C:\PROGRA~\BYOND\users\Default\lib\deadron\characterhandling \implementation.dm:147:base_Initialize:bad proc
If you can help me thanks alot.
~KnightRen
</<></<></<>
ID:179437
Dec 27 2001, 7:37 am
|
|
You don't need to do the location saving. The library does that for you now by default.
C:\PROGRA~\BYOND\users\Default\lib\deadron\characterhandling \implementation.dm:147:base_Initialize:bad proc
This function is defined in the BaseCamp library. If you look in your Libs list, is BaseCamp there? If not for some reason, then download this:
byond://Deadron.BaseCamp
If it is there, let me know and we'll figure it out.