MrFurphie Posted December 8, 2016 Share Posted December 8, 2016 Vargling that is scrappy etc Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/ Share on other sites More sharing options...
Someonestolemeberrys Posted December 8, 2016 Share Posted December 8, 2016 https://nefald.fr/wiki/Don't_Starve_Together/Commandes Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846052 Share on other sites More sharing options...
Electroely Posted December 8, 2016 Share Posted December 8, 2016 2 hours ago, Someonestolemeberrys said: https://nefald.fr/wiki/Don't_Starve_Together/Commandes Doesn't have the command he's looking for... Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846079 Share on other sites More sharing options...
Someonestolemeberrys Posted December 8, 2016 Share Posted December 8, 2016 29 minutes ago, Electroely said: Doesn't have the command he's looking for... C_spawn dont work no more??? Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846094 Share on other sites More sharing options...
Electroely Posted December 8, 2016 Share Posted December 8, 2016 Just now, Someonestolemeberrys said: C_spawn dont work no more??? No it's not that... He wants to know the command for spawning a critter with a specific trait, such as scrappy. Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846095 Share on other sites More sharing options...
Someonestolemeberrys Posted December 8, 2016 Share Posted December 8, 2016 5 minutes ago, Electroely said: No it's not that... He wants to know the command for spawning a critter with a specific trait, such as scrappy. THERE ARE TRAITS? EDIT: Is this the pet thing? Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846096 Share on other sites More sharing options...
Electroely Posted December 8, 2016 Share Posted December 8, 2016 13 minutes ago, Someonestolemeberrys said: THERE ARE TRAITS? EDIT: Is this the pet thing? Yup. The pet thing. Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846104 Share on other sites More sharing options...
Someonestolemeberrys Posted December 8, 2016 Share Posted December 8, 2016 2 minutes ago, Electroely said: Yup. The pet thing. Now i feel stupid. Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846106 Share on other sites More sharing options...
Electroely Posted December 8, 2016 Share Posted December 8, 2016 Just now, Someonestolemeberrys said: Now i feel stupid. Don't. It happens to all of us. Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846107 Share on other sites More sharing options...
TemporaryMan Posted December 8, 2016 Share Posted December 8, 2016 local vargling = c_spawn("critter_puppy"); vargling.components.crittertraits.dominanttrait = "combat"; vargling.components.crittertraits.dominanttraitlocked = true I haven't tested it, personally, but my research suggests this should work. Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846116 Share on other sites More sharing options...
Aquaterion Posted December 8, 2016 Share Posted December 8, 2016 in console: c_spawn("pigman").components.named:SetName("anyname") If you mean any entity then: namedent = c_spawn("spider"); namedent:AddComponent("named"); namedent.components.named:SetName("Cool Spider"); 6 hours ago, TemporaryMan said: local vargling = c_spawn("critter_puppy"); vargling.components.crittertraits.dominanttrait = "combat"; vargling.components.crittertraits.dominanttraitlocked = true I haven't tested it, personally, but my research suggests this should work. This works, but this makes the pet just sit there since it has no owner, so add 1 more line specialpet = c_spawn("critter_puppy"); specialpet.components.crittertraits.dominanttrait = "combat"; specialpet.components.crittertraits.dominanttraitlocked = true; ThePlayer.components.leader:AddFollower(specialpet) you can combine parts to get a named pet, just make sure you separate each part with a semicolon. Edit: I was messing around and made a command that spawns an unowned pet, which becomes owned by the player that goes close to it: specialpet = c_spawn("critter_puppy"); specialpet.findownertask = specialpet:DoPeriodicTask(1, function() local nearby = FindEntity(specialpet, 6, nil, {"player"}, {"ghost"}, nil) if nearby and neraby.components.leader then nearby.components.leader:AddFollower(specialpet) specialpet.findownertask:Cancel() specialpet.findownertask = nil end end); Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846155 Share on other sites More sharing options...
MrFurphie Posted December 8, 2016 Author Share Posted December 8, 2016 ah. Thanks for this help, also are there any scripts I can run that sets the server to c_announce whenever a player burns a structure? Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846168 Share on other sites More sharing options...
Aquaterion Posted December 8, 2016 Share Posted December 8, 2016 TheWorld:ListenForEvent("ms_playerjoined", function(world, player) player:ListenForEvent("equip", function(inst, data) if data.eslot == "hands" and data.item.components.lighter then data.item.components.lighter.onlight = function(lighter, target) if target:HasTag("structure") then TheNet:SystemMessage("[" .. inst.userid .. "]-" .. inst.name .. " started a fire on " .. "[" .. target.GUID .. "]-" .. target.prefab) end end end end) end) This should work, Kinda took me a while to figure out a way to go about it, but this method requires you to run it before any players join. It checks for when they equip an item that has the lighter component, and uses the lighter component's ONLIGHT function to announce it in the chat. However, it can easily be bypassed by igniting something near the structure, such as trees, which would eventually lead to the structures burning It would be easier to put in a small server side mod so you don't have to do it each time a world is loaded Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846173 Share on other sites More sharing options...
FreyaMaluk Posted December 9, 2016 Share Posted December 9, 2016 On 12/8/2016 at 0:53 PM, Aquaterion said: This works, but this makes the pet just sit there since it has no owner, so add 1 more line specialpet = c_spawn("critter_puppy"); specialpet.components.crittertraits.dominanttrait = "combat"; specialpet.components.crittertraits.dominanttraitlocked = true; ThePlayer.components.leader:AddFollower(specialpet) What are the other trait names for the console? I was just wandering if the console trait changes for the consoles as in the case of scrappy/combat or if the other remain the same (playful, crafty, well-fed) Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846697 Share on other sites More sharing options...
Aquaterion Posted December 9, 2016 Share Posted December 9, 2016 6 minutes ago, FreyaMaluk said: What are the other trait names for the console? I was just wandering is scrappy changes as well (combat) or if the other remain the same (playful, crafty, well-fed) well-fed is "wellfed" I think, as for the others i don't really know. just try them out I guess Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846701 Share on other sites More sharing options...
DarkXero Posted December 9, 2016 Share Posted December 9, 2016 COMBAT, WELLFED, PLAYFUL, CRAFTY. Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846704 Share on other sites More sharing options...
FreyaMaluk Posted December 9, 2016 Share Posted December 9, 2016 On 12/8/2016 at 0:53 PM, Aquaterion said: 34 minutes ago, DarkXero said: COMBAT, WELLFED, PLAYFUL, CRAFTY. This works, but this makes the pet just sit there since it has no owner, so add 1 more line specialpet = c_spawn("critter_puppy"); specialpet.components.crittertraits.dominanttrait = "combat"; specialpet.components.crittertraits.dominanttraitlocked = true; ThePlayer.components.leader:AddFollower(specialpet) This didn't work for me.... I do get the pet to follow me, but the trait is not there (no adjective added to the name's pet) and if I relog the pet stops following me, but it now has the "scrappy" adjective.... weird o.O Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846718 Share on other sites More sharing options...
Aquaterion Posted December 9, 2016 Share Posted December 9, 2016 1 minute ago, FreyaMaluk said: This didn't work for me.... I do get the pet to follow me, but the trait is not there (no adjective added to the name's pet) and if I relog the pet stops following me According to wiki not all traits give your pet a title? I think.. Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846720 Share on other sites More sharing options...
FreyaMaluk Posted December 9, 2016 Share Posted December 9, 2016 13 minutes ago, Aquaterion said: According to wiki not all traits give your pet a title? I think.. They do all get the name and look what happen after I relog: the pet has the "scrappy" name, but it doesn't follow me anymore http://images.akamai.steamusercontent.com/ugc/112984788731759159/F777355316DC8A0A82ACF4B563A6B92226D189D9/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside|2048:1107&composite-to%3D*%2C*|2048%3A1107&background-color=black http://images.akamai.steamusercontent.com/ugc/112984788731790183/475C7354C67CCC51379F1F03D8E29390848596BF/ Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846723 Share on other sites More sharing options...
MrDeepDarkmind Posted December 9, 2016 Share Posted December 9, 2016 I think the only trait is just scrappy (iPad is bad at autocorrecting) edit Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846737 Share on other sites More sharing options...
FreyaMaluk Posted December 9, 2016 Share Posted December 9, 2016 Just now, MrDeepDarkmind said: I think the only trust is just scrappy ?? Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846739 Share on other sites More sharing options...
FreyaMaluk Posted December 9, 2016 Share Posted December 9, 2016 15 minutes ago, MrDeepDarkmind said: I think the only trait is just scrappy (iPad is bad at autocorrecting) edit http://images.akamai.steamusercontent.com/ugc/112984788731790183/475C7354C67CCC51379F1F03D8E29390848596BF/ Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846754 Share on other sites More sharing options...
GiddyGuy Posted December 9, 2016 Share Posted December 9, 2016 24 minutes ago, MrDeepDarkmind said: I think the only trait is just scrappy There is peppy, plump, crafty and scrappy. I wish the four forms changed their looks, would be nice to have an actual plump kittykit. c: Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846761 Share on other sites More sharing options...
MrDeepDarkmind Posted December 10, 2016 Share Posted December 10, 2016 1 hour ago, FreyaMaluk said: http://images.akamai.steamusercontent.com/ugc/112984788731790183/475C7354C67CCC51379F1F03D8E29390848596BF/ Spanish huh 1 hour ago, GiddyGuy said: There is peppy, plump, crafty and scrappy. I wish the four forms changed their looks, would be nice to have an actual plump kittykit. c: Plump kitty kit sounds pretty nice ( ͡° ͜ʖ ͡°) Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846804 Share on other sites More sharing options...
Ninjanemo Posted December 10, 2016 Share Posted December 10, 2016 1 minute ago, MrDeepDarkmind said: ( ͡° ͜ʖ ͡°) Link to comment https://forums.kleientertainment.com/forums/topic/72343-how-to-spawn-named-entities-and-the-special-pets/#findComment-846807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.