Jump to content

[LE] Creating multiple different global resistance values


Recommended Posts

I am new to modding on the creation kit, but I am not new to coding. I am trying to have multiple different resistance values assigned to every character instead of the single value they are all given "fPlayerMaxResistance." I am having a hard time just simply finding a starting point to at least begin scripting for one type of resistance. Once I am able to write the script for one where do I place it? When looking for locations the fPlayerMaxResistance variable is used it turns up blank. Any help is appreciated!

Link to comment
Share on other sites

Things are a little more complicated than just find 1 value/reference and then modify that value.


All "Resistances" in game/CK are controlled by 2 factors.

1) "Ability Spells" which they can live in each Race or they can be added individually to selected npcs.

"Resistance Ability Spell" can have a number of different entries in them, to be more precise "Active Magic Effects".

For example : A Resistance Ability Spell can have in it.

Resistance to fire 100%

Resistance to frost 50%

Resistance to Magic 25%

Weakness to Shock 100%

Waterwalking

etc...


2) "Perks" which they can have 2 way of applying Resistance.

a) They are controlled by an "Ability Spell".

b) They have an "Entry Point" which it can modify a number of things according with what "Entry Point" you will chose to modify.

For example : if you need to modify the damage the npc can take, then you choose "Entry Point" > Mod Incoming Damage.


Each Race - Creature - Selected npc have/can have its own pack of resistances.


* If by modifying the "fPlayerMaxResistance." you mean the percentage of resistance, to modify it from 100% to 200%, then this can not be done because the percentage is hard coded.


As you can see it's not that simple and just one script can't do anything by itself.


I hope this didn't disappoint you and you will keep digging into this.

Edited by maxarturo
Link to comment
Share on other sites

  • Recently Browsing   0 members

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