Jump to content

Recommended Posts

I'm new to Don't Starve modding, and I want to try something that I've never seen before, as far as I've seen.  Is it possible to have a playable monster in Don't Starve?  I'll pause right here, an state that I don't intend to make them do all the things players do, but rather just allow players to control them in things that could normally do.  For example, be able to control a pig, only being able to wear hats and only do pig things.

Link to comment
https://forums.kleientertainment.com/forums/topic/39293-playable-monsters/
Share on other sites

You know, the surprising thing is, the hardest part would probably not even be the coding, but instead find a person who knows how to use a spriter to create the animations. There are a TON of skilled coders on these forums (just take a look at Up and Away or Hero in the Dark), but people who know how to use a spriter well are far and few between.

 

 

Spriter for what?

Animation is already exists and probably coding is not so hard.

But i guess its will be boring as hell, since they cant wear armor and weapons.

But i have idea how to use poor animals : some kind of magical character with soul that can be embedded into animals. While his main body will stand and do nothing. After animal death soul will return to main body.

Edited by Rincevvind

Hmm, interesting that this got attention pretty quick, like I said, new to DS modding (did some Starbound modding before, made some gooidsh mods), I'll fiddle with some things and see if I can get a pig to work.  Might look at werebeaver code, since they'd probaly only need health.  If anyone has any pointers on where I should look, that would be great.

 

EDIT: After looking at code, it seems it should be well possible to actually have playable monsters in-game.  However, it seems that attempting to give them all player actions would most likely break them.  The only forseeable problem would be the HUD, as it would most likely would not be there, and dying would most likely not stop the game.

Edited by Mario384

For example, be able to control a pig, only being able to wear hats and only do pig things.

 

Will the player only be able to wander around eating random stuff from the ground, go poop, then sleep in a little pig house?  Or would the player be able to build a campsite and do other wilson-type activities, but with certain restrictions based on the monster type?

Tried poking the code with a stick, it hissed back at me.  This could take a while.  I'm trying to see what are bare requirements for a playable entity, add the bare stuff to a clone of the the entity, and try playing as it.  Pigs are trickier than I thought, Pig Warriors and Werepig data is stored with them.  Werepigs may work like the Werebeaver for all I can tell.  Basically, every playable character refers to a certain file which gives payer their basic needs.  IF a character can run off a different file and still be able to be controlled, this could actually work.

 

Edited by Mario384

It's been a while, but I believe this is doable :).  However, I will have to create a custo player_prefab for the monsters to use, most likely no inventory and only health on the hud.  It should work decently, I'll post again once I've trid things out.

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