Jump to content

Prevent party from leaving town


Aran

Recommended Posts

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?

Link to comment
Share on other sites

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

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