I'm trying to add a magic item that grants the wearer the Two-Weapon Fighting feat. If he already has that, then they get the Improved Two-Weapon Fighting feat.
So, I'm able to assign TWF without any issue, but I'm running into issues assigning ImpTWF if they have TWF. Basically, I've got the code so that it checks if the TWF feat is already there, then assigns a Custom tag. Using the Custom tag as the requirement, it should work, but I run into a timing error [...occurs after earliest rule/script (First/2380)], which is when the actual feat is assigned (as opposed to the item's virtual feat).
Any suggestion? If I move the timing earlier than 2380 for the check, it doesn't see the feat, so it never assigns the Improved feat. But if it's later, the error comes up.
So, I'm able to assign TWF without any issue, but I'm running into issues assigning ImpTWF if they have TWF. Basically, I've got the code so that it checks if the TWF feat is already there, then assigns a Custom tag. Using the Custom tag as the requirement, it should work, but I run into a timing error [...occurs after earliest rule/script (First/2380)], which is when the actual feat is assigned (as opposed to the item's virtual feat).
Any suggestion? If I move the timing earlier than 2380 for the check, it doesn't see the feat, so it never assigns the Improved feat. But if it's later, the error comes up.