Pets that attack?

I’m not sure any of the pets in game currently have the ability to attack as they see an enemy. I’m trying right now to simply say use the Stonehearth wolf as a pet, it seems to work although it’s missing a conversation type. How do I add one?

release-893 (x64)[M]
…ctions/conversation/conversation_initiate_action.lua:45: attempt to compare nil with number
stack traceback:
[C]: ?
…ctions/conversation/conversation_initiate_action.lua:45: in function ‘_on_social_attr_changed’
…ctions/conversation/conversation_initiate_action.lua:16: in function <…ctions/conversation/conversation_initiate_action.lua:10>
[C]: in function ‘start_thinking’
stonehearth/services/server/tasks/task_action.lua:102: in function ‘_start_stop_thinking’
stonehearth/services/server/tasks/task_action.lua:175: in function <stonehearth/services/server/tasks/task_action.lua:174>
[C]: ?
[C]: in function ‘trigger’
radiant/modules/events.lua:63: in function ‘_update’
radiant/server.lua:66: in function <radiant/server.lua:63>

the error that I get. in case anyone knows… take note, I’m not fluent in lua like AT ALL lol

Add this to your pet:

“mixins”: “stonehearth:mixins:critter”,

Should be enough.

The error is from the entity missing the attribute satisfaction, that measures when it wants or not to talk

2 Likes