Jump to content

Search the Community

Showing results for tags 'Durability'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Hot Lava
    • [Hot Lava] - General Discussion
    • [Hot Lava] - Suggestions and Feedback
    • [Hot Lava] - Bug Tracker
    • [Hot Lava] - Strats and Records
    • [Hot Lava] - Developer Log
    • Hot Lava Latest Update
  • Griftlands
    • [Griftlands] - General Discussion
    • [Griftlands] - Suggestions and Feedback
    • [Griftlands] - Mods and Tools
    • [Griftlands] - Localization
    • [Griftlands] - Bug Tracker
    • [Griftlands] - Developer log
  • Oxygen Not Included
    • Oxygen Not Included FAQ
    • [Oxygen Not Included] - Developer log
    • [Oxygen Not Included] - General Discussion
    • [Oxygen Not Included] - Bug Tracker
    • [Oxygen Not Included: Spaced Out!] - Bug Tracker
    • [Oxygen Not Included] - Mods and Tools
    • [Oxygen Not Included] - Suggestions and Feedback
    • [Oxygen Not Included] Art, Music & Lore
    • Community Challenges
    • [Oxygen Not Included] - Latest Content Update
    • [Oxygen Not Included] - Latest Animated Short
    • Oxygen Not Included DLC Alpha
  • Don't Starve Together
    • Don't Starve Together FAQ
    • [Don't Starve Together] Developer log
    • [Don't Starve Together] General Discussion
    • [Don't Starve Together] Beta Branch
    • [Don't Starve Together] PlayStation
    • [Don't Starve Together] Xbox One
    • [Don't Starve Together] Nintendo Switch
    • [Don't Starve Together] Bug Tracker
    • [Don't Starve Together] Trading
    • [Don't Starve Together] Server Bulletin
    • [Don't Starve Together] Dedicated Server Discussion
    • [Don't Starve Together] Mods and Tools
    • [Don't Starve Together] Tales of Life and Death
    • [DS + DST] Art, Music and Lore
    • [Don't Starve Together] Suggestions and Feedback
    • [Don't Starve Together] The Forge
    • [Don't Starve Together] The Gorge
    • [Archived Bugs]
  • Don't Starve
    • Don't Starve FAQ
    • [Don't Starve: Pocket Edition] iOS / Android
    • [Don't Starve] General Discussion
    • [Don't Starve] Mods and tools
    • [Don't Starve] Art, Music & Lore
    • [Don't Starve] Suggestions and Feedback
    • [Don't Starve] Videos
    • [Don't Starve] Bug Tracker
    • [Don't Starve] Trading
    • [Don't Starve] Testing Discussion (archive)
  • Klei Entertainment Games
    • Eets Munchies
    • [Invisible, Inc.] General Discussion and Strategies
    • Mark of the Ninja
    • Shank
  • Other Stuff
    • Other Klei Services

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Don't Starve: Hamlet
  • Don't Starve: Hamlet Early Access
  • Don't Starve Together
  • Don't Starve Together: Beta Branch
  • [Don't Starve Together] Nintendo Switch
  • [Don't Starve Together] PlayStation
  • Don't Starve Together: Return of Them
  • Don't Starve Together: The Gorge
  • Don't Starve Together: The Forge
  • Don't Starve Together: The Forge (Archive)
  • [Don't Starve Together] Xbox One
  • Don't Starve: Shipwrecked
  • Don't Starve: Shipwrecked [archive]
  • [Don't Starve Together] PS4 (archive)
  • [iOS] Don't Starve: Shipwrecked
  • Don't Starve: Hamlet Closed Beta (ARCHIVE)

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Hot Lava
  • Don't Starve Together
  • [Nintendo Switch] Don't Starve Together
  • [PlayStation] Don't Starve Together
  • [Xbox One] Don't Starve Together
  • Don't Starve: Hamlet
  • Don't Starve: Shipwrecked

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Biography


Location


Interests


Occupation


Favorite Game


Modder


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Klei Featured Artist


Early Supporter


Early Supporter


Don't Starve


Don't Starve Together


Oxygen Not Included

Found 7 results

  1. So, we're trying to make a tool for the player to use, that, when it hits 0% durability, instead of breaking, will go in the player inventory and stay there, unusable until it gets repaired. I'm aware that we'd need to add a repair action, but we're struggling to actually work out how to make this happen. I did find an old thread with some code from w00tydood, but it didn't actually work. Could use a hand here on figuring out how to make this work.
  2. Hello, really really need some help. How do I go about coding a custom item with finite uses? Fueling and perishing works on decay, and health (i think) only works on structures. Basically I have this weapon that I want to be able to be repaired with a moon rock; it shouldn't be destructible and on 0 it shouldn't be usable. Non-craftable as it would be great to just have it be "whetstoned" to good use again when it "dulls". Supposedly it also can chop trees quickly (much like Woody and Lucy chop speed), but would weather the blade quicker. I haven't coded in the speed chopping yet either, i was focusing on the durability thing first. local prefabs = { } local function fn(colour) local function makeobstacle(inst) inst.Physics:SetActive(true) inst._ispathfinding:set(true) end local function OnEquip(inst, owner) owner.AnimState:OverrideSymbol("swap_object", "swap_moonRK", "swap_moonRK") owner.AnimState:Show("ARM_carry") owner.AnimState:Hide("ARM_normal") end local function OnUnequip(inst, owner) owner.AnimState:Hide("ARM_carry") owner.AnimState:Show("ARM_normal") end local inst = CreateEntity() inst.entity:AddNetwork() local trans = inst.entity:AddTransform() local anim = inst.entity:AddAnimState() MakeInventoryPhysics(inst) anim:SetBank("moonrunekatana") anim:SetBuild("moonrunekatana") anim:PlayAnimation("idle") inst.entity:SetPristine() if not TheWorld.ismastersim then return inst end inst:AddComponent("weapon") inst.components.weapon:SetDamage(42.5) inst.components.weapon.attackrange = 0 inst.components.weapon.hitrange = 0 inst:AddComponent("repairable") inst.components.repairable.repairmaterial = "moonrocknugget" inst:AddComponent("finiteuses") inst.components.finiteuses:SetMaxUses(150) inst.components.finiteuses:SetUses(150) inst.components.finiteuses:SetConsumption(ACTIONS.CHOP, 4) inst:AddComponent("tool") inst.components.tool:SetAction(ACTIONS.CHOP, 1) inst:AddTag("sharp") inst:AddTag("pointy") inst:AddComponent("inventoryitem") inst.components.inventoryitem.imagename = "moonrunekatana" inst.components.inventoryitem.atlasname = "images/inventoryimages/moonrunekatana.xml" inst:AddComponent("equippable") inst.components.equippable:SetOnEquip( OnEquip ) inst.components.equippable:SetOnUnequip( OnUnequip ) inst:AddComponent("inspectable") MakeHauntableLaunch(inst) return inst end return Prefab("common/inventory/moonrunekatana", fn, assets, prefabs) The weapon already works, components for its effects are in place, but I don't really know how to implement this. I've looked into other game files/mod files and in the game, there isn't really anything that acts like this, and the repair tools mod adds an actions.lua which was too much for me to digest without some help. The way some others do it is by repairing the item with another prerequisite item, adding a component.lua that would trigger the repair? Can anyone lead me in the right direction? Thanks.
  3. Greetings everyone.So i have one question.Is it possible to create a code that won't allow some(or even any)broken tool or dressing to be used in craft as ingredient?(For example: a broken pickaxe can be used to make a thermal stone.)I created a weapon that requires tentacle spike in craft and i want to be sure that nobody will use broken spike to make this. I really tried a lot but didn't succeed.
  4. Hello fellow DST modders, I am in the progress of making a character mod and need some help with the scripting. My problem: One of the character perks is that items have a small chance to instantly break on use (regardless of remaining item durability). I just need a pointer on how to get the and item that the player is currently using and on how to change the durability of the item on use. Thanks a bunch in advance!
  5. For example, recipe of "yellow umbrella" is gold nugget + umbrella. How make durability of new crafted yellow umbrella the same as one of the ingredient (red umbrella)?
  6. One of my bee mines bugged out when triggered right in the center of my base and it spawned +50 bees which cause a lot of lag, I managed to move some of them to another island but that's not enough, is there any way I could potentially edit my world to delete them (I assume there are values that corespond to mobs present)? I have a back up before that happened but I made very many changes due to the turf update and it will be a pain to redo it all.
  7. Hi, I thought the nice would be if you could be cut off from the monsters. I think the barricade is a good idea to secure the base. In my opinion (if one accepts my idea), it should have a level of durability. Here is examples of crafting and picture: Thanks.
×
×
  • Create New...