ID:142223
 
Code: Login
turf/New
density = 1
Click()
switch(input("Would you like to be a human or pokemon?", "Character") in list ("Human","Pokemon"))
if("Human")
usr.verbs += /mob/verb/OOC
usr.verbs += /mob/verb/Tell
usr.verbs += /mob/verb/Emote
usr.verbs += /mob/verb/Say
usr.cansave=1
usr.trainer=1
switch(input("Who would you like to be?", "Human") in list ("Lunick","Solana","Male Ranger"))
if("Lunick")
usr.icon='people.dmi'
usr.loc=locate(1,1,1)
if("Male Ranger")
usr.loc=locate(1,1,1)
usr.icon='people.dmi'
if("Solana")
usr.loc=locate(1,1,1)
usr.icon='people.dmi'

if("Cancel")
return


Problem description: I am trying to make it so the login on my game will work so people can choose who they want to be , but the code isn't working. Is there somethin wrong with it?

P.S.: I have a title and buttons for the new, load, and delete.


You know the mobs will automaticly start out with OOC, Emote, Tell, and Say, so you don't need to have them, What you need to do is have to categories(Human/Pokemon) On login when they choose give them all the human/pokemon verbs to go with what they are.
In response to Bakasensei
I'm not completely sure but i think that i do have categories if we are talking about the same thing. Would it be "if" categories or somethin?
turf/New
icon=''

You need an icon to place on the world map. Once you get that on the map you click it when you login. then it should work. If you have done this already I would be happy to look at your src and help you out.
In response to 6ShadowSword6
turf/New
density = 1
Click()
switch(input("Would you like to be a human or pokemon?", "Character") in list ("Human","Pokemon"))
if("Human")
// usr.verbs += /mob/verb/OOC <--- No point in these being here. They don't do anything
// usr.verbs += /mob/verb/Tell <--- No point in these being here. They don't do anything
// usr.verbs += /mob/verb/Emote <--- No point in these being here. They don't do anything
// usr.verbs += /mob/verb/Say <--- No point in these being here. They don't do anything
usr.cansave=1
usr.trainer=1
switch(input("Who would you like to be?", "Human")in list("Lunick","Solana","Male Ranger","Cancel"))
if("Lunick")
usr.icon='people.dmi'
usr.loc=locate(1,1,1)
if("Male Ranger")
usr.loc=locate(1,1,1)
usr.icon='people.dmi'
if("Solana")
usr.loc=locate(1,1,1)
usr.icon='people.dmi'
if("Cancel")
return


What's not working? And the people.dmi is the same person, so you need to put the correct icon_state.
If you want to make it so that when you choose to be Human you only get human verbs, first you categorize it like so:

mob
pokemon
verb
Pokemon_Attack()
src << "Poke' Attack"

human
verb
Call_Pokemon()
src << "Call Pokemon"


Then add the verbs when you choose to be human:

    
turf/New
density = 1
Click()
switch(input("Would you like to be a human or pokemon?", "Character") in list ("Human","Pokemon"))
if("Human")
usr.verbs += typesof(/mob/human/verb) // add the verbs of of type human
usr.cansave = 1
usr.trainer = 1
switch(input("Who would you like to be?", "Human") in list ("Lunick","Solana","Male Ranger"))
if("Lunick")
usr.icon = 'people.dmi'
//specify the icon state
usr.loc = locate(1,1,1)
if("Male Ranger")
usr.icon = 'people.dmi'
//specify the icon state
usr.loc = locate(1,1,1)
if("Solana")
usr.icon = 'people.dmi'
//specify the icon state
usr.loc = locate(1,1,1)
if("Pokemon")
usr.verbs += typesof(/mob/pokemon/verb)


In response to Samehada24
Thats exactly what I siad >.>
In response to Samehada24
That doesn't do anything.
In response to Howey
that doesn't work either.
turf/New
//make it clickable no matter what
mouse_opacity = 2
layer = FLY_LAYER // or something higher
In response to Jemai1
That doesnt do anything either. That just gives me alot of errors.
In response to Rayquaza1903
Then the problem is you.
In response to Jemai1
well sorry.
In response to Rayquaza1903
Don't feel bad his code was actually wrong New is a process and should have parenthesis after it. Thus at least one of the errors.

You should look at the existing libraries/demos under the resources section as there's already some that do what you're trying to.
In response to StolenSoul
Uh, no. Jemai's code is defining a turf object subtype named New. So the path is turf/New. It's not a proc override, therefore why there should be no parentheses. Later down, it sets (overrides) that subtype's vars.
Maybe you should pay attention more, since the OP used the same object path as well... oh, also, it's 'procedure'.
In response to Kaioken
Kaio you really need to learn to chill the flock out.

It doesn't really matter if it's process or procedure still does the same thing. So yes it is procedure and your point is..... yeah none just want to make yourself feel better.

Yes I misread thank you for correcting me, I do appreciate it. However, as that's the case naming an atom of any type New is bad practice for that particular reason.

So keep setting on your almighty mental throne and forgoe somebody from trying to make somebody else feel better.

If you notice I didn't take time to offer advice as I'm a tad busy so I did rush through the post, thus the error on my part.

My apologies to Jemai for veering off topic.
In response to StolenSoul
StolenSoul wrote:
Kaio you really need to learn to chill the flock out.

