Sign in to follow this  

[Mod] Test001

Recommended Posts

I made a test you can try out:


(inspired by "Magic Lamp Old Value Reader")

All it does is modify the Lamp to show the old value.

local oldValue = DFHack.walkPath(self.entity.state, activePath)

speakHalcyonLine("Ah, so Ida has found a location for you... " .. activePath .. " (old value " .. oldValue .. " )")

I accomplished this by unluac'ing HalcyonLampItem.lua adding one line and modifying a second line, compiling and including the modified file in the mod folder and then putting the following lines in Patch.lua

loading.prompt("Loading Alternate: HalcyonLampItem.luac")

local file1 = modfiles.load("HalcyonLampItem.luac")

assets.overwrite("Data/Content/Game/Global/Items/HalcyonLampItem.lua", file1)

loading.prompt("Loading Complete")

and that's it.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this