Beaniebe-Beanie_Lib icon

Beanie Lib

A Library for my niche (But maybe useful) scripts

Last updated 2 hours ago
Total downloads 3
Total rating 4 
Categories Libraries Misc BepInEx Server-side
Dependency string Beaniebe-Beanie_Lib-1.0.0
Dependants 2 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Evaisa-HookGenPatcher-0.0.5 icon
Evaisa-HookGenPatcher

Generates MonoMod.RuntimeDetour.HookGen's MMHOOK file during the BepInEx preloader phase.

Preferred version: 0.0.5

README

Beanie Lib

Beanie lib is a very basic library with currently two scripts. If for any reason you ever wanted to use them in your own projects, they are listed below along with how to set them up. They can easily be connected to JLL scripts.

Trigger Counter

The trigger counter script reads how many times it has been triggered, and upon reaching a certain number set by the user, invokes a unity event. This can be used in situations such as having 3 different buttons that need to be pressed to open a door. Please note that if the button can be pressed multiple times, it would still count towards opening the door (even if the same one is pressed three times). The integer for how many times it needs to be activated to invoke the event is completely configurable. Additionally, there is a true or false setting that determines if when the goal of activations is reached, the script should invoke the event and reset itself to 0. Otherwise, upon reaching the pre determined number it invokes the event once and then turns off.

EXAMPLES:

Having a configurable amount of buttons necessary to open a door.

Having to use something a configurable amount of times for the actual effect to trigger

Having something require several different criteria to activate

Dynamic Texture Swapping

This script is relatively simple: Applying it on an object will bring up a list. In this list, for each entry you can set a material and then put in a corresponding LLL Moon tag. When a moon with this tag is present, the texture is automatically swapped to the corresponding material. This allows for interiors to easily swap visuals on a tag basis without having to copy entire rooms or models. Good for avoiding bloat in editor.

EXAMPLES:

Having a room change colors on a certain tag

Having rocks change color to match the biome the moon is in

Thats all for now, but more niche scripts may be added in the future.

Credits

Thank you to Jacob and Xu Xiaolan for helping to review the scripts!