Jump to content

Shovel Knight scripts


Recommended Posts


I'm learning to mod this game.

I'm currently looking at/learning from "Shovel Knight" by BLsquared





In the shovelblade.lua, there is "MakeHauntableLaunch(inst)" inside local function fn(Sim).

What is this/what does this do?



In the same file, there is "owner.AnimState:OverrideSymbol("swap_object", "swap_shovelblade", "swap_shovel")"

What are these 3 parameters?



In the same file, there is "inst.components.tool:SetAction(ACTIONS.DIG)" and then later "inst:AddInherentAction(ACTIONS.DIG)" -- why these two?


There is "inst.components.tool:SetAction(ACTIONS.MINE, 2)" but nothing below regarding AddInherentAction to mine. Why?



Link to comment
Share on other sites

Im no skilled programmer, but let me take a few wild guesses.

1. Im assuming this makes it where, of the available actions, whenever the Shovelblade is haunted, it will be launched across the screen similar to how a MooseGoose would knock items out of your inventory

2. If I recall correctly, these let the game know what images to use when displaying the shovelblade

3. This probably gives the Shovel the ability to dig similar to a normal shovel.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

  • Create New...