Jump to content

Recommended Posts

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

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 by Serpens
  • Like 2

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

 

@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 by FurryEskimo
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 by Serpens

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...