TextWorld icon indicating copy to clipboard operation
TextWorld copied to clipboard

Using Action-based to create repeatable reward only when the action is executed

Open lanhoang712 opened this issue 3 years ago • 1 comments

Hi @MarcCote we have a follow-up question on issue #296 . Is there a way to make the reward repeatable but only occur once with the action? The problem when I tested the "eat apple", "take apple" approach is that the reward keeps occurring as long as the apple is in the inventory (i.e. until "drop apple"). We want the quest to be repeatable so that the agent is rewarded with each time it takes the apple, but only with the action "take". Is there a way to do that?

lanhoang712 avatar May 10 '22 09:05 lanhoang712

That's a good point. You are right that's an issue with the current system. There's a stale pull request implementing what you need (see #235). I'll try to spend some time next to finish it. I remember it being pretty close to completion.

MarcCote avatar May 13 '22 12:05 MarcCote