Jump to content
  • 0

How can I trigger an event bank spot to open after talking to a scripted NPC?


Ambard

Question

I have an npc event set as a bank but it needs to only open after the player has talked to a separate event npc. Example: You walk up to the bank NPC but unless you have talked to Thurston first the bank refuses to open for you.

 

Thanks

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
14 hours ago, Ambard said:

I have an npc event set as a bank but it needs to only open after the player has talked to a separate event npc. Example: You walk up to the bank NPC but unless you have talked to Thurston first the bank refuses to open for you.

 

Thanks


You can do this in several ways depending on your needs.

For example;

1) The NPC they must speak to first could give a quest. The bank NPC could be conditioned to only work if the quest is completed.

2) If you don't need it to be a quest, but rather something temporary, requiring you to always speak to the first NPC, then you can do this with a player variable, "bank_on." When the player speaks to the first NPC, the variable becomes "TRUE." The bank NPC is conditioned to only work if the variable "bank_on=TRUE." This way, you can set this variable to "FALSE" whenever you need to speak to the first NPC again.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...