Non-Existant Town Script State on leaving...

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: Non-Existant Town Script State on leaving...
Law Bringer
Member # 2984
Profile Homepage #0
Okay, last one for tonight (goodness, I'm going to double my started topics count of 2007 just this week...).

Whenever I leave my starting town, I get the error "Tried to call a non-existant town script state."

All four "exit states" in my town are set to -1, so they shouldn't be called. The special area I put over my town border is just one step within the border, and stepping there doesn't trigger the error message.

Do I need to set a town exit state, even if it does nothing?

Edit: Setting the town exit state to 2 (which definitely does exist) doesn't make the message go away. What is calling the non-existant state?

[ Monday, April 09, 2007 13:38: Message edited by: Dr. Johann Georg Faust ]

--------------------
Encyclopaedia ErmarianaForum ArchivesForum StatisticsRSS [Topic / Forum]
My BlogPolarisI eat novels for breakfast.
Polaris is dead, long live Polaris.
Look on my works, ye mighty, and despair.
Posts: 8752 | Registered: Wednesday, May 14 2003 07:00
Guardian
Member # 6670
Profile Homepage #1
In your town's script, you need to have an EXIT_STATE, even if it's just
beginstate EXIT_STATE;
break;
This, along with START_STATE and INIT_STATE, is needed for all scripts; BoA automatically calls them at certain times and they need to be there.

--------------------
First pants, THEN shoes.
Posts: 1509 | Registered: Tuesday, January 10 2006 08:00
Law Bringer
Member # 2984
Profile Homepage #2
Oh okay, that clears it up.

Will EXIT_STATE be called before, after or not at all if in the town details, there is a specific state given when the player exits in that direction?

--------------------
Encyclopaedia ErmarianaForum ArchivesForum StatisticsRSS [Topic / Forum]
My BlogPolarisI eat novels for breakfast.
Polaris is dead, long live Polaris.
Look on my works, ye mighty, and despair.
Posts: 8752 | Registered: Wednesday, May 14 2003 07:00
Infiltrator
Member # 3040
Profile #3
The easiest way to tell is probably to place a print_str or whatever in each of the two states and see which is printed first.

--------------------
5.0.1.0.0.0.0.1.0...
Posts: 508 | Registered: Thursday, May 29 2003 07:00