Sorry about that misleadin title but no one will ever reply. I just am sick of no one replying. Just help me and I'll Be out of your hair
I tried copy and pasting Super16's save system and make it work with mine. But I have 2 errors. I tried everything I could think of but no luck.
#if !defined(SUPER_NEW)
#define SUPER_NEW "New Character"
#endif
#if !defined(SUPER_LOAD)
#define SUPER_LOAD "Load Character"
#endif
#if !defined(SUPER_QUIT)
#define SUPER_QUIT "Quit"
#endif
var/list/HTML_TAGS = list ("<",">")
mob/proc/Check_For_Tags(T as text,var/list/L)
for(var/V in L)
if(findtext(T,V))
return TRUE
world
mob = /mob/game/
turf = /turf/
name = "Super Saving"
client
proc
Load()
var/savefile/load
load = new ("Save Files/[src.mob.ckey]")
load["mob"] >> src.mob
load["x"] >> src.mob.x
load["y"] >> src.mob.y
load["z"] >> src.mob.z
Save()
var/savefile/save
save = new ("Save Files/[src.mob.ckey]")
save["mob"] << src.mob
save["x"] << src.mob.x
save["y"] << src.mob.y
save["z"] << src.mob.z
New()
..()
world << "[mob] has entered."
Del()
world << "[mob] has left."
src.mob.client.Save()
del src.mob
mob/game
Login()
var/list/L = newlist()
if(fexists("Save Files/[src.client.ckey]"))
L.Add(SUPER_NEW,SUPER_LOAD,SUPER_QUIT)
var/menu = input("Character File Found.","[world.name]") in L
switch(menu)
if(SUPER_NEW)
create_character()
if(SUPER_LOAD)
src.client.Load()
if(SUPER_QUIT)
del(src)
else
L.Add(SUPER_NEW,SUPER_QUIT)
var/newmenu = input("Character File Not Found.","[world.name], \"New Player\"") in L
switch(newmenu)
if(SUPER_NEW)
create_character()
if(SUPER_QUIT)
del(src)
..()
create_character
mob/create_character
var/mob/character
Login()
var/charactername = input("Hello, Pick a name for your character, something you wish for people to call you in the game.","Character Name?")
switch(input("Below pick one of the following backgrounds you wish for your character to be. It determines what skills you get in the game.","Character Background?") in list("Knight Male","Wizard Male","Elven Warrior Male","Knight Female","Wizard Female","Elven Warrior Female"))
if ("Knight Male")
character = new /mob/characters/KnightM()
if ("Wizard Male")
character = new /mob/characters/WizardM()
if ("Elven Warrior Male")
character = new /mob/characters/ElvenWarriorM()
if ("Knight Female")
character = new /mob/characters/KnightF()
if ("Wizard Female")
character = new /mob/characters/WizardF()
if ("Elven Warrior Female")
character = new /mob/characters/ElvenWarriorF()
character.name = charactername
src.client.mob = character
del(src)
..()
mob/characters/KnightM
icon = 'player.dmi'
icon_state = "Male"
mob/characters/WizardM
icon = 'wizard.dmi'
icon_state = "Male"
mob/characters/ElvenWarriorM
icon = 'elven warrior.dmi'
icon_state = "Male"
mob/characters/KnightF
icon = 'player.dmi'
icon_state = "Female"
mob/characters/WizardF
icon = 'wizard.dmi'
icon_state = "Female"
mob/characters/ElvenWarriorF
icon = 'elven warrior.dmi'
icon_state = "Female"
ID:148988
Aug 1 2002, 2:17 pm (Edited on Aug 1 2002, 3:15 pm)
|
|
In response to Codesterz
|
|
Codesterz wrote:
Oh yeah the errors were o.O It's telling you that you are referring to the proc 'create_character', but it doesn't exist. I mean come on, don't you even read the error message? It says right there what the problem is. Sorry if I sound rude, but you've got to at least read the error message. If you can't even define a proc, then you aren't ready to be creating games. Check out the 'Tutorials' section of the website. |
save file.dm:57:error:create_character:undefined proc
save file.dm:67:error:create_character:undefined proc
I'll be back later. Please help me. I need to finish this game.