Author Topic: [XP] Organized Quest System  (Read 22283 times)

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
[XP] Organized Quest System
« on: August 15, 2012, 08:04:59 PM »
Organized Quest System
Authors: KK20
Version: 1.22
Type: Quest Log
Key Term: Misc System

Introduction

Partly influenced from Final Fantasy Tactics Advance’s Quest System and Maplestory, this script is a complete quest system in itself. It organizes quests based on acceptance and completion and uses icons for the user interface.

Features

  • 4 tabs for organizing quests (All, New, Accepted, and Completed)
  • Somewhat unique user interface
  • Lots of customization
  • A quest information window that will display the location, NPC name, rewards, and description
  • Repeatable quests

Screenshots

(click to show/hide)

Demo

Download

Script

If too lazy to check demo, place this script above Main and under Scene_Debug.
(click to show/hide)
If you want save files to work, add this to the end of this script:
(click to show/hide)
For RMX-OS, add this bit of code at the end of this script:
(click to show/hide)

Instructions

Should all be there in the script, right near the beginning of it.

Compatibility

Aliased Game_Party methods, but I think there shouldn’t be any incompatibility problems. Obviously won’t work with another quest system.

Credits and Thanks

  • KK20 – For making the script
  • game_guy – For using his ‘Quest Log’ script as a template
  • Blizzard - For the slice_text method

Author's Notes

This was my first-ever script, back before I even joined Chaos Project and back when I was still learning the basics of RGSS. This script is a bit messy as a result. I am willing to make improvements if necessary.
« Last Edit: January 29, 2018, 10:16:24 AM by KK20 »



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline Metaron

  • Trained Member
  • *
  • Posts: 30
  • LV: 0
  • Gender: Male
    • View Profile
Re: [XP] Organized Quest System
« Reply #1 on: August 23, 2012, 11:33:41 PM »
This looks really good, i'll be sure to give it a try when I get back from holidays.

Offline cheos

  • Trained Member
  • *
  • Posts: 36
  • LV: 0
  • Gender: Male
  • i uh... have a youtube channel
    • View Profile
Re: [XP] Organized Quest System
« Reply #2 on: September 21, 2012, 05:37:31 AM »
*watches video* *eyes widens* omg i have been looking 4 something like this thank you so much your amazing
[Insert Mind Blowing Signature]

Offline exile360

  • Awakened Visionist
  • **
  • Posts: 84
  • LV: 3
    • View Profile
Re: [XP] Organized Quest System
« Reply #3 on: January 25, 2013, 03:16:29 AM »
Really nice work! This is pretty much exactly what I've been looking for, most of the quest systems out there are too simplistic and don't offer the kind of design I'm after. Any chance you could please make this work with RMX-OS? I suppose it needs an extension or something as the quests don't save right now. :(

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Organized Quest System
« Reply #4 on: January 25, 2013, 05:43:01 AM »
Paste the quest script below RMX-OS and, at the very end of this script, paste this in:
Code: [Select]
if !defined?(RMXOS) || RMXOS::VERSION < 1.09
  raise 'ERROR: The "Organized Quest System" requires RMX-OS 1.09 or higher.'
end
module RMXOS
  module Options
    SAVE_DATA[Game_Party].push('@quests_new')
    SAVE_DATA[Game_Party].push('@quests_accepted')
    SAVE_DATA[Game_Party].push('@quests_completed')
    SAVE_DATA[Game_System].push('@stored_desc')
  end
end
I haven't worked with RMX-OS extensively so I'm not sure if this is all I needed to do.
« Last Edit: January 25, 2013, 05:44:15 AM by KK20 »



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline exile360

  • Awakened Visionist
  • **
  • Posts: 84
  • LV: 3
    • View Profile
Re: [XP] Organized Quest System
« Reply #5 on: January 25, 2013, 01:55:48 PM »
Thanks a bunch for the fast reply!

It seems to work fine for new quests, no errors and they save upon exiting the game. However, when a quest is accepted or completed, once I exit and try to log back in, I get this error:
(click to show/hide)
After it has error'ed once and I go in again, it runs again, but the quest list is empty.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Organized Quest System
« Reply #6 on: January 25, 2013, 05:10:51 PM »
This script would require additional configuration in RMX-OS for the additional save data used by this script.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Organized Quest System
« Reply #7 on: January 25, 2013, 10:46:26 PM »
It's because of the 'stored_desc' variable that I made, huh? I forgot that it is a 2D Array. Still, I don't understand why that was the fault. Oh well, the only reason I had that was to reduce drawing times/remove lag.

I made an edit and it was saving for me.
(click to show/hide)
Basically replace the whole script with this.
« Last Edit: January 25, 2013, 11:12:38 PM by KK20 »



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline exile360

  • Awakened Visionist
  • **
  • Posts: 84
  • LV: 3
    • View Profile
Re: [XP] Organized Quest System
« Reply #8 on: January 25, 2013, 11:07:17 PM »
Getting a syntax error on line 417. o.o
=end

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Organized Quest System
« Reply #9 on: January 25, 2013, 11:10:20 PM »
@KK20: It was probably trying to deserialize data that wasn't there, but it was assumed that it was.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Organized Quest System
« Reply #10 on: January 25, 2013, 11:14:40 PM »
Code: [Select]
#================================================================================begin
lol how did that happen? Fixed the script in previous post.

Ah, alright. I guess I should keep that in mind when I work with RMX-OS later.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline exile360

  • Awakened Visionist
  • **
  • Posts: 84
  • LV: 3
    • View Profile
Re: [XP] Organized Quest System
« Reply #11 on: January 25, 2013, 11:26:38 PM »
Hehe. Yep, it seems to work perfectly now. Just a small question: is it possible to add a picture or have the current map remain as the background in the quest scene? Why I'm asking is that my windowskin has transparent edges, and the black can be seen through it. If it's just a line of code I can add somewhere, it'd be great, but if it's more work then it's fine as it is, not that important.

Thanks a lot for making it work! :) I'm sure it'll help more people besides me as well, as quest logs are quite an important part for any MMO.

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Organized Quest System
« Reply #12 on: January 25, 2013, 11:40:14 PM »
Now I feel like I need to clean this script up. The whole map back display isn't difficult, but I need to make a few edits.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline exile360

  • Awakened Visionist
  • **
  • Posts: 84
  • LV: 3
    • View Profile
