Is it possible to create a command/action that doesn't use any of the "produce" commands but something else like the "stop" command? Have the requirements be something like "Costs 100 wood" and "Cost -10 gold" and then it should "sell" 100 wood for 10 gold, right? Because it'll cost 100 wood to activate, and give 10 gold (cost -10) when activated, and the only "action" it does is the stop command.
Maybe you could try something like that instead of trying to produce the resource. After all, it costs EP for the golem to move, what if it cost him EP to stop? lol