ID:146126
 
mob
Login()//call the mob login proc
usr.loc=locate(1,1,1)
var/saveingsellect = input("Character Login")in list("New Game","Load","Delete","Exit")//simple way of calling a list
switch(saveingsellect)//switch it so that you can see if its new old delete or exit
if("New Game")//if new...
usr.name = input("Your name?")as text//make them able too choose there name
input(input("What race were you born as?","Race??") in list("Human","HalfDemon","Demon","Spirit","Reincarnation"))
if("Human") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 5
usr.def = 5
usr.spd = 5
usr.hp = 50
usr.maxhp = 50
usr.da = 1
usr.maxda = 1
usr.exp = 0
usr.expmax = 10
usr.Race = "Human"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0
if("Demon") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 10
usr.def = 8
usr.spd = 5
usr.hp = 20
usr.maxhp = 20
usr.da = 5
usr.maxda = 5
usr.exp = 0
usr.expmax = 30
usr.Race = "Demon"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0
if("HalfDemon") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 10
usr.def = 10
usr.spd = 8
usr.hp = 40
usr.maxhp = 40
usr.da = 10
usr.maxda = 10
usr.exp = 0
usr.expmax = 50
usr.Race = "HalfDemon"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0
if("Spirit") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 2
usr.def = 10
usr.spd = 8
usr.hp = 50
usr.maxhp = 50
usr.da = 10
usr.maxda = 10
usr.exp = 0
usr.expmax = 50
usr.Race = "Spirit"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0
if("Reincarnation") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 8
usr.def = 5
usr.spd = 5
usr.hp = 25
usr.maxhp = 25
usr.da = 10
usr.maxda = 10
usr.exp = 0
usr.expmax = 25
usr.Race = "Rencarnation"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0







ok when i login a pick any race i become a reincarnation

mob
Login()//call the mob login proc
usr.loc=locate(1,1,1)
var/saveingsellect = input("Character Login")in list("New Game","Load","Delete","Exit")//simple way of calling a list
switch(saveingsellect)//switch it so that you can see if its new old delete or exit
if("New Game")//if new...
usr.name = input("Your name?")as text//make them able too choose there name
input(input("What race were you born as?","Race??") in list("Human","HalfDemon","Demon","Spirit","Reincarnation"))
if("Human") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 5
usr.def = 5
usr.spd = 5
usr.hp = 50
usr.maxhp = 50
usr.da = 1
usr.maxda = 1
usr.exp = 0
usr.expmax = 10
usr.Race = "Human"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0
if("Demon") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 10
usr.def = 8
usr.spd = 5
usr.hp = 20
usr.maxhp = 20
usr.da = 5
usr.maxda = 5
usr.exp = 0
usr.expmax = 30
usr.Race = "Demon"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0
if("HalfDemon") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 10
usr.def = 10
usr.spd = 8
usr.hp = 40
usr.maxhp = 40
usr.da = 10
usr.maxda = 10
usr.exp = 0
usr.expmax = 50
usr.Race = "HalfDemon"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0
if("Spirit") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 2
usr.def = 10
usr.spd = 8
usr.hp = 50
usr.maxhp = 50
usr.da = 10
usr.maxda = 10
usr.exp = 0
usr.expmax = 50
usr.Race = "Spirit"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0
if("Reincarnation") //if they chose to be a monkey
usr.icon = 'player.dmi'
usr.icon_state = "1"
usr.loc=locate(1,1,1)
usr.str = 8
usr.def = 5
usr.spd = 5
usr.hp = 25
usr.maxhp = 25
usr.da = 10
usr.maxda = 10
usr.exp = 0
usr.expmax = 25
usr.Race = "Rencarnation"
usr.Class = ""
usr.lvl = 1
usr.gold = 1000
usr.acc = 0
usr.weapon = 0
usr.armor = 0

all ways use the dm tag when posting code
input(input("What race were you born as?","Race??") in list("Human","HalfDemon","Demon","Spirit","Reincarnation"))


That line is your problem. It should be switch(input(input("What race were you born as?","Race??") in list("Human","HalfDemon","Demon","Spirit","Reincarnation")).

You'll also need to indent the if commands too.

And you're abusing usr there. Use src in Login() and most other procs too.
In response to DeathAwaitsU
DeathAwaitsU wrote:
input(input("What race were you born as?","Race??") in list("Human","HalfDemon","Demon","Spirit","Reincarnation"))

That line is your problem. It should be switch(input(input("What race were you born as?","Race??") in list("Human","HalfDemon","Demon","Spirit","Reincarnation")).

You'll also need to indent the if commands too.

And you're abusing usr there. Use src in Login() and most other procs too.

You don't need to use src in login. It defaults to src, I believe.
And, also, why is there 2 inputs? I only think 1 is needed.
In response to Sinoflife
Sinoflife wrote:
And, also, why is there 2 inputs? I only think 1 is needed.

You're right. Two inputs aren't needed.

Edge, change input(input( to switch(input. That should fix your problem.

~Sinyc.
In response to Sinoflife
Sinoflife wrote:
And, also, why is there 2 inputs? I only think 1 is needed.

Typo.