Jump to content

Looking to use SPECIAL values in scripts


NaimaR

Recommended Posts

Hi

 

I'm working on a little mod of my own, been creating these health restoration abilities via a script.

However, instead of just restoring a flat amount of health, I'd like to do something like '(Endurance X 10) + 20 HP restored'.

Does anyone have an idea as to how I could do this?

I've got 'player.RestoreAv Health 40' working, as a test, but I'm not sure how to do what I described above.

 

Thanks in advance

Link to comment
Share on other sites

Something like:

Float healthrestore

set healthrestore to (player.getav endurance * 10) + 20

player.restoreav health healthrestore

 

 

Geck does NOT like it when you try and do math or call functions to use as prams to other functions, You have to set a pram then use it in the next function.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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