Non-Existant Town Script State on leaving...
Author | Topic: Non-Existant Town Script State on leaving... |
---|---|
Law Bringer
Member # 2984
|
written Monday, April 9 2007 13:36
Profile
Homepage
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 Ermariana • Forum Archives • Forum Statistics • RSS [Topic / Forum] My Blog • Polaris • I 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
|
written Monday, April 9 2007 13:48
Profile
Homepage
In your town's script, you need to have an EXIT_STATE, even if it's justThis, 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
|
written Monday, April 9 2007 22:36
Profile
Homepage
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 Ermariana • Forum Archives • Forum Statistics • RSS [Topic / Forum] My Blog • Polaris • I 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
|
written Tuesday, April 10 2007 15:02
Profile
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 |