Jump to content

[papyrus] how to attach an individual spell's magnititude to a MCM slider?


3aq

Recommended Posts

trying to attach slider to a spell's magnitude; example: attaching an mcm slider to the magnitude of only Shock, or Healing Hands.

 

I figured it would be the same as attaching it to the getavs but it isn't so..

 

my closest way to getting it working is creating a pseudo spell script for the spell in question which can be referenced by the slider; but unsure if this is the wisest thing to do

 

assistance is greatly appreciated.

 

 

Link to comment
Share on other sites

You are already using SKSE in order to have an MCM. So I would surmise that you are using GetNthEffectMagnitude and SetNthEffectMagnitude to change the value on the desired spell.

 

If that is the case and because the set value does not persist across saves, then just create the slider with the range that you want and store the selected value in a global variable record. Then in the MCM's OnConfigClose event call a function you've created on a player alias script to update the desired spell with the new values. And that same function would be utilized as part of your maintenance routine with the OnPlayerLoadGame event.

 

I see no need for a pseudo spell of any kind.

Link to comment
Share on other sites

thanks, this is just the input I needed (was grabbing at it the dark, been away from papyrus scripting for a long while so knowledge is muddled).

Edited by 3aq
Link to comment
Share on other sites

  • Recently Browsing   0 members

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