SenL Posted January 16, 2015 Share Posted January 16, 2015 Hi,I'm learning to mod this game.I'm currently looking at/learning from "Shovel Knight" by BLsquared(http://steamcommunity.com/sharedfiles/filedetails/?id=369544255&searchtext= ) Questions:1)In the shovelblade.lua, there is "MakeHauntableLaunch(inst)" inside local function fn(Sim).What is this/what does this do? 2)In the same file, there is "owner.AnimState:OverrideSymbol("swap_object", "swap_shovelblade", "swap_shovel")"What are these 3 parameters? 3)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? Thanks! Link to comment https://forums.kleientertainment.com/forums/topic/49221-shovel-knight-scripts/ Share on other sites More sharing options...
Rosten Posted January 16, 2015 Share Posted January 16, 2015 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 https://forums.kleientertainment.com/forums/topic/49221-shovel-knight-scripts/#findComment-602546 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now