Prajdo Posted May 15, 2021 Share Posted May 15, 2021 Hi, I'm still working on mod that adds some stuff from singleplayer dlc's and forge/gorge events to DST. I hate to ask for help again but I totally got stuck while trying to add component that summon Masked Pig from Hamlet when players has certain amount of coins in theirs inventory with some random chance. Since this mod also adds some birds to the game I decided to add this script in modified "birdspawner.lua". Those two works kinda similar so I though it'll be easier for me this way. Turns out it wasn't. Birds are spawning without any complications but line I managed to create for Masked Pig is probably missing something. I'm not that good when it comes to lua, maybe I'm too ambitious trying to add something I know almost nothing about but I've found some help in "Tropical Experience" mod and I was trying to add similar command I've found there. If someone who understand lua a little more could take a look in this attachment and maybe figure out what is missing or what should I possibly remove I would be very grateful. birdspawner.lua Link to comment https://forums.kleientertainment.com/forums/topic/130013-spawn-component/ 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