Jump to content

Debug removing an already completed quest from the active quests list


melikesapples

Recommended Posts

Restarting a quest via debug mode (without removing the completed quest) causes it to stay in active quests forever. There is a really simple fix for this.

 

  1. Locate the quest.rb file in the following filepath: Pokemon Rejuvenation (installation location) > Scripts > Rejuv > Quest > Quest.rb
  2. Open the Quest.rb file preferably with a code editor, but if you don't have one you can open it with notepad
  3. Search for the following function (you can Ctrl + F and paste this to find it):
    def completeQuest(quest, color, story, silent = false)

     

  4. Change this:
    for i in 0...@completed_quests.length
      if @completed_quests[i].id == quest
     #   Kernel.pbMessage(_INTL("You have already completed this quest."))
        return
      end
    end

    to this:

    for i in 0...@completed_quests.length
      if @completed_quests[i].id == quest
         @active_quests.delete_if { |q| q.id == quest }
     #   Kernel.pbMessage(_INTL("You have already completed this quest."))
        return
      end
    end

 

 

Save Quest.rb and restart the quest 1 more time (make it so it is on it's 2nd last stage to do it quick). This time, the quest will properly be removed from active quests when you complete it.

Edited by melikesapples
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...