mob/verb/create_movie2()
//src.money-=src.actors*5000
//src << "$-[5000*src.actors] for paying actors"
var/namemovie
do
namemovie=input("What is the name of the movie?") as text
while(namemovie=="")
var/input_category=input("Which category?") in list("Drama", "Foreign", "Action", "Suspense", "Cartoon", "Adventure","Comedy","Documentary","Horror", "Musical", "Mystery","Romance","Sci-fi")
var/obj/movie/m=new /obj/movie(input_category, namemovie);
var/input_first_audience=input("Which will be the target audience for this movie?") in list("Children","Teenagers","Adults","Mature","Everyone")
var/newpoints=0
switch(input_category)
if("Drama")
switch(input_first_audience)
if("Children")
newpoints=2
if("Teenagers")
newpoints=3
if("Adults")
newpoints=5
if("Mature")
newpoints=4
if("Everyone")
newpoints=3
if("Foreign")
switch(input_first_audience)
if("Children")
newpoints=3
if("Teenagers")
newpoints=3
if("Adults")
newpoints=4
if("Mature")
newpoints=4
if("Everyone")
newpoints=4
Problem description:This is how I did it. Is there any better way to do it? I call them nested because loops like that are also called nested
Ex: