Jump to content

SL Defeat - Need help finding out how SL Defeat sets resist difficulty in scripts


Recommended Posts

Posted

Hello! There's something that's always quite bothered me about SL Defeat: It feels kind of strange that the resist difficulty is static across all opponents. I've tried to poke around in the scripts, but I just cannot figure out how the mod itself sets the difficulty. I wanted to make a patch for myself where the level difference as an int was actually added to the difficulty, or some other actor value difference.

 

Are there any oldheads who knows how SL Defeat works that can answer this? Is this already a mod I've somehow missed?

Posted

It actually is already part of the difficulty calculation. It's in the DefeatConfig script.

StruggleFillThreshold = ((Victim.GetLevel() - Aggressor.GetLevel()) + (StruggleClassChance(Victim, True) - StruggleClassChance(Aggressor)))

Basically, the difference in level and the difference in defensive skills vs aggressive skills. The variable name isn't very descriptive, but StruggleFillThreshold is the amount of struggle bar increased with each correct key press.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...