ID:150387
 
Ok, I'm pretty darn new. I wanted to ask how you would get a menu to pop up when a person logs on that looks something like this:

Create New Character
Delete Character
Quit

Got what I mean? I hope you do, and I hope even more that you can help me.

P.S.
I have looked through all sorts of source code, and tutorials, and guides, and still couldn't figure it out.
SuperAshing wrote:
Ok, I'm pretty darn new. I wanted to ask how you would get a menu to pop up when a person logs on that looks something like this:

Create New Character
Delete Character
Quit

Got what I mean? I hope you do, and I hope even more that you can help me.

P.S.
I have looked through all sorts of source code, and tutorials, and guides, and still couldn't figure it out.


It's done by using the switch proc added with the input proc there are two ways of doing this:

1
mob/Login()
var/Selection = input("Blah Blah") in list("Blah1","Blah2")
switch(Selection)
if("Blah1")
src<<"Blah 1"
..()
if("Blah2")
src<<"Blah 2"
..()



2
mob/Login()
switch(input("Blah Blah") in list("Blah1","Blah2"))
if("Blah1")
src<<"Blah 1"
..()
if("Blah2")
src<<"Blah 2"
..()


DO NOT COPY PASTE IT WILL NOT WORK!
In response to Nadrew
Thanks for your help, but all I really needed to do was include <deadron/characterhandling> but of course I was too stupid to include that last night before I posted, lol.



-Super Ashing