Jump to content

Sanity Boost From Fishing?


Recommended Posts

Yes. sanity.lua. It has a hook that lets you inject a function to be used to modify sanity based on whatever conditions you deem appropriate

(Hehe, hook.) Can you tell me exactly how to make it so I can get a sanity boost from fishing?
Link to comment
Share on other sites

Ah, thanks.

Another thing, I typed in the... thing (in prefabs) for my character to not get get walrus aggro (if that's the right word) but it doesn't work. Do you know the correct... thing? (This is my first mod, so I know almost nothing. :p)

Link to comment
Share on other sites

Ah, thanks.

Another thing, I typed in the... thing (in prefabs) for my character to not get get walrus aggro (if that's the right word) but it doesn't work. Do you know the correct... thing? (This is my first mod, so I know almost nothing. :razz:)

try adding

inst:AddTag("walrus")

to the fn in the character's prefab. (i did this with merms for my character, so merms just stare at my character :p )

Link to comment
Share on other sites

try adding

inst:AddTag("walrus")
to the fn in the character's prefab. (i did this with merms for my character, so merms just stare at my character :p )
That didn't work. I typed it in and the game crashed with the log saying something like Could not load character. Maybe inst:AddTag("walrusfriend") would work?

I know walruses have ("houndfriend") so I thought of that.

Link to comment
Share on other sites

That didn't work. I typed it in and the game crashed with the log saying something like Could not load character. Maybe inst:AddTag("walrusfriend") would work?

I know walruses have ("houndfriend") so I thought of that.

im not sure how that would work

that might work, but can you send the log thou?

it might of been a typo

Link to comment
Share on other sites

@WalrusMan, I'm almost 100% certain that inst:AddTag did not crash your game. 100% of the 'entities' in Don't Starve can have tags. Make sure you aren't adding it to a component or widget as those cannot have tags to my knowledge.

Meh. I typed it under my components along with the ListenForFishingThing.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...