Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Lab Assistant
Original Poster
#1 Old 13th Nov 2020 at 10:00 PM
Default Conditional Interaction Appearance
As a little side project from my cane mod, I'm trying to improve my swordfighting mod a bit. Basically, I want to both make it that only those with some skill in Martial Arts can use the interaction, and, of course, that it only appears on sims that also have some level of the Martial Arts skill. i understand that the test( function is used for that purpose. What exactly in it should I write to achieve this objective?
Advertisement
Space Pony
#2 Old 13th Nov 2020 at 10:41 PM
Just return false in the test function if the martial arts skill is below your set level

Code:
if (actor.SkillManager.GetSkillLevel(SkillNames.MartialArts) < 6 )
{
 return false;
}
Back to top