Basic Quest System

Yup, I've made a demo already that shows off this script as well as a few others.

https://www.mediafire.com/?gn2oioguau2g00g
So I'm trying to use the crafting script that is in your demo in my game, but whenever you open up the crafting menu an error pops up saying "Script 'Advanced Recipe Crafting' line 464: NoMethodError occurred. undefined method 'values' for nil:NilClass"

Forgive me if this is a simple mistake to fix, I'm very new to this
an error pops up saying "Script 'Advanced Recipe Crafting' line 464: NoMethodError occurred. undefined method 'values' for nil:NilClass"
In 80% of all cases, that error is the result of loading an older savegame that had become invalid by the addition of a script.
If you're new to scripting, this should help: http://forums.rpgmakerweb.com/index.php?/topic/40589-how-to-use-a-script/
In 80% of all cases, that error is the result of loading an older savegame that had become invalid by the addition of a script.

If you're new to scripting, this should help: http://forums.rpgmakerweb.com/index.php?/topic/40589-how-to-use-a-script/
Yep! Putting the script into another savegame worked just fine! Thank you!
Hey there, love the script, having some issues with it though. I'm trying to make a simple script where I would have to talk to one person who gives me a quest, and then talk to another NPC who does an event where I "kill" him and it progresses the quest.

I'm getting some error message though which I can't seem to fix. THIS is the error I'm getting, and THIS is the code I'm using.

A modified version of your example on the website, the rest is just copy paste. And THIS is the character that's giving the quest away.
Not sure if this will fix the issue. On your event, the first conditional branch (the turned in? one) is missing a ":" before the "starting_zone_quests".
Yeah that was the problem, thank you for the help!
Hey Vlue.

Just installed this script after having to abandon an older one I was using.

For the most part, it works great.

I made some changes to the script to restrict some objectives from showing up right away as well as changing color when the obj count reaches max.

This works ok until I save and quit the game.