Heh, clearly you're the one taking things to heart too much.

It doesn't really matter if it's process or procedure still does the same thing. So yes it is procedure and your point is..... yeah none just want to make yourself feel better.

Obviously that's your point in that post. My point was that the correct term is 'procedure', not 'process'. But since it's not such a big deal, like you said, why are you getting so upset about it, really? Relax.

Yes I misread thank you for correcting me, I do appreciate it. However, as that's the case naming an atom of any type New is bad practice for that particular reason.

Possibly, and bear in mind he was just copying the OP's original code. But a definite distinction in this case isn't that required, since everyone can see whether the New() proc is being overridden or it's an object, since parentheses are required for procs. Sure, it can possibly confuse, but if you know what you're doing it won't.

So keep setting on your almighty mental throne and forgoe somebody from trying to make somebody else feel better.

Yes, I am the manifestation of evil and ego.
Sorry for correcting something wrong someone has said. Yes, how horrible and conceited of me. The right thing to do would definitely be to say nothing and let misinformation spread, just out of courtesy of not making someone feel that he was wrong, which is only human to be.

If you notice I didn't take time to offer advice as I'm a tad busy so I did rush through the post, thus the error on my part.

And, really, the point of saying that is? I mean, other than making you feel better. Jeez, why be such a hypocrite and make such a defensive fuss, really. You were wrong, you were corrected. Nothing other than your 3rd paragraph needed to be said.
In response to Kaioken
Kaio you really need to learn to chill the flock out.

Heh, clearly you're the one taking things to heart too much.

Not really I wasn't reffering to just this post. You are very quick to point out any flaw you can. These are also not usually expressed in the most helpful ways. Though I'm sure a lot of it comes from your personality which is fine. You have to remember the point of a community is to help it grow, not make everybody else feel insignificant in your mere presence.

It doesn't really matter if it's process or procedure still does the same thing. So yes it is procedure and your point is..... yeah none just want to make yourself feel better.

Obviously that's your point in that post. My point was that the correct term is 'procedure', not 'process'. But since it's not such a big deal, like you said, why are you getting so upset about it, really? Relax.

I am relaxed and am not upset about it. Could care less was more making a point. What benifit does pointing that out truly have. As the words themselves can be used almost interchangeably. Could have said function and it would still mean the same thing.

Thus the reason for the beginning and not just posting the third paragraph

Yes I misread thank you for correcting me, I do appreciate it. However, as that's the case naming an atom of any type New is bad practice for that particular reason.

Possibly, and bear in mind he was just copying the OP's original code. But a definite distinction in this case isn't that required, since everyone can see whether the New() proc is being overridden or it's an object, since parentheses are required for procs. Sure, it can possibly confuse, but if you know what you're doing it won't.

That thank you was not meant for sarcasm as I stated I was busy and rushed through the post and made an error. Simply pointing out that it was a turf definition and not a procedure override would have been sufficient, as well as more productive for everybody. As opposed to pointing out useless flaws in vocabulary..

So keep setting on your almighty mental throne and forgoe somebody from trying to make somebody else feel better.

Yes, I am the manifestation of evil and ego.
Sorry for correcting something wrong someone has said. Yes, how horrible and conceited of me. The right thing to do would definitely be to say nothing and let misinformation spread, just out of courtesy of not making someone feel that he was wrong, which is only human to be.

Evil no, ego yeah maybe. As stated above I did thank you for correcting me and it was not sarcastic. You missed the whole point of the post though. It wasn't to offer advice but to make the poster feel better. To many times people with problems are made to feel like crap because they don't understand or didn't look up something. Yes they should be pointed to the manual and corrected but it's detrimental to the community to allow them to feel inferior or incapable as that could be one less person that stays around.

These same people that you're so quick to get frustrated with, not referring to me in this case, are the people that can help byond grow. Even if they're not at a stage that would allow them to understand they deserve at least some level of respect. Otherwise they may not come back as they are made to feel unworthy or incapable. The human ego is a fragile thing for most people.

If you notice I didn't take time to offer advice as I'm a tad busy so I did rush through the post, thus the error on my part.

And, really, the point of saying that is? I mean, other than making you feel better. Jeez, why be such a hypocrite and make such a defensive fuss, really. You were wrong, you were corrected. Nothing other than your 3rd paragraph needed to be said.

I don't see how that makes my statement hypocritical, I simply stated that I was wrong and why. Though perhaps it was overkill with the 3rd paragraph being there. You pointing it out is just another example of what I'm referring to. What benifit does that bring anybody??

Anyway, don't take the post the wrong way. I have respect for your skills and advice, just don't agree with your methods of explaining them(not just this post). My statement has been made maybe you'll consider it maybe not. But either way no offense intended.
In response to StolenSoul
Total derail, quit it guys. This isn't the place.
In response to Rayquaza1903
Basically, you have to group your verbs such as mob/pokemon/verb or mob/human/verb

This way the only verb people have access to is the click for new at the beginning.

the usr.verbs+=mob/verb/OOC (and others) is pointless, best thing to do is:
Group the verbs and when selecting human:

if("Human")
usr.verbs+=typesof(/mob/Human/verb) //adds all the human verbs at once and cleans up on coding.
//rest of code, repeating this typesof adding for the mob/pokemon/verb
Page: 1 2