I need a script call that can determine if a certain class has access to a skill. The skill is granted in the "traits" section of the editor. I suspect it'll be something like $dataClasses.traits.somethingsomething. (I believe the trait code for skills is 43.) Just not sure exactly which function to use to check if a class has trait code 43 and id x.
(Note: I need to directly check the class itself, not a specific actor.)
For context, I've modified Yanfly's Region Restrict script to work with terrain tags, which allows swimming for certain classes that I've given the Swim skill. I've also modified Yanfly's Class Change Core to populate the class list with classes that are valid for the current terrain tag (ie. no changing to a non-swimming class while on a water tile). Currently, I use a manual list of the swimmer class id's to regulate what gets added to the class list, but this is a workaround and I'd rather find a way to automatically check for the Swim skill as the list is being populated.
Thanks in advance!
(Note: I need to directly check the class itself, not a specific actor.)
For context, I've modified Yanfly's Region Restrict script to work with terrain tags, which allows swimming for certain classes that I've given the Swim skill. I've also modified Yanfly's Class Change Core to populate the class list with classes that are valid for the current terrain tag (ie. no changing to a non-swimming class while on a water tile). Currently, I use a manual list of the swimmer class id's to regulate what gets added to the class list, but this is a workaround and I'd rather find a way to automatically check for the Swim skill as the list is being populated.
Thanks in advance!