hello,
Can anyone help, or give some pointers on how I can make a repeatable quest using the persistent quest journal system?
I have 12 or so working quests so far, but i’d like to make 1 or 2 additional quests that are repeatable with journal updates using pqj.
Maybe have players tasked with killing a monster x amount of times…
Any help would be great.
dont use PQJ for those
just use vanilla AddJournalQuestEntry function instead and that is it
1 Like
Got it working with that function, just a fetch quest though… not what i wanted initially, but it’s repeatable.
Thanks.
Using PQJ when you want the quest to start over you just need to remove the quest and restart it
//SendMessageToPC(oPC, "Resetting Quest");
RemovePersistentJournalQuestEntry(szPlotID,oPC,TRUE,FALSE);
SetLocalInt(oMod,"NW_JOURNAL_ENTRY"+szPlotID,0);
nQuestStatus =0;
hey, not sure if i have the code right but this is working to reset the quest. Commented out the last line 'cause it wouldn’t compile… seems to work now. Thank ya!
void main()
{
object oPC = GetLastSpeaker();
object oMod = GetModule();
SendMessageToPC(oPC, "Resetting Quest...");
RemovePersistentJournalQuestEntry("MYQUEST",oPC,FALSE,FALSE);
SetLocalInt(oMod,"NW_JOURNAL_ENTRY"+"MYQUEST",0);
//nQuestStatus =0;
}
1 Like