BeefLibrary

⭐ — (9 endorsements) 📥 192 downloads 📌 v1.0 📅 5/30/2024
⚪ Last updated 2024

By BeefStranger · Utilities

⬇ Download Mod Source: Nexus Mods ↗ 📅 Updated: 5/30/2024 📅 Created: 5/30/2024
⚠️ Install Order · 2 steps
1🛠️ MWSE — Morrowind Script Extender Download ↗
2🔧 MCP — Morrowind Code Patch Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 🏆 #24 of 49 Utilities mods in this game by downloads

📋 About This Mod

A bunch of functions and shortcuts I made for my mods

A library of functions that I found myself using often. I made it for myself, but feel free to use/cannibalize it for yourself.

My main uses in it are:

local bs = require("BeefStranger.functions")

bs.timer{dur = 1, iter = 3, cb = function() end}

local function onEffectTick(e)

local function doThis()

bs.onTick(e, doThis) ---For onTick Magic effects

local targetRef = bs.rayCast(900) ---Returns the reference of a rayTest, 900 is the distance

bs.typeCheck(targetRef, "npc") ---Used to check if an objectType matches what youre looking for

if bs.typeCheck(target, "npc") then

bs.msg("Target is NPC")

bs.inspect(tableToInspect) --Logs a table to the console

local log = bs.getLog("logName") ---Gets or creates a log, returns a table of other functions too.

local dbg = log.debug

local trace = log.trace

log.setLogLevel("DEBUG")

--Also has if need what would normally be the log you create. ie local log = logger.new{...}

=====Helper functions======

bs.sf()  ---Short for string.format

bs.addSpell(tes3.player, "light") ---Shorthand for addSpell

bs.sellSpell("fargoth", "light") ---Gives the spell to the target, and makes them sell spells

bs.keyUp("b", function()

bs.msg("B pressed")

bs.msg("Message #%s", number) --Shorthand for tes3.messageBox

=====Sounds=========

bs.playSound("bell6", volume, pitch, ref) -- BeefLibrary contains a table of all vanilla sounds so you can also do

bs.playSound(bs.sound.bell6) --- I find this very useful because it suggests valid sounds

bs.sound.register() ---Registers a few custom sounds I got from freesound.org

the custom sounds are under bs.bsSound / bs.bsSound.magicImpact for instance

==============EffectMaker================

This is very similar to MagickaExpanded just with a bunch of tweaks I wanted,

Has a lot of auto values for quick setup, Heres a valid effect creation.

event.register("magicEffectsResolved", function()

bs.effect.create({

id = "TestID",

name = "Test Name",

school = tes3.magicSchool.alteration,

onTick = testTick

this will auto assign an icon/sound/vfx based on what ever school the effect is.

========spellMaker=============

bs.spell.create({

id = "testSpell",

name = Test Test",

effect = tes3.effect. TestID,

duration = 3,

range = tes3.effectRange["target"],

alwaysSucceeds

📊 Mod Details

Game
Morrowind Mods
Author
BeefStranger
Version
1.0
Downloads
192
Endorsements
9
Category
Utilities
Created
5/30/2024
Updated
5/30/2024

🔧 How to Install Morrowind Mods

Download from Nexus.

📖 Full step-by-step install guide for Morrowind →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Morrowind commands, item IDs, and more.

Keep browsing — more Morrowind mods await

📋 All Morrowind Mods 🏆 Top 25 📂 More Utilities 👤 More by BeefStranger 🔎 Similar Mods 🌐 Best Utilities (All Games) ⚠️ Fix Crashes & Errors 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods