Jump to content

Recommended Posts

Hello.

I am creating my first mod ever for a video game, and this mod just so happens to be for Don't Starve Together.

I have gone through thick and thin searching for help - YouTube tutorials, "cheat" code websites, and even this website, Klei Entertainment - and I cannot find the correct tutorial for what I would like to do with my character.

I already have the codes, but I do not know where to put them without making the game crash whenever I start a new world or load up an existing one.

These are the codes I plan on using:

 

(Befriend Spiders:)

return FindEntity(inst, targetDist,
        function(guy)
            if inst.components.combat:CanTarget(guy)
               and not (inst.components.follower and inst.components.follower.leader == guy)
               and not (inst.components.follower and inst.components.follower.leader == GetPlayer() and guy:HasTag("companion")) then
                return (guy:HasTag("character") and not guy:HasTag("monster"))
            end
    end)

 

(Resist cold:)

inst.components.temperature.mintemp = 20

 

My question is simple: Which LUA file do I open with Notepad++, and where do I put my prefabs (the lines of coding that add special abilities to my character (ex: resistant to cold, befriend spiders, etc))?

This is for the most recent version of DST (as of 9/24/2016)

Thank you very much!

2 hours ago, yusra said:

did you find it out? if you did, can you help me out with it since im going with similar abilities for my character 

This post is from 2016, I doubt you'll get a response from OP, but nowadays we have a proper newcomer tutorial which teaches you the basics on how to make your own mod, which you'll really wanna learn if you want to make mods.

Specific to your problem though, which perks did you have in mind specifically? I can help you implement them if you already have a character working in game.

  • Like 1

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
×
  • Create New...