AkaiNight

  • Content Count

    264
  • Joined

  • Last visited

Community Reputation

20 Excellent

1 Follower

About AkaiNight

  • Rank
    Member
...

Recent Profile Visitors

2001 profile views
  1. Sorry for late reply i am working on it atm. It works now but it continues to reply it (example: the first hit you get from a spider is 20(spiders basic damage) next one is 30 and nex one is 45...) here is the code if you want it anyway local function onattacked(inst) local _GetAttacked = inst.components.combat.GetAttacked inst.components.combat.GetAttacked = function(self, attacker, damage, ...) if attacker and inst.components.sanity.current == 0 and damage then damage = damage * 1.5 end return _GetAttacked(self, attacker, damage, ...) end end
  2. yes it should res you instand, no amulet has no durability or somethinglike that. because it does not have any in game image(except inv image) and if you lose it there is no way to craft or got it back thats why it must not be haunted
  3. It does not have durability so you must wait 7 days after resurrecrion like cooldown and it would be great if you just resurrect with 1/10 of your max health
  4. I am trying to code it myself but its not going well. I want to make an amulet that resurrect the person who wear it per 7 in game days well i find ds amulet.lua and it does not work either both
  5. Also code for take more damage when your sanity is 0 and deal less damage when your sanity is 0 local function onattacked(inst) local _GetAttacked = inst.components.combat:GetAttacled inst.components.combat:GetAttacked = function(self, attacker, damage, ...) if attacker and inst.components.sanity == 0 and damage then damage = damage *1.5 end return _GetAttacked(self, attacker, damage, ...) end end this in your character.lua and this in master_postinit inst:ListenForEvent("onhitother", function(inst) if inst.components.sanity == 0 then inst.components.combat.damagemultipler = 0.5 else return end end) inst:ListenForEvent("attacked", onattacked) let me know if it crush or not work
  6. inst.Light:Enable(true) inst.Light:SetRadius(18) inst.Light:SetFalloff(0.75) inst.Light:SetIntensity(.7) inst.Light:SetColour(70/255,230/255,12/170) inst.nightvisionIsEnabled = true delete all "AtNight" functions and just put that in your master_postinit
  7. local function AtNight(inst) if TheWorld.state.isnight then inst.components.combat:SetAttackPeriod(number) --change 'number' with the vaule you want inst.components.locomotor.walkspeed = number inst.components.locomotor.runspeed = number inst.Light:Enable(true) inst.Light:SetRadius(18) inst.Light:SetFalloff(0.75) inst.Light:SetIntensity(.7) inst.Light:SetColour(70/255,230/255,12/170) inst.nightvisionIsEnabled = true else if inst.nightvisionIsEnabled then inst.Light:Enable(false) inst.nightvisionIsEnabled = false end end end put that in your character.lua inst:WatchWorldState("isnight", AtNight) and put that in master_postinit this should give you night vision and efficiency you want local function AtDay(inst) if TheWorld.state.isday then inst.components.health:DoDelta(-1) --you will lose 1 health else return end end i did not test that one but it should work too and put this in your master_postinit inst:WatchWorldState("isday", AtDay) inst:DoPeriodicTask(5, AtDay) --this will do AtDay function per 5 sec so you will lose 1 health per 5 sec at day Let me know if it crush
  8. Well it works make sure dst tools and dst are in same steam library. Here use this. Wayne_the_Experiment.rar
  9. Can someone upload amulet.lua i need resurrection code from it and i don't have don't starve atm thanks.
  10. I am trying to make a necklace that resurrect wearer per 7 in game day but life giving amulet only resurrect you on haunt is there anywhere i can find that code thanks for help