Search the Community
Showing results for tags 'coding'.
Found 4 results
So I'm working on some new characters, as always, coding isn't my strong point.I'm trying to make some characters, simple, except for a perk that keeps ALL mobs from aggroing onto them.Would anyone have some solutions?And if anyone knows where I can look up common codes so I know what I can use I'd be most appreciated!
Hi, I've been making a Shipwrecked mod for the hell of it, 2D from Gorillaz, but it's Plastic Beach themed. The story is he got on a boat and tried to sail away from Point Nemo but he hit a strange storm in the middle of nowhere, now he's here. His one """perk""" is forgetfulness because 2D has hit his head so many times. Every 2 or 3 days, one Science Machine or higher recipe is forgotten. To make up for this, he has a science machine-free list of recipes for things he can build based on what he thinks would make said item. So you might be able to make a boat from just 2 boards, but it's going to sink really easily. You can make a backpack but it only has like, 4 slots. So on and so forth. Thing is, I checked the builder component and the teacher component and I don't think it's possible to remove recipes from the player, or is there? I don't really have a time limit, it's just something I do in my spare time.
Kiibie posted a topic in [Don't Starve Together] Mods and ToolsHelloooo, I once had a post asking help to change the sewing kit uses for my character mod and it did work! Although I noticed that if I choose my character mod and enable caves for my server, the game instantly crashes and gives me the following error; The character is totally playable when a server does not enable caves, and the programmed abilities also do work. As it seems to point out the modmain lua as the source of the problem, here's the coding he currently has in it; -- Sewing skills -- AddPrefabPostInit("sewing_kit", function(inst) inst.components.finiteuses:SetMaxUses( 2 * TUNING.SEWINGKIT_USES) inst.components.finiteuses:SetUses( 2 * TUNING.SEWINGKIT_USES) inst.components.sewing.repair_value = 2 * TUNING.SEWINGKIT_REPAIR_VALUE end) I do not understand why it crashes because of the caves, so I have no idea how to fix this ;_; Please any help would be amazing, thanks!
Hello! I've made a character mod that uses special attacks when pressing R and T on the keyboard. I was wondering if it was possible to add Xbox buttons too, to enable the attacks when I play with a controller. If it's possible, how may I proceed for the coding? Here's the keybinding code for the keyboard: local fire_attack = GLOBAL.KEY_R local protective_shield = GLOBAL.KEY_T Thanks!