Method three – use GetFormFromMod for vanilla and unmergeable mods. A potential disadvantage here is the possibility of Form ID renumbering during mod merging. Insert it in place of 5719 in the example.ĭone, you can now use all NVSE features. Paste them into any hex-to-dec convertor, for instance, this one, and get a number. Open FNVEdit, you’ll see something like this 00004240 – the first two symbols are load-order-dependent mod index, last six are the form ID of your UDF.
Running them directly call MyEditorID is not very reliable by my tests, but RunScript works fine. With JG, you can run scripts by their Editor IDs. This method implies, that your mod already depends on JohnnyGuitar NVSE and contains explicit instructions for users to keep bLoadEditorIDs enabled. Method one – use JohnnyGuitar NVSE with bLoadEditorIDs=1. These files are executed in the console environment, hence no resolution of Editor IDs by default, only Form IDs are allowed. As of xNVSE 6.21, text scripts support practically full range of NVSE expressions, including loops and lambdas. Seems like they share scripting abilities with RunBatchScript, meaning local variables and if/else support.