m9m3x3 Posted January 14, 2020 Share Posted January 14, 2020 I want the character to be able to make a spider in the production compartment. Also, only the spider I summon myself wants to be a friend. (I'm using the translator, thank you for your time.) Link to comment Share on other sites More sharing options...
Yakuzashi Posted January 14, 2020 Share Posted January 14, 2020 I have made tutorial for this. You need to change follower's animations and stategraph. 1 Link to comment Share on other sites More sharing options...
m9m3x3 Posted January 14, 2020 Author Share Posted January 14, 2020 thank you very much! I want to ask you one more thing. How do I summon a monster who is already in the game, not a new one? Link to comment Share on other sites More sharing options...
Yakuzashi Posted January 14, 2020 Share Posted January 14, 2020 You need to find it's prefab name, for a spider it's "spider". Quote https://dontstarve.fandom.com/wiki/Spider When you want it to listen to you, there is a problem, because you summon default spider from game which is a monster and will attack you. Link to comment Share on other sites More sharing options...
m9m3x3 Posted January 14, 2020 Author Share Posted January 14, 2020 The character wants to create a monster on its own, not a summons to the console. Here is an example that I want. https://steamcommunity.com/sharedfiles/filedetails/?id=406913232 Link to comment Share on other sites More sharing options...
Yakuzashi Posted January 14, 2020 Share Posted January 14, 2020 In the tutorial, there is item called anchor Quote local function bookonread(inst, reader) if ReqChakra(reader) then local creature = SpawnPrefab("creature") creature.Transform:SetPosition(inst.Transform:GetWorldPosition()) creature.components.follower:SetLeader(reader) local puff = SpawnPrefab("collapse_small") puff.Transform:SetPosition(inst.Transform:GetWorldPosition()) reader.components.sanity:DoDelta(-45) reader.components.health:DoDelta(-15) else inst.components.talker:Say("I have to rest...", 0.1,true) end end Change prefab "creature" into "spider". Or anything you like. But in order to create your own spider that listens to you, you need to modify something in the tutorial. For example spider's lua inside prefab folder, so it looks like a spider... Quote inst.AnimState:SetBank("wilson") inst.AnimState:SetBuild("creature") inst.AnimState:PlayAnimation("idle") ...change bank and build to "spider" Link to comment Share on other sites More sharing options...
m9m3x3 Posted January 15, 2020 Author Share Posted January 15, 2020 thanks! 1 Link to comment Share on other sites More sharing options...
Yakuzashi Posted January 15, 2020 Share Posted January 15, 2020 (edited) If you don't know how to exactly do it then you can send me your character's mod folder in .zip and I will make it work. This way you can learn from results and understand everything. Edited January 15, 2020 by Yakuzashi typo 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now