how would i go about adding in a login code with 3 menus?
For example; You login in choose good or evil, then you choose blah1, blah2. Then Male or female for each blah.
thanks in advance.
ID:261326
Dec 20 2001, 7:18 am
|
|
In response to Lord of Water
|
|
lol, yeah thanks!
|
In response to Super saiyan3
|
|
One thing, LoW how do i make it so that if you chose a certain thing from menu 1 you can only get a certain thing on menu 2?
|
In response to Super saiyan3
|
|
if("menuitem")
var/menuitem2 = alksdjfla;sdjf;salkdjf |
In response to Super saiyan3
|
|
I'm pretty bored, so I'll give you a example code;
mob |
In response to unimatrix
|
|
I am still completly lost. Can you use an example like this.
What pet have you got? Dog Cat What do you want to buy them? Bone Yarn What Colour? Grey Pink Thanks in advance for any help. |
In response to Super saiyan3
|
|
Super saiyan3 wrote:
I am still completly lost. Can you use an example like this. You've had a bunch of people provide answers for you...have you tried actually typing any of them in to see how they work? Don't keep asking for more help unless you've spend as much or more time studying the answers as people spent giving them to you. If you have studied them, then ask specific questions, don't keep saying "that's not quite right, do it again". Also you can check the CharacterSaving demo for an example of this: byond://Deadron.CharacterSaving |
In response to Deadron
|
|
Thank you very much Deadron(i am not trying to sound or be rude in any way)
After looking at the first example i was given by LoW i understood but needed to find out how to add 1 more thing. Then after Nadrews post(Sorry Nadrew; again no offence) I was confused with the list 1 and 2 and the cow and monkey cheese. The character Handling i have but that still does not give me an insight into what to do. I dont want Code Spoon Fed to me; i actually want to understand it then add it in. When i first started coding i skipped learning about the Login and now i am paying for it. :( |
In response to Super saiyan3
|
|
Super saiyan3 wrote:
When i first started coding i skipped learning about the Login and now i am paying for it. :( Your problem here isn't knowing about login, it's understanding how the input() command works. input() sleeps the code while it waits for a response...so if you want to ask three menus in a row, you just do input() three times in a row and get each answer. |
In response to Super saiyan3
|
|
Don't feel bad... Nadrew's code lost me too! It's certianly not the way I would have coded such a situation. Here is what I would do:
mob Another good way do do this would be to create seperate lists for what you can buy for a cat and for a dog, and work some words around to make one short proc. Since I thought that might confuse you though, I did it a way that is easier to follow. |
In response to Deadron
|
|
I would just like to thank LoW for help wiht the code, and Deadron for explaining what i missed ;)
|
Chew on that. (I'm so punny!)