MV SOLVED - Quest Journal: getting quest titles

Hi, everybody.

I'm trying to automatically create Gab Windows when quests or objectives are completed. For reference, I'm doing this through script execution in the Lunatic Mode of Quest Journal System, directly in its plugin settings.

What I need to do is to get a quest title using its ID (the only information the settings let me get) so that I can display it in a Gab, then I just have to use the ShowGab command to show something like "New quest: \I[2] Quest" on screen.

Can somebody help me find a way to get that string? Thanks in advance.

EDIT: What I've got going on at the moment for a quest added script:
JavaScript:
var cmd = new Game_Interpreter();
var line = 'New quest: ' + questId;
cmd.pluginCommand('GabText', [line]);
cmd.pluginCommand('ShowGab');
When quest number 1 is added, a Gab window automatically shows up displaying "New quest: 1". I want to turn that 1 into the actual title of the quest.

EDIT 2: Solved! $dataQuests[questId].name returns the exact same string you entered in the quest journal's plugin settings. Here's what I have when I add a new quest to the journal:
JavaScript:
var cmd = new Game_Interpreter();
var line = 'New quest: ' + $dataQuests[questId].name;
cmd.pluginCommand('GabText', [line]);
cmd.pluginCommand('ShowGab');
Text codes work as intended.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-quest-journal-getting-quest-titles.129986/