From 74156d118d8f30d15355248aa058ae5554aa4e19 Mon Sep 17 00:00:00 2001 From: Kolby Nottingham Date: Sat, 4 May 2024 14:41:02 -0700 Subject: [PATCH] trigger goal to start --- src/agent/commands/actions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/agent/commands/actions.js b/src/agent/commands/actions.js index 02c1fbf..12ccacb 100644 --- a/src/agent/commands/actions.js +++ b/src/agent/commands/actions.js @@ -230,6 +230,7 @@ export const actionsList = [ }, perform: async function (agent, name=null, quantity=1) { await agent.npc.setGoal(name, quantity); + agent.bot.emit('idle'); // to trigger the goal return 'Set goal: ' + agent.npc.data.curr_goal.name; } }