Jump to content

Recommended Posts

Hello, I have a question if someone can answer me if this would be possible or not :D!!! 

So, I want to make a player character which follows my character around & does player-ish sort of things like, crafting items (not 100% necessary), using tools to mine, chop, hammer & using weapons to defend itself if it has them in it's inventory. Stuff like what players can do...

So, I don't know how to make a custom entity or where I should start... So, can someone tell me if it's possible to make a player character which's not really a player & it uses a brain like entities do? And if it's possible how would I start making this pseudo-player? 

I basically want my entity to be a clone of my mod character but it uses a brain instead of actually being a player... You know when you c_spawn"wilson" it spawns a Wilson but nobody controls it & it's affected by all things normal players are even though it's not a player! I want to do something like that only instead of the character doing nothing it uses a brain to do stuff & other functions which followers use, would that be possible or is it too advanced for Don't Starve to have npc players?

 

Edited by SuperDavid

It is possible.

You make an entity with the wilson bank, the character prefab you want build, the SGwilson stategraph, and the brain you want to use (like the shadowwaxwellbrain). You add it the health, the inspectable, the combat components, instead of sanity, temperature, playercontroller, and those useless extras unless you are really a player playing.

Pretty much like making any entity.

http://steamcommunity.com/sharedfiles/filedetails/?id=431003525

In this mod you can craft little versions of yourself that help you.

 

For single player, some guy made a Wilson that played itself:

https://www.youtube.com/watch?v=9PnL-Mr9N4o

And also put it to test with many AI Wilsons:

https://www.youtube.com/watch?v=w-JvimFUPb0

But you should stick to some follower that works like Maxwell's shadows.

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...