ID:150255
 
if (base_save_verbs && new_mob.base_saved_verbs)
for (var/item in new_mob.base_saved_verbs)
new_mob.verbs += item
return new_mob
client/base_save_verbs = 1

I have been trying for a while now and i cant seem to fit this code inot my login code
Login code:
mob/verb/Save()
usr.Saves=1
Saving()

mob/proc/Saving()
var/savefile/F = new("[usr.ckey].sav")
var/VERBS=src.verbs
F["Saves"]<<usr.Saves
saved_x=x
saved_y=y
saved_z=z
..()
Write(F)



mob/Login()
var/savefile/F = new("[usr.ckey].sav")
var/VERBS=src.verbs
F["Saves"]>>usr.Saves
if(usr.Saves>=1)
switch(alert("You have a save file!",,"New,"Load","Delete"))
if("Load")
Read(F)
F["verbs"]<<VERBS
..()
Move(locate(saved_x,saved_y,saved_z))
if("New")
switch(input("What race would you like.")in list("Human","Namek","Changling","Majin","Ginyu","Android"," Saiyan"))
if("Human")
switch(input("Wich human would you like to be.")in list("Krillen","Tien","Yamtcha"))
if("Krillen")
icon='Krillen.dmi'
usr.icon_state="Krillen"
usr.Health+=500
usr.MaxHealth+=500
usr.a=1
usr.loc=locate("Start")
if("Tien")
icon='Tien.dmi'
usr.icon_state="Tien"
usr.Health+=400
usr.MaxHealth+=400
usr.Str+=5
usr.Def+=5
usr.a=1
usr.loc=locate("Start")
if("Yamtcha")
icon='Yamtcha.dmi'
usr.icon_state="Yamtcha"
usr.Health+=200
usr.MaxHealth+=200
usr.a=1
usr.loc=locate("Start")
if("Namek")
switch(input("Which namek would you like to be.")in list("Piccolo","Nail"))
if("Piccolo")
icon='Piccolo.dmi'
usr.icon_state="Piccolo"
usr.loc=locate("Start")
usr.Health+=1000
usr.MaxHealth+=1000
if("Nail")
icon='Nail.dmi'
usr.icon_state="Nail"
usr.loc=locate("Start")
usr.Health+=1000
usr.MaxHealth+=1000
if("Changling")
alert("You are Frieza.That is the only one of the changlings i have.")
icon='Frieza.dmi'
usr.icon_state="Freiza1"
usr.Health+=5000
usr.MaxHealth+=5000
usr.Str+=30
usr.loc=locate("Start")
if("Majin")
switch(input("Who would you like to be.")in list("Dabura","Majin Vegeta","Buu"))
if("Dabura")
icon='Dabura.dmi'
usr.icon_state="Dabura"
usr.Health+=2000
usr.MaxHealth+=2000
usr.Str+=10
usr.loc=locate("Start")
if("Majin Vegeta")
icon='MajinVegeta.dmi'
usr.icon_state="MajinVegeta"
usr.Health+=1000
usr.MaxHealth+=1000
usr.Str+=20
usr.Def+=9
usr.loc=locate("Start")
if("Buu")
icon='Buu.dmi'
usr.icon_state="Buu"
usr.Str+=20
usr.Health+=5000
usr.MaxHealth+=5000
usr.Def+=50
usr.loc=locate("Start")
if("Ginyu")
switch(input("Which ginyu force member would you like to be.")in list("Guldo","Recoom","Burter","Jeice","Ginyu"))
if("Guldo")
icon='Guldo.dmi'
usr.icon_state="Guldo"
usr.Str+=2
usr.Def+=2
usr.Health+=100
usr.MaxHealth+=100
usr.loc=locate("Start")
if("Recoom")
icon='Recoom.dmi'
usr.icon_state="Recoom"
usr.Str+=10
usr.Def+=10
usr.Health+=500
usr.MaxHealth+=500
usr.loc=locate("Start")
if("Burter")
icon='Burter.dmi'
usr.icon_state="Burter"
usr.Str+=10
usr.Def+=20
usr.Health+=500
usr.MaxHealth+=500
usr.loc=locate("Start")
if("Jeice")
icon='Jeice.dmi'
usr.icon_state="Jeice"
usr.Str+=10
usr.Def+=10
usr.Health+=600
usr.MaxHealth+=600
usr.loc=locate("Start")
if("Ginyu")
icon='Ginyu.dmi'
usr.icon_state="Ginyu"
usr.Str+=20
usr.Def+=20
usr.Health+=1000
usr.MaxHealth+=1000
usr.loc=locate("Start")
if("Android")
switch(input("Wich android would you like.")in list("Android 16","Android 18"))
if("Android 16")
icon='Android16.dmi'
usr.icon_state="Dabura"
usr.Str+=50
usr.Def+=50
usr.loc=locate("Start")
if("Android 18")
icon='Andriod18.dmi'
usr.Str+=30
usr.Def+=20
usr.Health+=500
usr.MaxHealth+=500
usr.loc=locate("Start")
if("Saiyan")
switch(input("Which Saiyan would you like.")in list("Goku","Vegeta","Gohan","Trunks"))
if("Goku")
icon='Goku.dmi'
usr.icon_state="Goku"
usr.Str+=20
usr.Health+=500
usr.MaxHealth+=500
usr.loc=locate("Start")
if("Vegeta")
icon='Vegeta.dmi'
usr.icon_state="Vegeta"
usr.Str+=20
usr.Health+=200
usr.MaxHealth+=200
usr.Def+=10
usr.loc=locate("Start")
if("Gohan")
icon='Gohan.dmi'
usr.icon_state="Gohan"
usr.Health+=500
usr.MaxHealth+=500
usr.Str+=10
usr.Def+=10
usr.loc=locate("Start")
if("Trunks")
icon='Trunks.dmi'
usr.icon_state="Trunks"
usr.Str+=10
usr.Health+=500
usr.MaxHealth+=500
usr.loc=locate("Start")
i have tried alot of things but i cant seem to get this in so can someone please help me
i donnt know where to put The new_mob proc at for the code to work</<usr>
In response to Gouku
There is a thing people like to see on this forum, it's called patience. That means you don't bump your post up to the top of the list after 45 minutes. People here do not browse the forums 24/7 waiting for people to help, they have lives and are generally busy people, so please wait at least 48 hours before deciding that your post needs more attention. Anything else is just plain rude.
In response to GateGuardian
See i told you no one would anwer it
In response to Gouku
Maybe you should try trimming it down to necessary code so that people interested in helping wouldn't have to scroll through several pages of switch code.
In response to GateGuardian
Well sorry but i need the code in there to show them the my whole login thing so some one could tell me where to put it to make it work
In response to Gouku
I would help but I dun like to read long code
In response to Gouku
you will have to end up rewriting it, so just start over, but before you do, this time read some more of the FAQ.
In response to Gouku
Where should you put it? There's a directory on your desktop called Recycling Bin... try putting it there.

Your problem is twofold, and both folds can be summed up in the word "attitude."

First of all, the problem with your code. You're thinking it's a matter of "where I put it." Where you put it doesn't matter*. You're PROGRAMMING, not building a block fortress. You will -never- finish your game, no matter how much or how little help you get, as long as you think of the act of programming as copying and pasting long huge blocks of code until you find the position they work in... and if you'll never finish the game anyway, why would anyone be inclined to help?

Second of all, there's the problem with your attitude. No one is obligated to help you or anyone else... and if you want us to do work to help you, you use our schedule, not yours. 45 minutes is NOT a long time to wait for an answer... this is a forum, not a live chatroom! As far as your "helpful" posting of code... that just makes it harder to help you and more clear that you have no idea what you're doing. If you had the slightest idea what was actually wrong with your code, you could pare it down to the section (probably not more than ten lines) that's the problem.

There is NO way we can help you until you help yourself. Get back to basics... trash your current project, if you have to. You know nothing about coding. Until you can realize this, you'll never start learning.


*It matters a little, insofar as you can use position to structure your program, but that's not the only way to structure it. Sometimes moving code around does nothing more than move code around.