ID:159617
 
I'm making a new Starwars game, and I was wondering, how would I make a race selection screen appear upon login?
Add a input() proc under mob/Login() or client/New() >_>
In response to Spunky_Girl
Spunky_Girl wrote:
Add a input() proc under mob/Login() or client/New() >_>

Wouldn't recommend it on client/New(), unless you ran the parent first; otherwise you wouldn't have a mob to use.
In response to Falacy
hi im new to programming myself and i was wondering about this issue as well...
if you mean input() proc under Login(), how exactly would you elaborate on that?

for example you wanted to choose between a warrior and a mage...

mob
Login()
input()...? thats about as far as i can get right now >_>
In response to Bound
Bound wrote:
hi im new to programming myself and i was wondering about this issue as well...
if you mean input() proc under Login(), how exactly would you elaborate on that?

for example you wanted to choose between a warrior and a mage...

mob
Login()
input()...? thats about as far as i can get right now >_>

Well, make a list of all the races.

var/list/Races = list("Race 1","Race 2")


Then use the list in the Login() proc.
mob/Login()
src.race = input(src,"What race would you like to be?","Race Select")in Races
In response to Howey
if that's the only time you plan on using the Races list you could just do this
src.Race=input("Select your Race","Race Selection") in list("Race 1","Race 2")
Wow, Go learn how to code please, When I read way back when, This was only like the 3rd page I believe.
In response to Howey
Howey wrote:
Bound wrote:
hi im new to programming myself and i was wondering about this issue as well...
if you mean input() proc under Login(), how exactly would you elaborate on that?

for example you wanted to choose between a warrior and a mage...

mob
Login()
input()...? thats about as far as i can get right now >_>

Well, make a list of all the races.

var/list/Races = list("Race 1","Race 2")

Then use the list in the Login() proc.
mob/Login()
> src.race = input(src,"What race would you like to be?","Race Select")in Races


I think I understand that...all you do is set a new variable which is a list of races, right? Then you prompt people when they login, but I'm not clear on what exactly
src.race = input(src, "What race would you like to be?","Race Select")in Races
really means
In response to Bound
Have you read the guide?
In response to Immibis
Yes, I have and I believe I figured it out...When the player logs in they will be prompted to input which race they want to be?
In response to Bound
Almost 2 days after you finally figred out what it's supposed to do? o.O
In response to Spunky_Girl
lol no, I just hadn't gotten around to checking the forums! My bad :p I've been hosting Seika too much anyways, I should probably work on my game instead
In response to Bound
You can't do both? >_> I don't mean to offend anyone, but people who take down their games just to do an update that could last as long as an hour to three hours, are stupid. You can make a copy of the game's files and edit those, then when you're ready to update, it would take a maximum of 2 minutes.