About this mod
A hub for an esp and scripts I use and will use across multiple mods. Made public in case my methods might help some people out
- Requirements
- Permissions and credits
- Changelogs
- Donations
Introduction
Hey everyone! This is a hub for a master ESP and scripts I use (and will use) across multiple mods. I don’t expect a ton of people to use this, but I’ve made it public in case my methods can help someone out.
If you’re the average player, you probably don’t need this. But if you’re a modder looking to avoid writing multiple scripts that do the same thing for different objects, this might be useful. Idk.
ESP File: Rev's Game Hooks
- Flags: Master File and ESL
- Details: Records in this ESP do nothing on their own and require hooking into them for your own use.
- Current Contents:
- Global variable and spell+effect system to track increases and decreases in dragon souls owned by the player.
- Useful for tracking positive and negative changes, as no SKSE plugin currently supports this.
Most scripts are standalone and can be used in your mods without requiring the ESP file. Below is a detailed list of available scripts:
- BlockSpellScript
- Casts a spell upon blocking, with an optional cooldown.
- Casts a spell upon blocking, with an optional cooldown.
- BowSpellScript
- Triggers spell casting on bow weapon hits, with optional bow and ammo specifications. Powered by PO3's Papyrus Extender.
- Triggers spell casting on bow weapon hits, with optional bow and ammo specifications. Powered by PO3's Papyrus Extender.
- CastOnEndScript
- Casts a spell when an effect ends (complements Bethesda’s CastAnotherSpellScript, which triggers on effect start).
- Casts a spell when an effect ends (complements Bethesda’s CastAnotherSpellScript, which triggers on effect start).
- CastOnKillScript
- Powered by PO3’s Papyrus Extender, casts a spell upon killing a target.
- Powered by PO3’s Papyrus Extender, casts a spell upon killing a target.
- CrossbowSpellScript
- Casts a spell when a crossbow fires.
- Casts a spell when a crossbow fires.
- CustomAmmoScript
- Similar to Bound Bow’s script but smarter—equips specific ammo and allows unequipping if the weapon changes.
- Use case: Attach to a constant spell effect and place in an enchantment’s Equip Ability field to ensure specific ammo is used with a weapon.
- DragonSoulTrackerScript
- Works with the ESP file to track changes in dragon soul count.
- Works with the ESP file to track changes in dragon soul count.
- HandlerScript: Contains multiple utility functions:
- AddSpells: Adds spells from a formlist to an actor if they don’t already have them.
- Parameters: alSpellList (formlist), akPlayerRef (actor)
- Parameters: alSpellList (formlist), akPlayerRef (actor)
- PlayTargetedFX: Plays a visual effect and sound on an object, optionally facing another object.
- Parameters: avFX (visual effect), asFX (sound), akObject (target object), akFacingObject (optional facing object), fPlayTime (duration)
- Parameters: avFX (visual effect), asFX (sound), akObject (target object), akFacingObject (optional facing object), fPlayTime (duration)
- AddPerks: Adds perks from a formlist to the player if they don’t already have them.
- Parameters: alPerkList (formlist), akPlayerRef (player)
- Parameters: alPerkList (formlist), akPlayerRef (player)
- UpdateSpells: Removes and re-adds spells from a formlist to bypass condition check bugs and update passive effect magnitudes.
- Parameters: alSpellList (formlist), akPlayerRef (actor)
- Parameters: alSpellList (formlist), akPlayerRef (actor)
- AttackSpell: Casts a spell based on the attacker’s equipped weapon and animation state.
- Parameters: akAttacker (actor), akH2HSpell (hand-to-hand spell), ak1HSpell (one-handed spell), ak2HSpell (two-handed spell), abPowerOnly (cast only if not sneaking and rotation allowed)
- Parameters: akAttacker (actor), akH2HSpell (hand-to-hand spell), ak1HSpell (one-handed spell), ak2HSpell (two-handed spell), abPowerOnly (cast only if not sneaking and rotation allowed)
- AddSpells: Adds spells from a formlist to an actor if they don’t already have them.
- LoaderScript
- Works with HandlerScript’s update functions to refresh spells and perks upon game load.
- Works with HandlerScript’s update functions to refresh spells and perks upon game load.
- MoveSpeedBugFixScript
- Attaches to a slow effect to properly slow down enemies.
- Attaches to a slow effect to properly slow down enemies.
- SpellAttackScript
- Uses HandlerScript’s AttackSpell function to cast spells during attacks.
- Uses HandlerScript’s AttackSpell function to cast spells during attacks.
- SpellOnHitScript
- Powered by PO3’s Papyrus Extender, hooks into the OnHitEx event for spell casting.
- Powered by PO3’s Papyrus Extender, hooks into the OnHitEx event for spell casting.
- SpellOnShout
- Casts a spell when shouting.
- Casts a spell when shouting.
- TimedLifeScript
- Attaches to object references to centralize despawning logic.
- Attaches to object references to centralize despawning logic.
Mod Requirements
Notes
- Scripts are designed for modders seeking reusable, efficient solutions.
- Feel free to integrate these scripts or the ESP into your mods as needed.