Hi casper, I love your plugins but I have a question. I'm trying to make a repeatable quest and so I want to have an event reset the status of the quest to the first stage. I'm guessing I should do this via script call, but I don't know what function to call. Is there documentation out there somewhere that lists all the functions you can call via javascript? Or is there some way to do this via plugin commands? Thank you for any help you can provide.
Viewing post in [CGMZ] Quest System for RPG Maker MZ comments
Hi, this plugin does not yet support repeatable quests but if you wanted to manually do it the js would be:
const name = "Your Quest Name Here" // only change this line
const quest = $cgmz.getQuest(name);
quest._isDiscovered = false;
quest._isStarted = false;
quest._isCompleted = false;
quest._isFailed = false;
quest._isUpdated = false;
quest._completionDate = "";
quest._objectiveProgress = {};
quest._objectivesCompleted = {};
quest._stage = 1;
quest.unpin();
$cgmzTemp.checkAutoTrackingForQuest(name);