Hey there!
Let me apologize beforehand, because I know this has probably been answered before.
I've found that using yanfly's EnhancedTP plugin does not work with items that add the "preserve TP" trait. In my case, there's just a single item (a ring) that provides this trait, and I've been trying to figure out how to make it work with EnhancedTP. Changing the TP mode of the character on equip and on unequip of the ring would work, but it'd also require a plugin.
The simplest possible solution was suggested to me in Discord: add an eval for whether the actor has the ring equipped in the "Preserve TP" plugin parameter for every TP mode. So, again with the help of some Discord users, we figured out the following script, (where X is the id of the ring):
user.hasArmors($dataArmors[x]) ? true : false
Unfortunately, this error shows up when I try to run this in the game:
What would be the appropriate way to check whether an actor has a certain piece of armor equipped?
Thank you!