ID:143290
 
So when I put in the first 2 if options for the char type, "Hrou" and "Vegan" it works just fine but i go to the 3rd option and the program gives me an indent error for the 3rd or 4rth ect, same exact format. BYOND seems to do this alot , something really aught to work and it just won't do it.


mob
Login()
switch(input("Please Select An Option") in list("New Game", "Quit"))//Calls a list and asks what you want to do New Game,Load Game Or quit
if("New Game")//If a user choose new game it goes to this
src.ChooseCharacter()//Calls the Proc so the mob can create a character

if("Quit")//This is basicly quit so it logs the mob out.
src.Logout()//Calls the logout proc which is already built in dream maker but it safe to have it in your code anyways.
proc/ChooseCharacter()//This is the ChooseCharacter proc when it is called it will all the coding up below so a mob can create his/her character.
src.name = input("What would you like your name to be?","Name input")
switch(input("Choose what you want to be!") in list("Hrou","Normal","Vegan"))
if("Vegan")//If the mob picks Ninja their mob is now a Ninja
icon = 'alien2.dmi'//This becomes the mobs icons.

world << "<small><font color = red><b>Login info: <font color = purple>[src]/[key] is a first time player!"//Says to the world that a mob has logged in for the first time.
loc = locate(14,14,1)//Plants the mob in this location
..()
rain()
if("Normal") // NO INDENT ERROR HERE OR ABOVE
icon = 'human.dmi'//This becomes the mobs icon.
icon_state = "gender" // THIS DOESN"T WORK EITHER
world << "<small><font color = red><b>Login info: <font color = purple>[src]/[key] is a first time player!"//Says to the world that a mob has logged in for the first time.
loc = locate(14,14,1)//Puts the mob in this location.
..()
rain()
if("Hrou") // INDENT ERROR HERE
icon = 'alien3.dmi'
loc = locate(14,14,1)//Puts the mob in this location.
..()
rain()


Problem description:

Make sure you do not mix up tab indents with space indents!

http://bwicki.byond.com/ ByondBwicki.dmb?ErrorCodes#inconsistentindentation

In addition, keep anything that all choices have in common (such as the parent proc, first time user message and rain()) OUT of the switch proc... why keep repeating the same stuff wen you can do it once and forget about it?
name...
switch(..)
if(...)
icon/icon_state = ...
..()
rain()
well I've tried taking out the mixure of / and tabs only to have the whole deal not work at all, and as far as some of the other elements well they work fine atm so I'm leaving them alone since trying to get that part right has already given me a headache previously.
Omg it works now, but I didn't do anything different... BYOND is BYOND me.

mob
proc/ChooseCharacter()
src.name = input("What would you like your name to be?","Name input")
switch(input("Choose what you want to be!") in list("Alien","Human","Hrou"))
if("Alien")
icon = 'alien2.dmi'
world << "<small><font color = red><b>Login info: <font color = purple>[src]/[key] is a first time player!"//Says to the world that a mob has logged in for the first time.
loc = locate(14,14,1)
..()
rain()
if("Human") // NO INDENT ERROR HERE OR ABOVE
icon = 'human.dmi'
icon_state = gender
world << "<small><font color = red><b>Login info: <font color = purple>[src]/[key] is a first time player!"//Says to the world that a mob has logged in for the first time.
loc = locate(14,14,1)
..()
rain()
if("Hrou") // NO INDENT ERROR HERE OR ABOVE
icon = 'alien3.dmi'
world << "<small><font color = red><b>Login info: <font color = purple>[src]/[key] is a first time player!"//Says to the world that a mob has logged in for the first time.
loc = locate(14,14,1)
..()
rain()