rubenr1512 Posted January 28, 2021 Share Posted January 28, 2021 Hello awesome community! I'm looking for some help to make some changes on the shadow duelist brain, my concept is about making them to kite(for melee enemy) and tank(for range enemy) if someone can give me a hand I'll be so grateful and give you a reward for your help if I can get what I want. Thanks in advance Link to comment https://forums.kleientertainment.com/forums/topic/126525-maxwell-shadow-duelist/ Share on other sites More sharing options...
Serpens Posted January 28, 2021 Share Posted January 28, 2021 (edited) 2 hours ago, rubenr1512 said: Hello awesome community! I'm looking for some help to make some changes on the shadow duelist brain, my concept is about making them to kite(for melee enemy) and tank(for range enemy) if someone can give me a hand I'll be so grateful and give you a reward for your help if I can get what I want. Thanks in advance if you can understand written mod code, you could take a look at my mod and the modsetting which is refering to kiting:https://steamcommunity.com/sharedfiles/filedetails/?id=1868560353 By default they are kiting if they wear no armor and not kiting if they wear armor. Edited January 28, 2021 by Serpens 2 Link to comment https://forums.kleientertainment.com/forums/topic/126525-maxwell-shadow-duelist/#findComment-1422655 Share on other sites More sharing options...
rubenr1512 Posted January 29, 2021 Author Share Posted January 29, 2021 You made a great mod(huge thanks for that),I took a look at it but couldn't found the shadowwaxwellbrain.lua My idea is just make them tank but without wearing armor for enemys with long range attack, I hope you can help me.Thanks for your respond 5 hours ago, Serpens said: if you can understand written mod code, you could take a look at my mod and the modsetting which is refering to kiting:https://steamcommunity.com/sharedfiles/filedetails/?id=1868560353 By default they are kiting if they wear no armor and not kiting if they wear armor. You made a great mod(huge thanks for that),I took a look at it but couldn't found the shadowwaxwellbrain.lua My idea is just make them tank but without wearing armor for enemys with long range attack, I hope you can help me.Thanks for your respond 5 hours ago, Serpens said: if you can understand written mod code, you could take a look at my mod and the modsetting which is refering to kiting:https://steamcommunity.com/sharedfiles/filedetails/?id=1868560353 By default they are kiting if they wear no armor and not kiting if they wear armor. 7 minutes ago, rubenr1512 said: You made a great mod(huge thanks for that),I took a look at it but couldn't found the shadowwaxwellbrain.lua My idea is just make them tank but without wearing armor for enemys with long range attack, I hope you can help me.Thanks for your respond Link to comment https://forums.kleientertainment.com/forums/topic/126525-maxwell-shadow-duelist/#findComment-1422863 Share on other sites More sharing options...
FurryEskimo Posted January 29, 2021 Share Posted January 29, 2021 (edited) @rubenr1512 You wanted to find the shadow's brain, right? To make them kite? It's at C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\data\databundles\scripts.zip\scripts\brains and is called "shadowwaxwellbrain" My guess is you need to add "require "behaviours/runaway"" since all it has now is "require "behaviours/chaseandattack"" Edited January 29, 2021 by FurryEskimo Link to comment https://forums.kleientertainment.com/forums/topic/126525-maxwell-shadow-duelist/#findComment-1422899 Share on other sites More sharing options...
Serpens Posted January 29, 2021 Share Posted January 29, 2021 (edited) 9 hours ago, rubenr1512 said: You made a great mod(huge thanks for that),I took a look at it but couldn't found the shadowwaxwellbrain.lua My idea is just make them tank but without wearing armor for enemys with long range attack, I hope you can help me.Thanks for your respond The brain file is not there, because you should never alter orignal game files, if there is another way to achieve the same goal. Most often you only should use modmain.lua, so you will find my changes to the brain within modmain. Simply search for "ShouldKite" in my modmain.lua and you will find that I used the mod-function "AddBrainPostInit("shadowwaxwellbrain", function(brain) ... end) . This is the best way to change an existing brain. I admit, the brain logic is quite complicated to understand, but if you already know how the brain works, you also should be able to change it. Read and try to understand my code for the shadowduelist. (it was my first time dealing with brains, so the code might not be optimal unfortunately, but it works) Edited January 29, 2021 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/126525-maxwell-shadow-duelist/#findComment-1422996 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