I'm trying to create a Battle AI that 1- checks if a specific weapon type is equipped (not a weapon, a category of weapons, like swords, not a specific sword) and then, if it's not currently equipped 2- checks in the inventory if there is at least one weapon of this specific type and then, if yes, 3- adds a temp ability to equip the weapon (with a Change Equipment node).
Step 1 is easy, I use a Check Status node with Weapon Item Type. However, step 2 is tricky because with a Check Status node set to Inventory, I can only check for a specific weapon. So, I'd need to check for every sword in the game... At least, that's according to my current knowledge... maybe I'm wrong.
Is there a better way to check if there is a specific weapon type in inventory and then equip a random one (or the first-found one) from the inventory?