This plugin introduces a simple quest journal and task tracking system, similar to the one found in The Elder Scrolls V: Skyrim. It allows developers to create quests, track their progress, and manage quest-related tasks within RPG Maker MZ.
To open the quest journal, use the following script call:
SQSM.OpenQuestJournal();
To add a quest to the journal, use the following script call. Replace ID
with the quest's unique identifier (as a string):
SQSM.AddQuest("ID");
To show a specific description for a quest, use:
SQSM.ShowDescriptionForQuest("ID", INDEX);
ID
: The quest identifier.INDEX
: The index of the description to show (the first description is shown by default).
Note: First description is shown by default.
To show a specific task for a quest, use:
SQSM.ShowTaskForQuest("ID", INDEX);
INDEX
: The index of the task to show (the first task is shown by default).
Note: First task is shown by default.
To show all tasks for a specific quest, use:
SQSM.ShowAllTasksForQuest("ID");
To mark a specific task as completed:
SQSM.CompleteTaskForQuest("ID", INDEX);
To mark a specific task as failed:
SQSM.FailTaskForQuest("ID", INDEX);
To mark an entire quest as completed:
SQSM.CompleteQuest("ID");
To mark an entire quest as failed:
SQSM.FailQuest("ID");
To remove a quest from the journal and reset its progress:
SQSM.ResetQuest("ID");
To activate or deactivate quest tracking on the map:
SQSM.SetActiveQuest("ID", true); // Activate
SQSM.SetActiveQuest("ID", false); // Deactivate
The following script calls return a boolean (true
or false
) based on the status of the quest:
SQSM.isQuestComplete("ID");
SQSM.isQuestFailed("ID");
SQSM.isQuestVisible("ID");
SQSM.isQuestActive("ID");
These script calls check the status of individual tasks within a quest:
- Task Completion:
SQSM.isQuestTaskComplete("ID", taskIndex);
- Task Visibility:
SQSM.isQuestTaskVisible("ID", taskIndex);
- Task Failure:
SQSM.isQuestTaskFailed("ID", taskIndex);
Note: Task indices start from 1
.
To refresh the quest tasks displayed on the map:
SQSM.RefreshMapQuestsList();
To manage the visibility of the map quest list:
- Show the list:
SQSM.ShowMapQuestsList();
- Hide the list:
SQSM.HideMapQuestsList();
Note: This script calls works only for Deprecated Map Quest List.
To manually open or close the quest task window on the map:
- Open the window:
SQSM.OpenMapQuestsList();
- Close the window:
This is the same as pressing the "X" button on the window.
SQSM.CloseMapQuestsList();
The visual style of the quest journal and map quest list can be customized via the plugin parameters. Ensure the necessary image files are included in your project directory under img\pSQSystem
.
Note: Don't forget to copy these images into your deployed project.
Modify the visual appearance of plugin by exploring the data\PKD_SimpleQuestsSystem
folder.
This plugin does not include any plugin commands.