ServantOfSin Posted October 31, 2015 Share Posted October 31, 2015 Specifically I want to modify the LVLG property. I know if I add a global there in the creation kit I can simply modify that global. Is it possible to add the global through a script? I've scoured around and can't find a way. Appreciate any advice. Link to comment Share on other sites More sharing options...
sLoPpYdOtBiGhOlE Posted November 1, 2015 Share Posted November 1, 2015 (edited) You can't create a new global variable via script.You can set what global variable a levellist points to via SKSE functions. For LeveledItems: Scriptname LeveledItem extends Form Hidden ; Adds the given count of the given form to the under the given level in this leveled list Function AddForm(Form apForm, int aiLevel, int aiCount) native ; Removes all script added forms from this leveled list Function Revert() native ; SKSE additions built 2015-05-24 00:46:48.937000 UTC int function GetChanceNone() native Function SetChanceNone(int chance) native GlobalVariable Function GetChanceGlobal() native Function SetChanceGlobal(GlobalVariable glob) native int Function GetNumForms() native Form Function GetNthForm(int n) native int Function GetNthLevel(int n) native Function SetNthLevel(int n, int level) native int Function GetNthCount(int n) native Function SetNthCount(int n, int count) native Edited November 1, 2015 by sLoPpYdOtBiGhOlE Link to comment Share on other sites More sharing options...
ServantOfSin Posted November 1, 2015 Author Share Posted November 1, 2015 Excellent. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts