Jump to content

Non-Existant Town Script State on leaving...


Aran

Recommended Posts

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?

Link to comment
Share on other sites

In your town's script, you need to have an EXIT_STATE, even if it's just

Code:
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...