Increase value with function in real-time

Post » Sat Feb 07, 2015 1:53 am

Hello there!

I'm a newbie in scripting so please answer in detail if possible.

I want to improve magic perks like "Novice Destruction", "Apprentice Destruction" and so on in all magic schools.

I'd like to add Spell Magnitude Multiplier to them that will increase damage dealt depending on Actor's current skill level. It should affect both Player and NPCs.

I tried to do this without using Papyrus and it looks like:

Damage dealt = Basic damage dealt * ( 1 + 0.01 * Current skill level )

This is not good enough cause magic becomes too overpowered at low lvls of skills using starting perks.

I'd like to increase the Damage dealt by quadratic function like:

Damage dealt = Basic damage dealt + Basic damage dealt * ( 0.0001 * Current skill level ^2 )

The bad thing is that I can not do this using base functions of Creation Kit and I'm bad at programming.

The best try without Papyrus was:

Damage dealt = Basic damage dealt * ( 0.01 * x ) * ( 0.01 * x ) + constant ( for example for Novice Destruction constant is 8 - basic damage of "Flames", "Sparks" etc )

This formula does what I want for 3 basic Destruction spells but is not working for any other spell cause I need to change constant value.

I do not even know where to start doing this calculation using Papyrus.

Please give me a hand if you know the answer.

User avatar
Jade Payton
 
Posts: 3417
Joined: Mon Sep 11, 2006 1:01 pm

Return to V - Skyrim