About this mod
This mod is a collection of scripts I use when developing mods.
More scripts will appear as soon as I'll extract them from my other mods.
- Requirements
- Permissions and credits
- Changelogs
- Donations
Description
This mod is a collection of scripts I use when developing mods.
More scripts will appear as soon as I'll need them in my other mods.
SkyUI scripts extension
yeolde_mcm_configbase and yeolde_mcm_page
These scripts allow modders to split MCM menu scripts in multiple smaller scripts (1 script per MCM menu page).
- Each of your mcm_page script must extend yeolde_mcm_page and can implement MCM menus as usual, using MCM State Options from SkyUI.
You'll code your options as usual, usingOnPageInit
andOnPageReset
events. - Your main MCM menu must extend yeolde_mcm_configbase and add each menu page using the AddPage function.
Your MCM menu main script will look like this (example from YeOlde - Cheats mod sources):
And in the Creation Kit, you'll add your scripts like this (again, example from YeOlde - Cheats mod sources):
If you need a concrete use example, you just have to download YeOlde - Cheats and check the source code.
Papyrus SKSE plugin
The papyrus SKSE plugin (YeOldePapyrus.dll) with some functions I use for my mods
YeOldeForm.h
bool HasKeywords(TESForm* thisForm, std::string keywordStr);
(Return true if the Form has the specified keyword)
YeOldeFormList.h
void AddForms(BGSListForm* list, VMResultArray<TESForm*>* forms);
(Add some Forms to a FormList)
void ConcatenateLists(BGSListForm* list, BGSListForm* listToAdd);
(Add one FormList content in another. i.e. concatenate!)
VMResultArrayUtils.h
bool HasItem(VMResultArray<T>* theArray, T value);
(Check if an item is in the specified list.)
int Find(VMResultArray<T> theArray, T value);
(Find an item in a list and return the item index.)
void Add(VMResultArray<T>* theArray, VMResultArray<T> newItems, bool allowDuplicates = false);
(Adds a list of items to the specified array..)
New Papyrus Script functions (from the SKSE plugin)
I've added a set of functions to get ingredients, enchantments and material from all your active mods combined.
Credits
- The iEquip team for the main idea behind my "SkyUI pages split" feature.
All my mods