ID:162284
Jan 30 2008, 8:33 am
|
|
Can someone give me the code for them to choose thier characters? the two characters Im doing is Gryfandoor, and Slytherin
|
In response to Jholder84
|
|
How would you create these lists
|
In response to Jamora1124
|
|
Let me elaborate a bit...
switch(input("Choose your house.","House selection") from list("Gryfandoor","Slytherin") This line has the list written in to it. The only things in the list are Gryfandoor and Slytherin. This line is a combination that can be split up like this: new/list/houses = list("Gryfandoor","Slytherin") We used a switch so now we need to test it. if("Gryfandoor") We know what the possible choices are cause we made the list earlier and that's all we have to test. |
In response to Jholder84
|
|
Thanks!
|
In response to Jholder84
|
|
Opps, what I meant to say was, how do you create second list? Like for Names? Also, how do you make it so that after you're done answering the questions of the lists, the operator will compile the info into a List of Info on one of the tabs on the side.
|
In response to Jamora1124
|
|
Let me first say that you DEFINITELY need to read the DM reference guide (http://www.byond.com/docs/ref/). It will really help you. But the basics of it are
new/list <-makes a list new/list/name <-makes a list called name list() <-lets you set the things in the list so new/list/numbers numbers = list(1,2,3,4,5) numbers now contains 1,2,3,4,5 Get it? But again, read the guide. |
In response to Jholder84
|
|
Thank you, I'm reading and downloading alot. I don't have much time to d much for my game because my brothers are so mean to me when it comes to this computer.
|
In response to Jamora1124
|
|
Haha. I know how you feel. I don't get near enough time to write my game either. Just stick with it and use the guide as much as possible.
|
It pops up a little window and lets you pick.