alt text

Welcome to the documentation for BetterMods.

Refer to the documentation here for BetterMods.

Quick Start Notes:

  1. Download BetterMods from Nexus here
  2. Extract the !BetterMods folder to your Blade and Sorcery mod folder \Blade & Sorcery\BladeAndSorcery_Data\StreamingAssets\Mods
  3. In your mod project, add a reference to !BetterMods.dll
  4. Start making your mod!
  5. When packaging your mod and putting it on nexus, make sure you add BetterMods as a dependency for your mod

Example Mod:

  1. Wully's Choking mod is available on Nexus here.
  2. You can view the source for it here

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

  • Improve this Doc
In This Article
Back to top Generated by DocFX