Jump to content

Help Please? I dunno what to do! :c


Recommended Posts

Working on a new character and I need help with a few perks.

 

First, is it possible to make a deployable item (EX: An item that you set down in the ground permanently) that causes AOE damaging effects like abigail?

 

Second, I want to make the character unable to craft anything when their sanity reaches 0.

 

If anyone can lend a hand, I would really appreciate it! :D

Link to comment
Share on other sites

First thing sounds easy. The AoE damage is done by a component called "aura". Literally just "aura". You can probably copy all the things setting this component up from abigail.lua, except for the test function (because you want to write your own condition: being deployed). Deployable is a component too, you can check the trap_tooth.lua or however it's called for that.

 

The second perk, I have no idea for.

Link to comment
Share on other sites

@Silhh, perk 2 for those wondering.

local _DoBuild = inst.components.builder.DoBuildinst.components.builder.DoBuild = function( self, recname, pt, rotation, skin )        if self.inst.components.sanity.current == 0 then                return false        end         return _DoBuild(self, recname, pt, rotation, skin)end
Edited by Kzisor
Link to comment
Share on other sites

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
 Share

×
  • Create New...