Welcome to the documentation for BetterMods.
Refer to the documentation here for BetterMods.
Quick Start Notes:
- Download BetterMods from Nexus here
- Extract the
!BetterMods
folder to your Blade and Sorcery mod folder\Blade & Sorcery\BladeAndSorcery_Data\StreamingAssets\Mods
- In your mod project, add a reference to
!BetterMods.dll
- Start making your mod!
- When packaging your mod and putting it on nexus, make sure you add BetterMods as a dependency for your mod
Example Mod:
Using BetterEvents
BetterEvents is a collection of events which you can listen to, eliminating complex logic from handling BAS events yourself!
Simply import the static class with
using static Wully.Events.BetterEvents;
You can then start typing On<...> and intelliSense will show you the available events you can listen to. Such as:
OnPlayerDismemberCreatureHead += MyClass_OnPlayerDismemberCreatureHead;
Check out the using static Wully.Events.BetterEvents; functions here
Using BetterHelpers
BetterHelpers is a collection of static functions to simplify your code and make it easier to read
Simply import the static functions with
using static Wully.Helpers.BetterHelpers;
You can then start using the functions right away. Such as:
if ( !IsPlayerUsingTelekinesis(side) && (IsGripPressed() || IsGripAndCastPressed()) ) {
Debug.Log("Player isnt using TK but is holding some buttons..");
}
Check out the BetterHelper functions here