NaimaR Posted June 12, 2012 Share Posted June 12, 2012 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 More sharing options...
Cyberlazy Posted June 13, 2012 Share Posted June 13, 2012 Something like:Float healthrestoreset healthrestore to (player.getav endurance * 10) + 20player.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 More sharing options...
NaimaR Posted June 13, 2012 Author Share Posted June 13, 2012 I'll try that out, thanks!What do you mean by "pram"? Link to comment Share on other sites More sharing options...
luthienanarion Posted June 14, 2012 Share Posted June 14, 2012 Parameters? Link to comment Share on other sites More sharing options...
Cyberlazy Posted June 14, 2012 Share Posted June 14, 2012 Parameters? Yes. Varible in other words. Link to comment Share on other sites More sharing options...
Recommended Posts