A simple QuestLog

QuestLog Plugin v2.4
By Winthorp Darkrites​

This is my take on a simple QuestLog plugin, it's nothing exceptional, it's really basic, but I tried to make it as customizable as possible to make it compatible with multilanguage games.

The core functionality is really simple, create quest, display quest, remove quest. That's it.
What may be of interest for someone who doesn't write is own plugin is the (I hope) versatility.

How to call the questlog:
  • You can do it by script line
  • You can do it by Plugin Command
  • You can add a command in the main menu activating the option in the Plugin Parameters. You can also rename the command either via Plugin Parameter or Plugin Command.
How to create a quest:
Quest will be created by Plugin Command with the following parameters:
  • ID: The ID of the quest, useful to use Remove Quest and Set Quest Completion commands. Please be sure to use unique ID and I suggest to keep track of your quests on a note somewhere as you can check it in game.
  • Icon: It will show the desired Icon in the Quest Info window. Of course it refer to the games Icons.
  • Name: The quest name, keep it short.
  • Index: The order it will be displayed on the quest list. (First the active quest will be ordererd, then the completed quests)
  • Giver: Who gave you the quest [NOTE: Standard format will be "From: (this value). You can change "From:" via Plugin Parameter or Plugin Command]
  • Area: Where is located the quest [NOTE: Standard format will be "Area: (this value). You can change "Area:" via Plugin Parameter or Plugin Command]
  • Description: The description of the text. IMPORTANT: Text doesn't line break automatically, it will try to fit in the window by shrinking. For this reason I added a check that will search for \n line break and splits the text into a new line.
  • Completion: From Version 1.3 the quest can be Ongoing (active), Completed or Failed! [NOTE: Standard format will be "Status: Ongoing/Completed. You can change "Status:", "Ongoing" and "Completed" via Plugin Parameter or Plugin Command]

Layout:
The layout is really simple, a Title window showing the name for the QuestLog (you can edit the title via Plugin Parameters and Plugin Command; also you can edit the font size, for now only via Plugin Parameter), a window showing an ordered quest list and a window showing the active quest informations.

Managing the plugin:
As I said before, you need to add the quests via Plugin Command, you can set their completion always via Plugin Command either by name (exact name) or by ID. In the same way, you can remove the quests from the list.


Screenshoot

Quest Log.png


Overall.png


Translation.png


Track.png


Log3.png



Video




Terms of use​


Free for personal and commercial projects, read the ToS before using

Version, bugs and further development​


VERSION 1.0:
  • Initial Release

VERSION 1.1:
  • Added new plugin command to edit an existing quest description by ID or Quest Name
  • Added new Plugin Command to change FontSize

VERSION 1.2:
  • Merged "Set Completion by ID / by Name" and "Remove Quest by ID / by Name"
  • Changed font size for the Quest List and Quest Description, you can change them via Plugin Parameters or Plugin Command
  • Changed the alignemnt con Quest List from "left" to "Center", can be changed via Plugin Parameter
  • Created a command that checks if a quest is completed and stores the result in a Switch of your choice (ON for Complete, OFF for Ongoing)
  • Created a plugin command to change the Quest Icon searching it by ID or Name

VERSION 1.2.1:
  • Fixed an issue reported by Grillmonger where QuestList would wipe if game was closed entrely and then reloaded. Upon further investigation the fix was extended to the other Plugin Parameters too (Such as Title Font, etc..) that would not carry over the changes if done via Plugin Command

VERSION 1.2.2:
  • Hotfix for changes made in 1.2.1 as Plugin Parameters from Plugin Manager where not correctly loaded (Report by Grillmonger)

VERSION 1.3:
  • Updated the code to a newer version with, but not limited to, tweaks to the save and load functionality.
  • Added the "Failed" status to the Quests with the needed changes to "Add Quest", "Set Completion" and "Check Completion". Added bits of code to allow retrocompatibility with the older versions.
  • Added the option to Autoset the Description Font Size, the plugin will range from a font size of 100 to a font size of 10, trying to fit the text both in width and height. You still need to break the lines with \n as before. The autosize text is only left aligned due to a limitation of the DrawTextEx feature used. (On the positive side, it should accept the usual RMMZ text code like \I for icons, didn't tried it)
  • Added the possibility to add a longer title that will be displayed in the Quest Informations window (while the short name will be used for the quest list on the left). If you don't need it just leave blank the field.
  • Minor fix on a bug that could cause the menu button to change name due to a conflict with the Quest List items

VERSION 1.3.1:
  • Hotfix for a small bug that would turn the menu command name to "true", thanks to ryf for the report!

VERSION 1.3.2:
  • Fixed an old part of the code creating two problems: A black layer under the scene and no centering if the Game UI was changed from the System 2 tab as reported from ryf and Puppet Knight

VERSION 1.4:
  • Added the setting to show or hide the title in the QuestLog
  • Added the possibility to switch the quest list / quest info layout
  • Added the option to use 100% of the graphic box (standard setting for this plugin) or 90% (standard RPG Maker MZ scene compatible with cancel touch button)
  • Added the possibility to hide the cancel touch button (useful for 100% size, but make sure the player has access to non touch controls)
  • Added the possibility to change the windows skin for the QuestLog only, also you can change the colors tone (by re-selecting the default skin you can apply different color tones to it)
  • Added a new plugin command to change all the above mid-game

VERSION 1.5:
  • Fixed an unexpected behaviour in the Auto Size description text that resets the font size after correctly finding the fitting value
  • Added a padding value to the text to have the desired look to the text graphic
  • Added a full support for RMMZ text codes while keeping the alignment options
  • Minor tweaks to the Plugin Parameters
  • Now the plugin will automatically support compatibility with v1.1 or lower without having to choose different files

VERSION 1.6:
  • Fixed a bug were the old quest files would be deleted if any quest action (like accepting a quest) would be done after reloading a save and before opening the questlog. (Thanks to TewiInaba for the report)
  • Fixed a minor bug in the "Complete Quest" command
  • Changed the Icon selection parameters from a number to an icon selector
  • Added an external script call to check quest completion, see help

VERSION 1.6.1:
  • Changed the Quest Title from DrawText to DrawTextEx. The text will still be centered but now you can add the standard RMMZ commands such as \I for Icons or \C for colours

VERSION 2.0:
  • Code rebuilt and updated but kept compatible with older versions
  • Updated the Discord invite link in the help file that was invalid, embarassing!
  • Added translations managed via WD_Core
  • Dynamic Resize has been moved to WD_Core, plus a new text management option has been added: AutoWrap. Just write your sentence (supports RMMZ text codes) and the code will automatically wrap the text in the designed area. No need to manually use the \n code (but you still can if you want to force a new line). If the text is still too big, the AutoWrap will try to shrink the font size to the minimum required.
  • Added the optional rule to display an expanded data log if the player clicks on the quest
  • Added the optional rule to activate a small Quest List on the map scene (either managed by the player or by the dev)
  • Added Quest Categories to group quests together

VERSION 2.0.1:
  • The plugin wasn't saving correctly the quests! Thanks to kricu for the report, now it's all correct. NOTE: Old savefiles won't work, sadly, only work with new saves.
  • The tracking system now correctly saves the tracking preference and loads them when the player loads a savefile

VERSION 2.0.2:
  • Corrected a typo that would block the "Edit Quest Descriptor" command, thanks to tinribs26 for the report!
  • Also correct a misplaced code line that would crash the above command when launched

VERSION 2.1:
  • Fixed a nasty memory bug that would "remember" the quests when exiting an existing game and starting a new one without exiting the executable
  • Added a command to check if a quest already exist (useful if you want to add a quest from different sources)

VERSION 2.2:
  • Changed the quest window refresh method to adapt it to Android deployments (Thanks to Stevynn for the report)
  • Fixed incorrect font variable used in manual text mode

VERSION 2.3:
  • The Language control has been moved to WinterDream Core (you will need v1.3 or higher). QuestLog loses the parameters "Default Language" and AutoDetect language, now controller by the central plugin

VERSION 2.4:
  • Added the option to hide/show a quest
  • Added the option to show the quest title in the tracking HUD
  • Now you can mass store quests undere ID driven storages, this will make it super easy to switch between different characters or parties
  • Tracked quests will now automatically be removed when they are set to Completed or Failed
  • Fixed a bug in the conversion of old Quests to the new format
  • Fixed a bug in logs activation / deactivation
  • Fixed a bug in the Export Quest Completion functionality
VERSION 2.4.1:

  • Now Categories names and Quest Titles accept RMMZ text commands, especially useful for colours
  • Thanks to Tails for this two reports
  • Fixed a bug on the "Add or Remove Quest Tracking" flag parameter that was a string instead of a boolean
  • Fixed the "Change tracking text" plugin command that wouldn't refresh the HUD informations
VERSION 2.4.2:

  • Thanks to tinribs26 for those two reports!
  • Fixed a bug in the new Quest Containers functionality that would break the savegames load. It's now patched with retrocompatibility for old broken saves.
  • Fixed a font reset problem during category and quest titles display


Further developments will include: -


Download for free on Itch.io
Nice!

This is pretty much exactly what I need, especially once the update description feature is added.
Nice!

This is pretty much exactly what I need, especially once the update description feature is added.

Done and done 🙂
New Version is out!

- Added new plugin command to edit an existing quest description by ID or Quest Name

- Added new Plugin Command to change FontSize

Important compatibility note from 1.0 to 1.1: To correctly use the Edit Description command by ID quest must be created with an ID above 0. If any quest before 1.1 was created with Quest ID = 0 it will still work but can't be edited via Plugin Command using ID (will still be possible to change description via Name)
VERSION 1.2 is out!

  • Merged "Set Completion by ID / by Name" and "Remove Quest by ID / by Name"
  • Changed font size for the Quest List and Quest Description, you can change them via Plugin Parameters or Plugin Command
  • Changed the alignemnt con Quest List from "left" to "Center", can be changed via Plugin Parameter
  • Created a command that checks if a quest is completed and stores the result in a Switch of your choice (ON for Complete, OFF for Ongoing)
  • Created a plugin command to change the Quest Icon searching it by ID or Name
Now the QuestLog looks more neat with a new font size for Description and for the List!

Plus I hope you like the new features allowing you to change icon (want to make a progressive icon? now you can!) and a command to check if the quest is completed or not, passing it to a Switch, so your QuestLog can now interact with the world you created.



Important note, you will find a "Regular" folder and a "Compatibility" folder. If you are new to the plugin use the "Regular" but if you used Version 1.1 or 1.0 and your game uses "SetCompletion by ID / Name" and "Remove Quest by ID / Name" you need to use "Compatibility" to keep them working



Further developments will include:
Adding a "Failed" status to the Quests, Making different a different field for Short Title (Command) and Long Title (Info Screen) with retrocompatibility
I can't speak for the community, but I feel like we need more eyes on this. I find other quest systems to be far too robust for a lot of games that use them. We just don't have many options. Thanks for this! Fantastic job!
I can't speak for the community, but I feel like we need more eyes on this. I find other quest systems to be far too robust for a lot of games that use them. We just don't have many options. Thanks for this! Fantastic job!
Many thanks, I really appreciate it!
If by using it you come across any problem or you see something useful missing I'll gladly hear out your opinion :LZSproud:
VERSION 1.2.1 is out!

  • Fixed an issue reported by Grillmonger where QuestList would wipe if game was closed entrely and then reloaded. Upon further investigation the fix was extended to the other Plugin Parameters too (Such as Title Font, etc..) that would not carry over the changes if done via Plugin Command
Sorry for yet another reply but yesterday release contained a bug that won't read the Plugin Parameters from the Editor, released an hotfix
Version 1.3 of the QuestLog plugin for RPG Maker MZ is out!

  • Updated the code to a newer version with, but not limited to, tweaks to the save and load functionality.
  • Added the "Failed" status to the Quests with the needed changes to "Add Quest", "Set Completion" and "Check Completion". Added bits of code to allow retrocompatibility with the older versions.
  • Added the option to Autoset the Description Font Size, the plugin will range from a font size of 100 to a font size of 10, trying to fit the text both in width and height. You still need to break the lines with \n as before. The autosize text is only left aligned due to a limitation of the DrawTextEx feature used. (On the positive side, it should accept the usual RMMZ text code like \I for icons, didn't tried it)
  • Added the possibility to add a longer title that will be displayed in the Quest Informations window (while the short name will be used for the quest list on the left). If you don't need it just leave blank the field.
  • Minor fix on a bug that could cause the menu button to change name due to a conflict with the Quest List items
I've made several retrocompatibility tests and they all worked with no errors, I can't stress enough that updating the code to the new plugin command is way SAFER than relying on retrocompatibility
Hi! Just wanted to ask a question regarding the plugin. I added it into my game and noticed that for the first instance you open the menu it will show up as "Quest Log" as I defined in the plugin parameters. But whenever I click on anything else and return to the menu again it shows up as "true" instead and stays that way.

Would you have any idea how to fix it?

Also, would it be possible to have an icon attached to the menu command portion? It looks a bit out of place with the rest of the menu without an icon 😅

Thanks!
Spoiler: Images
QA.PNG
QB.PNG
QC.PNG
Hi! Just wanted to ask a question regarding the plugin. I added it into my game and noticed that for the first instance you open the menu it will show up as "Quest Log" as I defined in the plugin parameters. But whenever I click on anything else and return to the menu again it shows up as "true" instead and stays that way.

Would you have any idea how to fix it?

Also, would it be possible to have an icon attached to the menu command portion? It looks a bit out of place with the rest of the menu without an icon 😅

Thanks!

I found the bug, I'll upload the hotfix in the next minutes! Thanks for bringing this to my attention

As for the icon, I see you are using a modified menu, the QuestLog simply add an original command to the Scene Menu. It depends on how your plugin works, if it changes all the original commands maybe it's enough to write "\I[1]QuestLog", if it has a more complex way to do it, I would need to know what plugin it is 🙂
VERSION 1.3.1 Changelog

  • Hotfix for a small bug that would turn the menu command name to "true", thanks to ryf for the report!
So this is the plugin I'm using for the menu: https://awaya3ji.seesaa.net/article/491067894.html

Hopefully it's an easy add-on for the icon? Sorry I'm not really good at reading code haha

Also, if it won't be too much of a bother would it be possible to change the background of the quest log? I was hoping to keep it semi-transparent like in the image in the link but it's just showing up as black to me. If it's too much work then it's fine otherwise 🙂

Again, thanks for the plugin!
You can easily add the icon with those steps:
  1. Be sure that MenuPlus is ABOVE QuestLog in the Rpg Maker MZ plugins list
  2. Open MenuPlus properties
  3. Open IconTable parameters
  4. Double Click on "Extended Settings"
  5. Double Click on an empty row
  6. On symbol write quest (all lowe case)
  7. On Icon set the icon ID you want
I tested it and it works :ahappy:

As for the background, let me check I might find something 😀
I love the simplicity of set up for quests with this plugin and will definitely be using it. Albeit alongside a more complicated one actually.

I see this being a menu where players cann take a quick glance on story progress for certain beats while another quest plugins menu will be used for the inn dept info.

I'll let ya'll know how it goes!
I love the simplicity of set up for quests with this plugin and will definitely be using it. Albeit alongside a more complicated one actually.

I see this being a menu where players cann take a quick glance on story progress for certain beats while another quest plugins menu will be used for the inn dept info.

I'll let ya'll know how it goes!

I can't wait for the feedback 🙂

If you feel like there should be more feature feel free tell me, I'm always ready to improve my plugins 😉
One ask i will put out there outright is size and position of the window and its sections
One ask i will put out there outright is size and position of the window and its sections

Would you like an advanced mode where you have total control or a series of options?
Functionally I wouldnt recommend anything more advanced because I think your plugin would lose its exact appeal. Its a straight up quest log that lets you create quests from the plugin commands themselves without involving categories and other craziness.


Would you like an advanced mode where you have total control or a series of options?

Sort've an in between.

The window is using the System 2 UI size settings as it should. However for some reason (for me) the Quest Log doesn't draw centered on the screen

Main Menu:

Screenshot 2023-12-10 125337.png


Quest Log:

1702230999727.png



So by default it should be centered, with potentially a plugin parameter option to let users define a specific location where it will be drawn and how large.


Additionally, the auto black background is a bit jarring especially if the users Menus don't normally take up the whole Screen Width/Height. Ideally by default this would be to draw like any other menu/scene and make blacking out the background into an option (if that).



Nice to have: Allow users to choose a window skin specific to Scene_Quest

Request (if it doesn't already): Allow Variables/JS/Text Codes for Menu Fields like "Quest Name" just so folks can jazz up their texts a bit. Also allows for more personalization if the User wants to reference an Actor's name that the player can choose.



Hope this helps!

Original thread: https://forums.rpgmakerweb.com/threads/a-simple-questlog.159257/