Another Event Problem Im Having

Previously I had a problem with MA's Quest Journal, This is similar but i need help with the Conditional Branch>Script.

My quest is i talk to an NPC to get a sword, i have no money so he tells me if i kill the rats in his basement, he will give me the sword for free. So i reveal my objective "reveal_objective(n,n)" And after another event (rat battle) It "completes_objective(n,n)" after the rats are killed.

After the rats are killed I go back to him to complete the quest, but he still says "i need you to kill the rats in my basement".

Am i setting this up wrong? Here are a couple screenshots.

Untitled 1.png

Untitled 3.png

Untitled 2.png

Untitled 4.png
Try turning on a switch when the player completes the objective and set the conditional branch to check for that instead. I don't think setting it to the script call that completes the objective actually does anything.
Thank you Hollow, It worked!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/another-event-problem-im-having.23350/