Class selection - crappy..help please. in Developer Help
|
|
Well, my selection code is kinda messy and there are several the same errors..please help. =)
world mob = /mob/create_character mob caracter icon = 'person.dmi' verb say(msg as text) view(src) << "[src] says: [msg]"
mob/create_character var/mob/character Login() character = new /mob usr << "<font color=#FFFFFF>The owners of these sites have helped making this game:" usr << "<font color=#FF0000>http://www.zelldot.tk/" usr << "<font color=#FF0000>http://www.dangersprites.tk/" usr << "<font color=#FFFFFF>also, checkout the L.O.T.M. Site !" usr << "<font color=#FF0000>http://www.lotmdot.tk/" usr << sound('lotm_world.mid',1) var/charactername = input("Whats your name ?","L.O.T.M.") character.icon = 'person.dmi' character.icon_state = input(usr,"Select your Class :") in list("warrior","mage(f)","ninja", "mage(m)","thief") if(a=="warrior") usr.HP = 200 usr.Max_HP = 200 usr.Strength = 45 usr.Defense = 30 usr.Gold = 1000 usr.Gold_Give = 0 usr.Level = 1 usr.EXP = 0 usr.EXP_Need = 200 usr.EXP_Give = 1 if(a=="mage(f)") usr.HP = 125 usr.Max_HP = 125 usr.Strength = 20 usr.Defense = 15 usr.Gold = 1000 usr.Gold_Give = 0 usr.Level = 1 usr.EXP = 0 usr.EXP_Need = 200 usr.EXP_Give = 1 if(a=="ninja") usr.HP = 155 usr.Max_HP = 145 usr.Strength = 25 usr.Defense = 25 usr.Gold = 1000 usr.Gold_Give = 0 usr.Level = 1 usr.EXP = 0 usr.EXP_Need = 200 usr.EXP_Give = 1 if(a=="mage(m)") usr.HP = 190 usr.Max_HP = 190 usr.Strength = 30 usr.Defense = 20 usr.Gold = 1000 usr.Gold_Give = 0 usr.Level = 1 usr.EXP = 0 usr.EXP_Need = 200 usr.EXP_Give = 1 if(a=="thief") usr.HP = 140 usr.Max_HP = 140 usr.Strength = 20 usr.Defense = 15 usr.Gold = 1000 usr.Gold_Give = 0 usr.Level = 1 usr.EXP = 0 usr.EXP_Need = 200 usr.EXP_Give = 1 character.loc = locate(5,5,2) character.name = charactername src.client.mob = character world << "[usr] has joined the world." usr << sound('castletheme.mid',1)
mob/Logout() world << "[usr] has left the world." del(src)
|
and the errors are :
L.O.T.M..dm:34:error:list:undefined proc
L.O.T.M..dm:35:error:a:undefined var
L.O.T.M..dm:46:error:a:undefined var
L.O.T.M..dm:57:error:a:undefined var
L.O.T.M..dm:68:error:a:undefined var
L.O.T.M..dm:79:error:a:undefined var
L.O.T.M..dm:35:error::invalid expression
I-NEED-YOUR-HELP ! I've tried to fix it around 100 times, and took some looks at demo's but I can't seem to find the right help =\
|
var/a = input(class stuff) in (classlist)
then you'll be able to check which class they've chosen.
Also, the numbers in your comments don't match the code, take the numbers out and replace them, so if someone looks at your code, they'll understand better.