Town script error

AuthorTopic: Town script error
Canned
Member # 8014
Profile #0
I have no idea what is wrong. The game keeps giving me a
Error- Unknown command the
in line 13

I have tried many things, yet it wont work.
begintownscript;

variables;
short choice;


body;

beginstate INIT_STATE; set_crime_tolerance(2);

break; beginstate START_STATE;
break; beginstate EXIT_STATE;
break; beginstate 10; message_dialog(The inn is completely empty. Not even a bartender. Not surprising.",""); break;
beginstate 11;
message_dialog("As you go towards the portal, you notice something behind you. An army of...you must be drunk. Muffins? Well, seeing as the portal is the only way, you throw yourselves in","");
move_to_new_town(2,17,13);
break;


--------------------
Don't judge a sentence until you know all the words.
Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again
Muffins n' Hell: The End is Near
Not in your shed -We are sort of done. Helpful criticism is welcome.
Everyone, just call me Iffy. Please.

Be grateful you have your unsellabe trowels -Goldenking

Just so you know, I am working on Muffins n' Hell the scenario.
Posts: 1799 | Registered: Sunday, February 4 2007 08:00
Raven v. Writing Desk
Member # 261
Profile Homepage #1
You're missing a quote.

--------------------
Slarty vs. DeskDesk vs. SlartyTimeline of ErmarianG4 Strategy Central
"Slartucker is going to have a cow when he hears about this," Synergy said.
Posts: 3560 | Registered: Wednesday, November 7 2001 08:00
Canned
Member # 8014
Profile #2
...The simplest things are hard for the maker.
And to combine with that, I am an oblivious type.

Well, that worked. Thank you.
And I have one more problem. When I exit into the outdoors for the first time, I am in a section I am not using.

--------------------
Don't judge a sentence until you know all the words.
Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again
Muffins n' Hell: The End is Near
Not in your shed -We are sort of done. Helpful criticism is welcome.
Everyone, just call me Iffy. Please.

Be grateful you have your unsellabe trowels -Goldenking

Just so you know, I am working on Muffins n' Hell the scenario.
Posts: 1799 | Registered: Sunday, February 4 2007 08:00
Off With Their Heads
Member # 4045
Profile Homepage #3
Set that in the Outdoors menu using "Set Starting Location."

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
Agent
Member # 27
Profile #4
You can also accomplish this from the exit state. I did this in a scenario that allowed the player to exit from for different locations in the starting town.

I think it's change_outdoor_location(x,y) but you'll want to check.

--------------------
Enraged Slith's Blades of Avernum Website

Look out, there's a three-headed monkey behind you!
Posts: 1233 | Registered: Wednesday, October 3 2001 07:00
Shock Trooper
Member # 10488
Profile #5
Actually, change_outdoor_location needs four parameters:

change_outdoor_location(section_x,section_y,loc_x,loc_y)
Posts: 334 | Registered: Friday, September 14 2007 07:00
Canned
Member # 8014
Profile #6
What Kelandon said worked, I never knew about the set location for outdoors.

--------------------
Don't judge a sentence until you know all the words.
Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again
Muffins n' Hell: The End is Near
Not in your shed -We are sort of done. Helpful criticism is welcome.
Everyone, just call me Iffy. Please.

Be grateful you have your unsellabe trowels -Goldenking

Just so you know, I am working on Muffins n' Hell the scenario.
Posts: 1799 | Registered: Sunday, February 4 2007 08:00