ID:166554
 
How would i change the following code so instead of logging straight into my character it displays a New Load and quit option first with the max characters you can choose at three

mob
Choosing
Login()
var/savefile/s = new("players.sav")
var/list/d = s.dir
if(d.Find("[ckey]")) // player's file found
usr << "Loading into your character."
s["/[ckey]"] >> usr
return 0
else
var/mob/Player/newmob = new()
//if not...
usr << "New User"
newmob.name = input("What is your name?","A Charmed Game",null) as text
var/g = input("What is your name?","A Charmed Game",null) in list("Male","Female")
var/c = input("What are you?","A Charmed Game",null) in list("Witch","Demon","Whitelighter")
if(c == "Witch")
var/t = input("Which type?","A Charmed Game",null) in list("TK","Molecular Control","Premonition")
newmob.witchtype = t
newmob.icon = 'player.dmi'
if(g=="Male")
newmob.gender = MALE
newmob.icon_state = "male"
newmob.icon = 'male.dmi'
if(g=="Female")
newmob.gender = FEMALE
newmob.icon_state = "female"
newmob.icon = 'female.dmi'
newmob.class = c

newmob.loc = locate(5,1,1)

client.mob = newmob
del(usr)
XAngelX wrote:
How would i change the following code so instead of logging straight into my character it displays a New Load and quit option first with the max characters you can choose at three

mob
> Choosing
> Login()
> var/savefile/s = new("players.sav")
> var/list/d = s.dir
> if(d.Find("[ckey]")) // player's file found
> usr << "Loading into your character."
> s["/[ckey]"] >> usr
> return 0
> else
> var/mob/Player/newmob = new()
> //if not...
> usr << "New User"
> newmob.name = input("What is your name?","A Charmed Game",null) as text
> var/g = input("What is your name?","A Charmed Game",null) in list("Male","Female")
> var/c = input("What are you?","A Charmed Game",null) in list("Witch","Demon","Whitelighter")
> if(c == "Witch")
> var/t = input("Which type?","A Charmed Game",null) in list("TK","Molecular Control","Premonition")
> newmob.witchtype = t
> newmob.icon = 'K_ros.dmi'
> if(g=="Male")
> newmob.gender = MALE
> newmob.icon_state = "male"
> newmob.icon = 'K_ros.dmi'
> if(g=="Female")
> newmob.gender = FEMALE
> newmob.icon_state = "female"
> newmob.icon = 'male-white.dmi'
> newmob.class = c
>
> newmob.loc = locate(5,1,1)
>
> client.mob = newmob
> del(usr)
>
>


Please, don't rip the code from other games. It is very obvious that this is from the DragonBall Zeta source. Source-code ripping is not only disrespectful, dishonest, and plain rude, but it's a way to get others to hold a negative opinion against you for a long duration of time. If you were to learn to program properly, you could easily remake this system much more efficiently as well as know how to make what you are asking for others to help with.

Hiead
In response to Hiead
I would have to say your WRONG! there very wrong DBZ sucks i got it from Quick Charmed its a tutorial for people who dont know where to start with a CHARMED GAME!
In response to XAngelX
Don't lie, it's blatantly Zeta Code. K_ros.dmi Is a zeta icon file, people can spot it a mile off, along with code similarities.
In response to Game sabre
Game sabre wrote:
Don't lie, it's blatantly Zeta Code. K_ros.dmi Is a zeta icon file, people can spot it a mile off, along with code similarities.

Such code similarities include the trailing del(usr) line. ;)

Hiead
In response to Game sabre
OMFG dont call me a liar when i ahven't done nothing YOU STILL DONT BELIEVE IT!!!!! search quick charmed in demos or whatever and you will see
In response to XAngelX
Then the demo uses zeta code.
In response to Popisfizzy
omg it so aint Zeta sucks.Other people have posted it before that have needed help with it and you dont gang up on them do you
In response to XAngelX
XAngelX wrote:
omg it so aint Zeta sucks.Other people have posted it before that have needed help with it and you dont gang up on them do you

Link us to an example and we will gang up on them!!
In response to Game sabre
In response to XAngelX
XAngelX wrote:
http://developer.byond.com/forum/ index.cgi?action=message_read&id=452651&forum=3&view=1&displ ay=1

There i rest my case -_-

Did you even read those replies? I mean, it ended in the person being told to learn how to program.

Hiead
In response to Hiead
There was nothing like you guys bullshitting and calling me a liar and trying to piss me off
In response to XAngelX
Nobody is lying to you. Regardless of whether the tutorial exists or not, if you received that code from it the similarities to Zeta are enough to make people believe it's Zeta, and it most likely is. Nobody is trying to piss you off, either, you're just becoming extremely defensive because you want help with something and people are trying to tell you that you shouldn't be using this tutorial and code to attempt to learn off of. Research some other threads that've started this way and learn off of how they progress and end, maybe you'll learn something then.
In response to XAngelX
Either way, what you're doing there is ripping. Be it "Charmed" or be it "Zeta". Though, it's obvious to see that "Charmed" code comes from the "Zeta" source, so that code is probably ... Eurr... 'World's most suckiest code!'.

We're not trying to piss you off. We're trying to help you. And you think you're learning to program by ripping, which never happens. All you get is the thought you CAN code. And then you try to help people on the forums with the things you think you know, and you'll just get bashed on here, and judging from your reaction when the people here told you you're using Zeta code, that could turn out pretty nasty.

As I said in that other post, if you really want to learn how to code , ...
In response to XAngelX
Even if Zeta does suck (Most of us do) it still can mean its just a edit from that source.


We can modify code you know.

PS: I think you are missing a "..()" at the start... I'm not going further then that.
In response to Mysame
Mysame wrote:
And you think you're learning to program by ripping, which never happens.


I actually did. Looked up Libraries, took the ones I wanted and seen what does what. Now I don't really need to touch the stuff.