Upon returning, the obj variables all reset to 0 and no longer update in the quest menu.  (They do on the log, but don't change color properly anymore)

If this is somehow caused by my edits, I'll try to fix it myself, but I have feeling my edits didn't cause this.

If you're willing to take a look at what I did, I will post my version of the script here with your ok, otherwise I could PM it to you.

(I confirmed that obj.current in both Window_QuestLog and Window_SceneDetail resets to 0 and stops updating after loading a save.

This was observed in a clean version of this script.)

Thanks in advance for your help.
I honestly have had trouble with the "kill X monsters quest", and finally figured it out (and decided to share, since there are probably other people who don't get it :x )

Forgive my presumptuousness. 

- You need the two scripts provided by Vlue (thanks, vlue ^-^), the quest system and the after battle victory/escape switches:

Basic quest system: http://pastebin.com/tyM7s1Pj

After battle switches: http://pastebin.com/qH1SkL0V

- Open up the database in RPG maker and go to the Troops menu. Select a troop.

- On the battle events section, set the condition to switch [VICTORY] is on (default is switch #90, you can change this in the script).

- Create a new "Script..." event. Type in:

adv_obj🙂questid, :objid, value)

for example, with the script compilation it would be adv_obj🙂questid001, 😮bj1, 1) for an increase of 1 in the slime killing quest.

then don't forget to turn the "Victory" switch off with "Control Switch" so that if the player battles a slime again and escapes, they won't see any quest advancement.

Hope this helped :3

(Vlue, those slimes were literally impossible to kill, why did you do this to us T^T I had to go in and cheat by lowering the attack stats xD)

Also, if you'll allow me a question of my own: how do you automatically turn off these victory switches? I see this in the script

  def return_scene

    $game_switches[VICTORY_EVENT_SWITCH] = false

    $game_switches[ESCAPE_EVENT_SWITCH] = false

    $game_switches[ABORT_EVENT_SWITCH] = false

    $game_switches[DEFEAT_EVENT_SWITCH] = false

    super

but it doesn't seem to actually be called by scene manager?
I have followed the directions you provided I have both the script you listed in my game but, my game keeps crashing. I will provide an image of the troop page and the error message.

Victory Condition.PNG

Error message.PNG
I have followed the directions you provided I have both the script you listed in my game but, my game keeps crashing. I will provide an image of the troop page and the error message.
You missed the colon. It's adv_obj🙂questid001, obj1, 1)
You missed the colon. It's adv_obj🙂questid001, obj1, 1)
I added the colon but, I get a new error message.  Also I did this through a new game as well. I will also post a picture of what it looks like in the script editor.

error message after colon addition.PNG

Script.PNG
I added the colon but, I get a new error message.  Also I did this through a new game as well. I will also post a picture of what it looks like in the script editor.
Your Obj needs a colon too. The colon represents a Ruby symbol. Every symbol needs the colon. "adv_obj🙂questid001, 😮bj1, 1)". Sorry about my mis-leading reply earlier, I was in a hurry.
Your Obj needs a colon too. The colon represents a Ruby symbol. Every symbol needs the colon. "adv_obj🙂questid001, 😮bj1, 1)". Sorry about my mis-leading reply earlier, I was in a hurry.
I added the colon in front of "obj1" it makes the sound when you complete the complete a quest then it freeze with only the battle music playing.
I added the colon in front of "obj1" it makes the sound when you complete the complete a quest then it freeze with only the battle music playing.
The freezing seems strange. I'm gonna take a wild guess and it's a combination of "forced turnin" trying to complete the quest before its been processed? I could be completely wrong, it's just a guess. Make sure you have the following script:

http://pastebin.com/qH1SkL0V

With this script you just need to scroll down a little and tell it which 4 switches it can use. Vlue wrote it so your objectives are processed when the battle is over. If it still freezes, try turn of auto turnin
The freezing seems strange. I'm gonna take a wild guess and it's a combination of "forced turnin" trying to complete the quest before its been processed? I could be completely wrong, it's just a guess. Make sure you have the following script:

http://pastebin.com/qH1SkL0V

With this script you just need to scroll down a little and tell it which 4 switches it can use. Vlue wrote it so your objectives are processed when the battle is over. If it still freezes, try turn of auto turnin
I got the After Battle script and chose switches 94 -97. I tried to turn off the auto turnin in the actual script but, I get the same result. I apologize if I am being a pest.
I got the After Battle script and chose switches 94 -97. I tried to turn off the auto turnin in the actual script but, I get the same result. I apologize if I am being a pest.
I'm not sure what is going wrong if it's still freezing. I seen one of your older screenshots and the troop condition required a switch, is that switch being handled properly? In any case I uploaded a brand new project with a working quest to kill a Slime. Maybe take a look at it and try it in your project. If that works then you can experiment a little more. If it doesn't work it might be something conflicting.

The QuestTest project is here: 

http://www.filedropper.com/questtest

Hope this helps!
Hi, I've read through the thread, and while there is some mentions of creating a Quest Board event with this script, I'm wondering if someone could walk me through building one?
I've fiddled around with a few things, but as Vlue mentioned, it seems as if it would require a very big event. Another post seemed to have attempted this, and created a long series of conditional branches.
Is there a simpler way to go about doing this, or would it just be better to start looking for alternatives? In my case, the game revolves around the Quest Board, while NPCs only give minor sidequests.
Hi, I've read through the thread, and while there is some mentions of creating a Quest Board event with this script, I'm wondering if someone could walk me through building one?

I've fiddled around with a few things, but as Vlue mentioned, it seems as if it would require a very big event. Another post seemed to have attempted this, and created a long series of conditional branches.

Is there a simpler way to go about doing this, or would it just be better to start looking for alternatives? In my case, the game revolves around the Quest Board, while NPCs only give minor sidequests.
It wouldn't be too bad if all of your quest board quests are auto-turn in quests. That way you don't have to deal with checking if they've accepted/completed the quest already. In which case you can just do:

http://gyazo.com/e5cdcb4dbce316cd3508f4747ffd1b43
This is indeed a nice script, and simple to use. I've been using for my game my team and I have been working on for a few months now, and we got an error to the script once we decided to make more complex quests with more objectives and multiple item rewards.

Here is the script lines for the quest.

[IMG]http://i.imgur.com/hJvFqJe.png[/IMG]

When I try to test with all the objectives.

[IMG]http://i.imgur.com/tZwlg6f.png[/IMG]

Without the objectives and only the Items.

[IMG]http://i.imgur.com/efD8CoT.png[/IMG]

I've slaved away at if for quite a while trying to fix it myself, and I've no idea what is wrong. I know enough of Ruby to understand the code, and I'm not sure what the problem here is. So any help that could be provided is very much appreciated.
This is indeed a nice script, and simple to use. I've been using for my game my team and I have been working on for a few months now, and we got an error to the script once we decided to make more complex quests with more objectives and multiple item rewards.

Here is the script lines for the quest.

[IMG]http://i.imgur.com/hJvFqJe.png[/IMG]

When I try to test with all the objectives.

[IMG]http://i.imgur.com/tZwlg6f.png[/IMG]

Without the objectives and only the Items.

[IMG]http://i.imgur.com/efD8CoT.png[/IMG]

I've slaved away at if for quite a while trying to fix it myself, and I've no idea what is wrong. I know enough of Ruby to understand the code, and I'm not sure what the problem here is. So any help that could be provided is very much appreciated.
Take away the curly braces at the end of each objective and item. You only need one to open and one at the end to close.

Like this: http://gyazo.com/67224fbb7f6c912cc0aba9775de30634
This script is great I love it but there is a problem when I use it with Khas awesome light effects. The UI will fade to a dark color. [IMG]http://i.imgur.com/Pvke77v.jpg[/IMG]

Original thread: https://forums.rpgmakerweb.com/threads/basic-quest-system.27446/