RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
MA's Quest Journal Script - Side Quest Add-On Help Please

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 83
Y <3 ?
Silver - GIAW 11 (Normal)
Hey guys,
I'm trying to get an additional scene to appear in modern_algebra's Quest Journal scripting. I figured everything should work if I just simply duplicated what he did for the active_quests option except made sure to label it activeside_quests and be sure anything that relates to the active_quests being failed, completed, etc. should as well have this added to it as well.

I don't have any problems when it loads up, but now I get an error when I open up the 'Quests' sub-menu in the Menu options that states the following:

Script 'Quest Journal' line 586: NameError occurred.
uninitialized constant ModAlg_QuestData::ACTIVE_SIDE_QUEST_ICON



And I can't figure it out; I've looked at the line its talking about which is the "icon_index = ModAlg_QuestData::ACTIVE_SIDE_QUEST_ICON" area, but I can't figure it out.


class Window_QuestCategory < Window_Base
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Object Initialization
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def initialize
    super (0, WLH + 32, 160 + WLH, 64)
    create_contents
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Refresh
  #    category_index : icon to highlight -
  #                       0 => All, 1 => Active, 2 => Complete, 3 => Failed
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def refresh (category_index = 0)
    contents.clear
    # Retrieve Icon Bitmaps
    bitmap = Cache.system("Iconset")
    icon_index = ModAlg_QuestData::ACTIVE_QUEST_ICON
    active_rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
    icon_index = ModAlg_QuestData::COMPLETE_QUEST_ICON
    complete_rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
    icon_index = ModAlg_QuestData::FAILED_QUEST_ICON
    failed_rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
    icon_index = ModAlg_QuestData::ACTIVE_SIDE_QUEST_ICON
    activeside_rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
    # Combine the three icons for the All Icon
    all_icon = Bitmap.new (40, 32)
    all_icon.blt (0, 0, bitmap, complete_rect)
    all_icon.blt (20, 0, bitmap, failed_rect)
    all_icon.blt (8, 10, bitmap, active_rect)
    all_icon.blt (8, 10, bitmap, activeside_rect)
    distance = (contents.width - 112) / 3
    x = 0
    # Draw the 'All' Icon onto the window
    contents.blt (x, 0, all_icon, all_icon.rect, category_index == 0 ? 255 : 128)
    x += 40 + distance
    # Draw the 'Active' Icon onto the window
    contents.blt (x, 4, bitmap, active_rect, category_index == 1 ? 255 : 128)
    x += 24 + distance
    # Draw the 'Complete' Icon onto the window
    contents.blt (x, 4, bitmap, complete_rect, category_index == 2 ? 255 : 128)
    x += 24 + distance
    # Draw the 'Failed' Icon onto the window
    contents.blt (x, 4, bitmap, failed_rect, category_index == 3 ? 255 : 128)
    # Draw the'ActiveSide' Icon onto the window
    contents.blt (x, 4, bitmap, activeside_rect, category_index == 4 ? 255 : 128)
    x += 24 + distance
    end
end


Scripts Currently In Use:
I am using the following additional quests that would impact this script in very minimal ways (and I've already cross-checked these, they are not the cause for this problem that I could tell):

Bitmap Addons, Version: 1.5, Author: modern algebra (rmrk.net)
Quests, Version: 1.1, Author: modern algebra (rmrk.net) - and Quest Journal Tool by game_guy (rmrk.net)
  *BTW, this Quests script is nothing more then the 'Quest' list portion of MA's script, just in a more simplified manner for better
    understanding and handling of our quests. Check it out here: http://rmrk.net/index.php/topic,38995.0.html

Please let me know what any of you think;I'm really trying hard to get this to work, because my game is chalk full of side quests and I really need them separated form the main-line quests.

Thank you for your time! :)
"If you see it, it is not truly there. If you dream it, it will never appear when you waken. If you love it, it will never leave you. Love him... Though he is not real and though you may never see him when you awaken tomorrow." ~ Sorceress of Gaida, Quote from: Eriscadia - The Fall of Nations
http://rpgmaker.net/games/1352/

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
I'd recommend just switching to v. 2.1 and using the custom categories feature.

**
Rep: +0/-0Level 83
Y <3 ?
Silver - GIAW 11 (Normal)
o.o Thank you very much, MA! I wasn't aware there was an updated version...  :-[
"If you see it, it is not truly there. If you dream it, it will never appear when you waken. If you love it, it will never leave you. Love him... Though he is not real and though you may never see him when you awaken tomorrow." ~ Sorceress of Gaida, Quote from: Eriscadia - The Fall of Nations
http://rpgmaker.net/games/1352/