The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: sirfrivixx028 on January 26, 2013, 06:39:48 AM

Title: Quest Journal HELP
Post by: sirfrivixx028 on January 26, 2013, 06:39:48 AM
So here's the Script code I entered in my event where the player accepted the quest:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1327.photobucket.com%2Falbums%2Fu676%2Fsirfrivixx028%2Fquestaccepted_zps2d023244.jpg&hash=3de12753818e7b27921f6aec7a299152df48f4e6)

And this code where the player Finished the quest:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1327.photobucket.com%2Falbums%2Fu676%2Fsirfrivixx028%2Fquestcompleted_zps1ec8f7e1.jpg&hash=ab150a4a42d943ed64b6c955b72ee8ef20b863c8)

Supposedly my Quest entitled "Claire Gronalyn" should be enlightened GREEN. Just like the first objective which is "Find and talk to claire" when finished and accomplished, but it is not.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1327.photobucket.com%2Falbums%2Fu676%2Fsirfrivixx028%2Fscript_zps211b4880.jpg&hash=925cdb008ad25e38c2d208a5b425b0e4a5870048)

And that quest  "Claire Gronalyn" should appear in the COMPLETED QUEST panel.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1327.photobucket.com%2Falbums%2Fu676%2Fsirfrivixx028%2Fcomplete_zps9e6e4b3d.jpg&hash=da7cdd38106e143c4837d550cebfc98c3c7c3c86)

What I'm doing wrong? Help me please.
This is Modern Algebra's QUEST JOURNAL btw.

Here's my modified Script:
https://www.dropbox.com/s/czwzxcoaz7by93e/Quest%20Log.txt
Title: Re: Quest Journal HELP
Post by: modern algebra on January 26, 2013, 11:55:23 AM
The problem is that you are setting it so that it has more objectives than necessary and you set it so that the prime objective was 2, not 0. You should change it to:

Code: [Select]
    when 1 # Quest 1 - Claire
      q[:name]              = "Claire Gronalyn"
      q[:description]       = "Claire Gronalyn, your foster parent is looking for you."
      q[:objectives][0]     = "Find and talk to Claire."
      q[:prime_objectives]  = [0]
      q[:rewards]           = [
        [:exp, 50],
        [:gold, 100],
      ]

In other words, if you aren't using more than one objective, don't set more than one objective. Also, set the prime objectives to include only the ID of the objective you need to complete before the quest is completed.

Additionally, where you aren't modifying the default value of a setting (such as q[:layout]), you do not need to include it.
Title: Re: Quest Journal HELP
Post by: sirfrivixx028 on January 27, 2013, 01:57:05 AM
Thank you so much.  :)
Title: Re: Quest Journal HELP
Post by: modern algebra on January 29, 2013, 02:55:23 AM
I'm happy that I could help!
Title: I've tried out everything can anybody help me?(((
Post by: AaronCax on August 22, 2019, 02:16:51 AM
Thanks for the blog, it is full of a lot of helpful information. This helped me a lot. https://www.residentiesecurityshop.nl/4fjg-mba-sample-application-essays/
https://outdooreye.net/2z3l-publish-my-essay-on-line-the-issue-you-are/
http://seoulfoseca.com/60mv-laboratory-purchase-conceptual-specification/
http://www.khhotels.cz/akce/3wai-class-analysis-proposal-illustrations
http://www.bahia.com.br/78sk-interdisciplinary-translational-projects-itp/