What is wrong with... in Developer Help
|
|
Code:
mob Luke_Sky_Walker icon = 'male.dmi' verb Talk() switch(alert("Would you like to do a quest for me?","Quests","Yes","No")) if ("Yes") usr.asked1 = 1 alert("Thanks, go and find my light laber. I last saw it in a tusken raider came to the east of here") if ("No") alert("Well thanks anyways")
|
Problem description: I got a error it is 'Quests.dm:10:error: proc definition not allowed inside another proc'
|
t was merely an indentation error because you didn't keep the if() procs under the switch() proc.