Here's a piece of the Code and it shows how I did things
mob
Login()
usr.icon='Male01.dmi'
usr.icon_state="Battle B"
usr.Stances += new/obj/Stances/Wanryoku
usr.Stances += new/obj/Stances/Ichihayaku
usr.loc=locate(25,27,1)
usr.overlays+=/obj/characterhead
var
list/Stances
list/WanCombos
list/WanTechs
list/IchiCombos
list/IchiTechs
Stat()
if(usr.inbattle == 1)
if(usr.Stance == "Wanryoku")
statpanel("~ COMBOS ~")
stat(src.WanCombos)
statpanel("~ TECHS ~")
stat(src.WanTechs)
if(usr.inbattle == 1)
if(usr.Stance == "Ichihayaku")
statpanel("~ COMBOS ~")
stat(src.IchiCombos)
statpanel("~ TECHS ~")
stat(src.IchiTechs)
if(usr.StanceChange == 1)
statpanel("~ STANCE ~")
stat(src.Stances)
obj
Stances
icon = 'Stances.dmi'
Wanryoku
icon_state = "Stance"
name = "~ Wanryoku ~"
suffix = "(1 Step)"
Click()
if(usr.Steps == 1)
usr << "Changing stance with 1 combo step left will be meaningless!"
usr.LockMovement = 0
usr.opened = 0
else if(usr.Stance == "Wanryoku")
usr << "You are already in this stance!"
usr.LockMovement = 0
usr.opened = 0
else
usr << "You changed your Stance to Wanryoku!"
usr.Steps -= 1
usr.LockMovement = 0
usr.opened = 0
usr.Wanryoku()
Ichihayaku
icon_state = "Stance"
name = "~ Ichihayaku ~"
suffix = "(1 Step)"
Click()
if(usr.Steps == 1)
usr << "Changing stance with 1 combo step left will be meaningless!"
usr.LockMovement = 0
usr.opened = 0
else if(usr.Stance == "Ichihayaku")
usr << "You are already in this stance!"
usr.LockMovement = 0
usr.opened = 0
else
usr << "You changed your Stance to Ichihayaku!"
usr.Steps -= 1
usr.LockMovement = 0
usr.opened = 0
usr.Ichihayaku()
The Login error message that I'm getting is
runtime error: type mismatch
proc name: Login (/mob/Login)
usr: Codesterz (/mob)
src: Codesterz (/mob)
call stack:
Codesterz (/mob): Login()