Sign in to follow this  
Yakuzashi

[TEMPLATE] Custom follower (with Tutorial)

Do you find it useful ?  

21 members have voted

  1. 1. So, do you ?

    • Yes, thanks a lot
      18
    • Nope, end yourself with beefalo belt
      0
    • Dunno, but don't use this beefalo belt
      3


Recommended Posts

mchoneybee    0
On 11/9/2019 at 4:14 AM, thomas4846 said:

you can also add the chatter function if you want your follower to have some speech

How does one add the chatter function? owo?

Share this post


Link to post
Share on other sites
Yakuzashi    148
2 hours ago, red1500z said:

hi, i made the follower fabricable but i don't know how to make it follow me do you know how to fix it?

The "anchor" should act as a book. In my case it works fine. You can send me your mod folder in .zip and I will take a look.

Share this post


Link to post
Share on other sites
Hiru315    2

Just have some questions:

_ So I used your anim .zip file for the creature. It does appear in sprite.

The reading animation did work but the creature is invisible. Is it normal? :hopelessness: 

_ And also how will I change the nil value of "chakra" like instead of sanity it's maxhealth?

Share this post


Link to post
Share on other sites
Yakuzashi    148
1 hour ago, Hiru315 said:

Just have some questions:

_ So I used your anim .zip file for the creature. It does appear in sprite.

The reading animation did work but the creature is invisible. Is it normal? :hopelessness: 

_ And also how will I change the nil value of "chakra" like instead of sanity it's maxhealth?

Send me your folder. It's too much to write about. It will be better if I fix it and then you analize my changes.

Share this post


Link to post
Share on other sites
Thomas Die    895
local creature = SpawnPrefab("creature")         

creature.Transform:SetPosition(inst.Transform:GetWorldPosition())
creature.components.follower:SetLeader(reader)	--relplace reader with the variable that shows your character

Put this almost anywhere and it'll happen,

The anchor is simply a tool used to spawn the creature having a builder for the creature can make you spawn in the creature with a crafting recipe but i'd rather not clog the tutorial 

Edited by thomas4846
extra
  • Thanks 1

Share this post


Link to post
Share on other sites
Thomas Die    895

followers automatically stop following you because the game does that too i think make it run smoother,
--you can fix this by either saving them as pets or saving their data so they spawn in with you which is basically the same thing

The death problem needs code to fix probs

  • Like 2

Share this post


Link to post
Share on other sites
C_Thun    63

Might be a silly idea, but is it possible to make the follower hostile against the survivor, and set a respawn time to it? Possibly making this coding into a custom hound-wave-like attack?

If so, how could I achieve that?

Share this post


Link to post
Share on other sites
Yakuzashi    148
8 hours ago, BillTheCipher said:

set a respawn time to it

inst:DoPeriodicTask

8 hours ago, BillTheCipher said:

to make the follower hostile against the survivor

I would recommend to dig into any monster brain and script.

...\Steam\steamapps\common\Don't Starve Together\data\databundles -> scripts.zip

  • Like 1

Share this post


Link to post
Share on other sites
AAAContinue    0

Thanks for sharing a template. It really helped:)
But I have a question.
I've done all the things in the tutorials then changed the recipe of the anchor (to make it easy to check how it works... ) But my character only said 'I can't do that'
The ingredients were 2 petals, and it disappears when I craft anchor(with no creature)

Edited by AAAContinue

Share this post


Link to post
Share on other sites
AAAContinue    0
11 hours ago, Yakuzashi said:

@AAAContinue you can post your mod folder and I will take a look

This is my mod folder.

Since the image of my character is not completed, I've only changed the scripts. So the image files would be the same as yours but I'll change it soon.

patch.zip

Share this post


Link to post
Share on other sites

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
Sign in to follow this