Magnificent Ornk Aran Posted April 9, 2007 Share Posted April 9, 2007 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? Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast Dintiradan Posted April 9, 2007 Share Posted April 9, 2007 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. Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk Aran Posted April 10, 2007 Author Share Posted April 10, 2007 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? Quote Link to comment Share on other sites More sharing options...
Rotghroth Rhapsody wz. As Posted April 10, 2007 Share Posted April 10, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.