MV YEP quest Journal plugin question

hi this is my first time making a thread and i'm not sure i am posting right but please help me whoever read this

I tried to use YEP quest journal plugin, and used some script to build if clause
but

$gameSystem.isQuestObjectiveCompleted(12, 1) <- this script just don't seem to work

$gameSystem.isQuestObjectiveUncleared(12, 1) <- this script works fine





To find out, I made a event to check this (sorry it is korean)

(photo deleted)


so, what it said above in words is

I made variable 'completed' and put the script control variable(a number of completed quest) in it, and I made 'process' variable and put a number of available quests. and show it with text window.

Then I used if clause and put each script that causes problem. (isQuestObjectiveCompleted) and also put else whether else clause causes problem too. (I put isQuestObjectiveUncleared also for the comparison). and also showed it in text window.

and here was the outcome


when the quest was available:






(photo deleted)





it was fine.

but when the quest was completed,





(photo deleted)


The total completed quest number shows the right number, but problem causes with the condition scripts.

conclusion:

$gameSystem.isQuestObjectiveCompleted(12, 1) <- this script just don't seem to work, but the quest is in the right category

$gameSystem.isQuestObjectiveUncleared(12, 1) <- this script works fine, but when it happens to else clause, dealing with completed quest, it seems to make a problem too. (Maybe it is because it uses isQuestObjectiveCompleted function to make a outcome)


Code:
Game_System.prototype.isQuestObjectiveCompleted = function(questId, objId) {
  if (this._questsObjectivesCompleted[questId]) {
    return this._questsObjectivesCompleted[questId].contains(objId);
  } else {
    return false;
  }
};

Game_System.prototype.isQuestObjectiveFailed = function(questId, objId) {
  if (this._questsObjectivesFailed[questId]) {
    return this._questsObjectivesFailed[questId].contains(objId);
  } else {
    return false;
  }
};

Game_System.prototype.isQuestObjectiveUncleared = function(questId, objId) {
  if (this._questsKnown.contains(questId)) {
    return !this.isQuestObjectiveCompleted(questId, objId) &&
      !this.isQuestObjectiveFailed(questId, objId)
  } else {
    return false;
  }
};


this is the function that is used in the plugin.

help me... please...
this took me a day to struggle and still have no answer...
I made a forum account for this...
for those who give me a hint for this problem, I will bless them to have a very awesome day
Is here a right place to ask anyway?
i don't know but please help me...
Moved to: Plugin Support
You're looking at two separate things. A quest being completed is different from any of its objectives being marked as completed, and marking a quest as completed does not automatically mark any objectives within as completed.

You need to either make sure you have actually set the objectives as complete, or use a different script call to be asking the right question.

If you use the plugin command "Quest X Complete Objective Y" every time it's applicable, then your event should work. Otherwise, the script call to check whether a quest has been marked as complete is $gameSystem._questsCompleted.contains(questID) as you can see from looking in the getQuestsCompleted function.
You're looking at two separate things. A quest being completed is different from any of its objectives being marked as completed, and marking a quest as completed does not automatically mark any objectives within as completed.

You need to either make sure you have actually set the objectives as complete, or use a different script call to be asking the right question.

If you use the plugin command "Quest X Complete Objective Y" every time it's applicable, then your event should work. Otherwise, the script call to check whether a quest has been marked as complete is $gameSystem._questsCompleted.contains(questID) as you can see from looking in the getQuestsCompleted function.
I've solved it!! Thank you so much!!!!!!!!!

Original thread: https://forums.rpgmakerweb.com/threads/yep-quest-journal-plugin-question.141047/