Re: [XP] Organized Quest System
« Reply #13 on: January 25, 2013, 11:50:41 PM »
Haha, well it's an amazing script, definitely for your first. Hands down the best quest system out there. No need to make the edits unless you really want to, I feel bad for asking for so much on this forum already and making people waste their time on me without giving anything back. I wish I could do it myself, but scripting just isn't my thing unfortunately. If you ever happen to need any graphics, hit me up and I'll be more than happy to help if I can. :)
« Last Edit: January 25, 2013, 11:52:08 PM by exile360 »

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Organized Quest System
« Reply #14 on: January 28, 2013, 05:08:21 AM »
Haha you flatter me so :-*

But yes, this script needed an update. And here it is... Version 1.1~
I included a number of new things.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline exile360

  • Awakened Visionist
  • **
  • Posts: 84
  • LV: 3
    • View Profile
Re: [XP] Organized Quest System
« Reply #15 on: January 29, 2013, 05:37:48 PM »
Sounds cool, I will check this out tonight! Is there anything changed in the configuration part or can I just copy my current over this one to save me some rewriting? I have a bunch of quests done already. :P

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Organized Quest System
« Reply #16 on: January 29, 2013, 07:32:55 PM »
I actually added some other configuration items, so a "highlight all my configuration and copy-paste into the new version" won't work. If you copy-paste chunks at a time, then it should be fine.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline exile360

  • Awakened Visionist
  • **
  • Posts: 84
  • LV: 3
    • View Profile
Re: [XP] Organized Quest System
« Reply #17 on: February 02, 2013, 06:11:42 PM »
Alright, I finally got around to switching to the new one, sorry for the delay. Seems to work good, and I love the map background with the transparency! Great work. :)
I just have one little problem with it which I can't seem to fix.
(click to show/hide)
As you can see, my HUD covers the windows, but this happens only on the main quest list screen. Once you select a quest and go to the details screen, the HUD stays behind them. I tried searching for z values but can't seem to find the one for the main quest list screen. My HUD z is set to 200 and the only z value in the quest script I can find is set to 1000, which I assume is for the details window. Where is the one for the main one?

Also, you seem to have messed up the information in the comments a bit. :P The 3rd quest description area is supposed to be when the quest is finished, I assume? In the comments it says for new quests, like the first one, though.

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Organized Quest System
« Reply #18 on: February 03, 2013, 02:15:36 AM »
That window belongs to QuestRank. You can make the appropriate change by adding a self.z = 1000 (or any number higher than your HUD's z-value) like so
Code: [Select]
  def initialize
    super (0, 0, 640, 64)
    self.contents = Bitmap.new(width-32, height-32)
    self.z = 1000
    refresh
  end

Also, thanks for pointing that out. You can see how I like to copy-paste and forget to make changes.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline exile360

  • Awakened Visionist
  • **
  • Posts: 84
  • LV: 3
    • View Profile
Re: [XP] Organized Quest System
« Reply #19 on: February 03, 2013, 05:01:47 PM »
Yep that did it, thank you!