ID:140465
 
Ok This is a huge problem I always have!
verbs.dm:(line)32:error: if: missing comma ',' or right-paren ')'
Now let me show you what I have put in the coding starting from line 30!
            alert("You will now choose your Main Clan. Do NOT choose the same clan. You can if you want but, it seems alittle stupid to throw away jutsus like that.")
switch(input("What do you want your clan to be?", "Clan", text) in list ("Uzumaki","Diedara","Pein","Momochi","Kaguya","Gaara","Hyuuga","Nara","Kamizuri","Haku","Uchiha","Sai","Temari","Orochimaru","Sarutobi","Hoshigaki","Yamanaka","Haruno","Aburame","Akimichi","Tenten","Inuzuka","Kidoumaru","Medic","Hatake","Lee","Hidan","Fuuma","Jiraiya","Sasori","Kakuzu")
if("Uzumaki")
usr.Clan = "Uzumaki"
if("Diedara")
usr.Clan = "Diedara"
if("Pein")
usr.Clan = "Pein"
if("Momochi")
usr.Clan = "Momochi"
if("Gaara")
usr.Clan = "Gaara"
if("Kaguya")
usr.Clan = "Kaguya"
if("Hyuuga")
usr.Clan = "Hyuuga"
if("Nara")
usr.Clan = "Nara"
if("Kamizuri")
usr.Clan = "Kamizuri"
if("Haku")
usr.Clan = "Haku"
if("Uchiha")
usr.Clan = "Uchiha"
if("Sai")
usr.Clan = "Sai"
if("Temari")
usr.Clan = "Temari"
if("Orochimaru")
usr.Clan = "Orochimaru"
if("Sarutobi")
usr.Clan = "Sarutobi"
if("Hoshigaki")
usr.Clan = "Hoshigaki"
if("Yamanaka")
usr.Clan = "Yamanaka"
if("Haruno")
usr.Clan = "Haruno"
if("Aburame")
usr.Clan = "Aburame"
if("Akimichi")
usr.Clan = "Akimichi"
if("Tenten")
usr.Clan = "Tenten"
if("Inuzuka")
usr.Clan = "Inuzuka"
if("Kidoumaru")
usr.Clan = "Kidoumaru"
if("Medic")
usr.Clan = "Medic"
if("Hatake")
usr.Clan = "Hatake"
if("Lee")
usr.Clan = "Lee"
if("Hidan")
usr.Clan = "Hidan"
if("Fuuma")
usr.Clan = "Fuuma"
if("Jiraiya")
usr.Clan = "Jiraiya"
if("Sasori")
usr.Clan = "Sasori"
if("Kakuzu")
usr.Clan = "Kakuzu"
usr << "You are now a [usr.Clan]!"

See the problem? Line 32 is
                if("Uzumaki")
usr.Clan = "Uzumaki"

Please help Also all vars in here are defined with a mob/var
Here's a smart idea: Why don't you set the input value to the "Clan" variable instead of switch()ing for the value and manually entering that value?

Another smart idea is to subtract out the clan already chosen if you do not want someone to pick a value already chosen.

And the error tells you the problem... hint: how many parenthesis is needed to close switch(input at the very end...
In response to GhostAnime (#1)
GhostAnime wrote:
Here's a smart idea: Why don't you set the input value to the "Clan" variable instead of switch()ing for the value and manually entering that value?

Another smart idea is to subtract out the clan already chosen if you do not want someone to pick a value already chosen.

And the error tells you the problem... hint: how many parenthesis is needed to close switch(input at the very end...
Well it said on line 32 which says if("Uzumaki") on it which makes no sense but i'll try it
You are missing a ) on the switch.
In response to Karrote (#3)
Karrote wrote:
You are missing a ) on the switch.
I already know... another person told me
In response to Narutorox123456 (#4)
Oops, missed the bottom of his post.
In response to GhostAnime (#1)
var/clan_pick = input("","") as null|text in list("choice 1",\
"Choice 2",\
"choice 3") //etc
if(clan_pick)
src.clan = clan_pick
In response to Spunky_Girl (#6)
Spunky_Girl wrote:
> var/clan_pick = input("","") as null|text in list("choice 1",\
> "Choice 2",\
> "choice 3") //etc
> if(clan_pick)
> src.clan = clan_pick
>
I already solved it thanks to the first reply...