-
Content Count
266 -
Joined
-
Last visited
Community Reputation
22 ExcellentAbout AkaiNight
-
Rank
Member
Recent Profile Visitors
2089 profile views
-
Hello i am making a character for dst and im almost done with coding and now i found someone to help me to draw my character. We both don't know what to do so we decided to use esctemplate as base and change parts from it. It went good till we try to make hair for character. Well its better to show. In spriter i changed the positions of pigtails and it looks like this https://hizliresim.com/RB9hd0 but it looks like this in game https://hizliresim.com/iNHQv5 https://hizliresim.com/D5qRkA https://hizliresim.com/ziRQwf i don't know how to fix this. Thanks for help
-
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
-
Does anyone have old red amulet.lua?
AkaiNight replied to AkaiNight's topic in [Don't Starve Together] Mods and Tools
well im ok with both ways tbh -
Does anyone have old red amulet.lua?
AkaiNight replied to AkaiNight's topic in [Don't Starve Together] Mods and Tools
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 -
Does anyone have old red amulet.lua?
AkaiNight replied to AkaiNight's topic in [Don't Starve Together] Mods and Tools
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 -
Does anyone have old red amulet.lua?
AkaiNight replied to AkaiNight's topic in [Don't Starve Together] Mods and Tools
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 -
Does anyone have old red amulet.lua?
AkaiNight replied to AkaiNight's topic in [Don't Starve Together] Mods and Tools
i just need resurrection code -
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
-
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
-
[solved] autocompiler not working
AkaiNight replied to Earthyburt's topic in [Don't Starve Together] Mods and Tools
Well it works make sure dst tools and dst are in same steam library. Here use this. Wayne_the_Experiment.rar