I'm trying to develop a mechanic where certain items are considered "contraband" or "illegal" for various purposes in-game.
I know at least one way to make illegal items unable to be sold in "legitimate" stores (i.e. either set the sell value to 0 or use Yanfly's Item Core's <Cannot Sell> note tag). I also know how to "check" if a player is possessing a contraband item for purposes of developing features like being searched by a guard / police. But I'm trying to come up with a way to change the contraband status of an item mid-game.
So, just to give an example, imagine that a faction in-game outlaws possession and sale of a particular drug. But further imagine that I want to have the faction legalize possession of that drug mid-game. Can anyone think of an efficient way that I can make it so the player will then be able to sell the item and the player will not be flagged as possessing contraband during a hypothetical guard search? Bonus points if you can think of a way to implement this so that certain items can be illegal in one faction's shops but not others.
I'm comfortable using switches, variables, common events, and script calls as necessary, so feel free to suggest anything you think would work. I'm also using Yanfly's Item Core and a lot of associated Yanfly plugins, in case that helps or matters. Any creative ideas appreciated!
I know at least one way to make illegal items unable to be sold in "legitimate" stores (i.e. either set the sell value to 0 or use Yanfly's Item Core's <Cannot Sell> note tag). I also know how to "check" if a player is possessing a contraband item for purposes of developing features like being searched by a guard / police. But I'm trying to come up with a way to change the contraband status of an item mid-game.
So, just to give an example, imagine that a faction in-game outlaws possession and sale of a particular drug. But further imagine that I want to have the faction legalize possession of that drug mid-game. Can anyone think of an efficient way that I can make it so the player will then be able to sell the item and the player will not be flagged as possessing contraband during a hypothetical guard search? Bonus points if you can think of a way to implement this so that certain items can be illegal in one faction's shops but not others.
I'm comfortable using switches, variables, common events, and script calls as necessary, so feel free to suggest anything you think would work. I'm also using Yanfly's Item Core and a lot of associated Yanfly plugins, in case that helps or matters. Any creative ideas appreciated!