(as in character creation)
Create
Load
Delete
now what i dont know is how do i get this to execute the right proc upon click. i.e (go to the next phase in character creation after pressing create) i've tryed some different apporaces in the "command" line of the button.
client
proc
Load_Character()
var/savefile/s1=new("players/[src.mob.key]/Slot_1.sav")
var/savefile/s2=new("players/[src.mob.key]/Slot_2.sav")
var/savefile/s3=new("players/[src.mob.key]/Slot_3.sav")
Create_Character()
var/mob/newmob
var/newname=input("Hello and welcome to [world.name]. What would you like to call yourself?","Name")as text
switch(input("What would you like to be?","Type")in list("Human","dwarf"))
if("Human")
newmob=new/mob/charas/Human()
newmob.addname(newname)
newmob.loc = locate(365,79,1)
if("dwarf")
newmob=new/mob/charas/dwarf()
newmob.name=newname
usr.client.mob=newmob
SaveProc()
var/savefile/s1=new("players/[src.mob.key]/Slot_1.sav")
var/savefile/s2=new("/players/[src.mob.key]/Slot_2.sav")
var/savefile/s3=new("players/[src.mob.key]/Slot_3.sav")
switch(input("Hello [usr] which slot would you like to save to?","Save Character")in list("Slot 1","Slot 2","Slot 3"))
if("Slot 1")
src.mob.CV=src.mob.verbs
s1["CV"]<<src.mob.CV
s1["mob"]<<src.mob
s1["x"]<<src.mob.x
s1["y"]<<src.mob.y
s1["z"]<<src.mob.z
s1["name"]<<src.mob.name
if("Slot 2")
s2["CV"]<<src.mob.CV
s2["mob"]<<src.mob
s2["x"]<<src.mob.x
s2["y"]<<src.mob.y
s2["z"]<<src.mob.z
s2["name"]<<src.mob.name
if("Slot 3")
s3["CV"]<<src.mob.CV
s3["mob"]<<src.mob
s3["x"]<<src.mob.x
s3["y"]<<src.mob.y
s3["z"]<<src.mob.z
s3["name"]<<src.mob.name
NOTE: i clipped away most of the things here(to save some space), but if its needed i can post all of it, basically what i have is client/proc create, load. etc.. how do i go about getting the interface buttons to run these procs?
thanks in advance.