ID:159077
 
So im trying to make something fancy using the interface. i have set up buttons for the interface:
(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.
I think that the commands must be verbs. Atleast all the commands I've used thus far are verbs.
In response to Syntty
ye thx, i think i got a hold of it.

i now get it to preform the action.

but now i want it to go from the login window in the interface to the creation window.. how do i make this happen?

In response to Narutostory
Skin Reference is your friend.