Jump to content

Recommended Posts

Guys I'm making a custom character mod, I have some really cool ideas but I'm pretty idiotic when it comes to coding and I think that what I wanna do is

going to take some above average coding, I'd really appreciate it if I could ask some questions and maybe get some help, this might be helpful to other users as well.

Link to comment
https://forums.kleientertainment.com/forums/topic/68843-coding-help-mod-making/
Share on other sites

Okey so I got a character mod that a friend gave me (he said it's a mod similar to what I'm trying to do) and I want to change it to what I want now, but it makes little sense to me sometimes and I don't even know if I would want/need to change it.  :confused::confused::confused:

 

First question: At the bottom of my modmain.lua file there's this. Can someone please tell me what this does and/or means?

 

 

Edited by Helix0623
wanted to correct some errors
31 minutes ago, Helix0623 said:

First question: At the bottom of my modmain.lua file

 

This changes the "lootdropper" component, the code that lets thing drop loot. Most of the function is just a copy of the original.

The only differences are the implementation of a "lootsetupfn" check, presumably to allow for a perk, as well as line 48 using a different function to get a potentially existing recipe.

 

You should be able to leave the code as is, if you aren't sure if you need it, but if there is any issue with it, then it is almost certainly the recipe line.

Thanks a lot for the reply Mobbstar.

Second question: I just went along and edited the file prefabs.lua for a minion/pet that I would want my character to create and control, As far as my knowledge goes it can grow larger over time, regenerate health, gives sanity when I'm near it and it cannot set off traps, just like I wanted. However I found that   1. The size it can grow to is a bit bigger than i want it to be.   2. Although I want it to not set off traps it does not get slowed by spider webbing on the floor and I sorda want it to be slowed by it.   and   3. I'm not sure if my tinkering in the file might have made it unusable.

It would be nice if someone with experience or just a better understanding of code could go over it for me. (I know it's probably stupid little changes but I feel like this could be some of the stuff that allows me to make and edit the mod into my own)

 

Edited by Helix0623
posted frong file >_<

This is the DS modding forum, you are modding for DST exclusively.

Sadly I could not see what your concerns 1 and 2 are caused by. The locomotor is not told to ignore webbing and there is no growable component or alike.

Perhaps you should choose a more unique name than "minion1" to avoid mods clashing.

Quote

This is the DS modding forum, you are modding for DST exclusively.

:shock::?:?:? Damit I entered wrong forum sorry...

Quote

Perhaps you should choose a more unique name than "minion1" to avoid mods clashing.

I already ran into that problem :p I fixed it as soon as i saw, but thx for the help.

Third question: Is there any way that I can move this forum to the DTS Modding forum? Or would you be willing to continue helping me?

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...