Magnificent Ornk Aran Posted April 3, 2007 Share Posted April 3, 2007 I would like to prevent the party from leaving the town until a certain condition is met. I've tried to do this by setting the town exit state to execute this: Code: if (!condition) { message_dialog("You can't leave yet!",""); block_entry(1); } This works exceedingly well when the player actually steps on a special encounter with this state - they can't walk on. But apparently, block_entry() does *not* prevent the party from leaving town during the exit town state. The message is displayed, but the party gets to escape. Is there a way to get what I want without drawing specials over all four borders of the town? Quote Link to comment Share on other sites More sharing options...
Unflappable Drayk Lazarus. Posted April 3, 2007 Share Posted April 3, 2007 Not without swapping the entire perimiter to an unpassable terrain. It's not like it's a huge deal, just draw four special rectanges just outside the town's borders, they don't even have to be inside the town's boundaries. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Callie Posted April 3, 2007 Share Posted April 3, 2007 Here's a possibility: Make a custom terrain (one that can't be walked through) that's practically invisible. Place it on the path leaving the town, and when the party meets that condition, have a script to remove the terrain. Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk Aran Posted April 3, 2007 Author Share Posted April 3, 2007 Well, that approach works too... but for what I intend, it really seems overkill. Lazarus, do you mean within the town or outdoors around the town entrance? Because if it's the former, then they *do* need to be inside the boundaries in order to prevent the player from leaving. Unless I'm completely ignorant of how special areas outside the town boundary are handled... Quote Link to comment Share on other sites More sharing options...
Unflappable Drayk Lazarus. Posted April 3, 2007 Share Posted April 3, 2007 You're completely ignorant. I did mean the town, and yes you can put them outside the town boundaries. Obviously it can only be one space outside, but so long as the player can't step outside the boundaries without triggering the special you're fine. Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk Aran Posted April 4, 2007 Author Share Posted April 4, 2007 Quote: Obviously it can only be one space outside See, when you're precise, it all makes sense. 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.