Jump to content

Home

How to lock the party?


Sikon

Recommended Posts

I need to prevent the player from selecting anyone into the party. However, it should be done via a script, because the zone needs to allow party selection before some point and disallow it after that point. I can, of course, do SetNPCSelectability(i, 0) for each party member and then undo it after the player passes the party-locking section, but it's an ugly solution.

Link to comment
Share on other sites

I need to prevent the player from selecting anyone into the party. However, it should be done via a script, because the zone needs to allow party selection before some point and disallow it after that point. I can, of course, do SetNPCSelectability(i, 0) for each party member and then undo it after the player passes the party-locking section, but it's an ugly solution.

 

You can use the SetAreaUnescapable() function to disable use of the party selection screen. Set the parameter to TRUE to prevent the player from changing party members, and set it back to FALSE to allow changing party members again.

 

(If it's for KotOR1, note that this will also disable the "Return to Ebon Hawk" button in the map screen.)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...