-
Content Count
52 -
Joined
-
Last visited
Community Reputation
2 NeutralAbout Ghost_starved
-
Rank
Junior Member
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Enable-
Good afternoon friends. Not could you please explain the steps on how to add things to a character? What, where to write and so on. Tried to search at will, but in the end all to no avail. I also think that this topic will help other models that will be found in 50 years) (possible with screenshots) (generally desirable).
-
[Tutorial] Custom character voice and items
Ghost_starved replied to K1NGT1GER609's topic in Tutorials & Guides
This guide works for "don't starve" ( the single-player version of the game?) -
I can somehow increase the damage to the character against a specific monster? . (Example if possible)
-
Description
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
does not work :с -
Hello everybody ! I have a question about modding I have my character, and there is a character from another mod, how should I make my character inspect a character from another mod to say something unique?
-
checking caves
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
I have a second one, but it just gives sanity and does not regenerate local function WebberSanityAura(inst) local x,y,z = inst.Transform:GetWorldPosition() local pt = inst:GetPosition() local range = 10 -- range of ability local SANITYREGAIN = 7 -- Amount of Sanity regained to Webber per tick local tagz = { "_combat"} local canttagz = {"structure"} local check = TheSim:FindEntities(pt.x,pt.y,pt.z, range, tagz, canttagz) for _,ent in ipairs(check) do if not ent.components.health:IsDead() and ent.prefab == "webber" then ent.components.sanity:DoDelta(SANITYREGAIN) if ent.components.combat then ent.components.combat:SuggestTarget(inst) end end end end local function maincheck(inst) if not inst.components.health:IsDead() and not inst:HasTag("playerghost") and not inst:HasTag("playermonster") then WebberSanityAura(inst) end end -- 1 time interval between every tick (seconds-ish, it's not 100% accurate) inst:DoPeriodicTask(2, maincheck, nil, inst) end can it be made regenerative? -
checking caves
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
inst:AddTag("webberlovemyprettycharacter") Now on your modmain: local function IsMyPrettyCharacterNearby(inst) local x, y, z = inst.Transform:GetWorldPosition() local num_char = #GLOBAL.TheSim:FindEntities(x, y, z, 10, {"webberlovemyprettycharacter"}) -- Here I'm using a radius equal to 10 if num_char > 0 then inst.num_char=1 else inst.num_char=0 end return 0 -- num_char is 1 if there is at least 1 of yourcharacter nearby, else is 0 end local function CustomSanityFn(inst, dt) return inst.num_char*500 -- a lot of sanity end AddPrefabPostInit("webber",function(inst) inst.num_char=0 inst._update_character_sanity_task = inst:DoPeriodicTask(3, IsMyPrettyCharacterNearby) -- One verification every 3 seconds inst.components.sanity.custom_rate_fn = CustomSanityFn end) -
checking caves
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
just a bug and disconnection of the game. (If you know, can you suggest the code instead of what I was given before?) Recovering the sanity of a webber if he is next to my character -
I was given the code by a good person and I am very grateful to him. But! it does not work if there are caves in the world and can this be eliminated (One of my friends said that we need to check the caves) how to make it?
-
Help with the mod
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
Can you tell me how you can add a check to the caves? When you start a server with caves and select a webber, the game breaks, but if you play without caves everything is fine -
Interface Mod Issues
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
I found the answers -
-
Help with the mod
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
Thank you so much :з -
Help with the mod
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
Logs indicate error 223 lines (inst.components.sanity.custom_rate_fn = CustomSanityFn) -
Help with the mod
Ghost_starved replied to Ghost_starved's topic in [Don't Starve Together] Mods and Tools
thanks :3