Skyrim

Video information

Added on

Uploaded by

DavidJCobb

About this video

I'm working on integrating Lua into Skyrim -- not as a replacement for Papyrus, but to do things that Papyrus can't do. I've found several parts of the game that, if patched, allow you to do some interesting things... but whatever code you patch them with has to run to completion without being interrupted, and Papyrus is designed to let things interrupt it. So, Lua.

Here, my code is intercepting the "actor is going to be killed" code. The Lua script shown at the start of the video applies a small physics push to the actor, restores it to full health, and prevents its death. There are some other hooks running as well, such as one that routes all damage taken by the player through magicka first (making magicka function as an energy shield with bleed-through); this was something I'd hardcoded in the past as an experiment.

To clarify: This isn't published yet. The video makes reference to CobbAPI, but the version of CobbAPI currently available for download does not offer this functionality, because the functionality is very far from being finished. Currently, Lua only "understands" a few form types, only has access to a handful of functions, and the mod only runs one script file (at a hardcoded file path). The goal is to, at a minimum, make it possible to recreate mods like ESO Death and Resurrection in Lua. When I first released it, loads of people had requests and ideas -- Make it cost dragon souls! Make it require a quest! Tie necromancy to it! -- and I didn't want to have to personally hardcode everyone's individual desires; much better to give you all the tools to create your own vision, no?

0 comments

  1. ViZePulse
    ViZePulse
    • supporter
    • 11 kudos
    interesting stuff!