RemoveJournalQuestEntry(string, object, int, int)

Removes a journal quest entry from a PCs journal.

void RemoveJournalQuestEntry(
    string sPlotID,
    object oCreature,
    int bAllPartyMembers = TRUE,
    int bAllPlayers = FALSE
);

Parameters

sPlotID

The tag for the quest as used in the toolset's Journal Editor.

oCreature

The PC.

bAllPartyMembers

If this is TRUE, the entry will be removed from the journal of everyone in the party. (Default: TRUE)

bAllPlayers

If this is TRUE, the entry will be removed from the journal of everyone in the world. (Default: FALSE)


Description

Function will remove all entries from the category specified (sPlotID) from the 'Quests' tab or 'Completed Quests' tab in the player's journal. Gives no feedback to player.



Remarks

Clears the local integer variable

"NW_JOURNAL_ENTRY" + sQuestTag

where sQuestTag is the tag for the quest, same as sPlotID. This local variable normally holds the ID for the current entry for the specified quest.


Version

1.61

Example

void main()
{
    //Remove the quest with tag 'Quest001' from just the PC    
    //involved in this conversation 
    object oPC = GetPCSpeaker();
    RemoveJournalQuestEntry("Quest001",oPC,FALSE);
}

See Also

functions: AddJournalQuestEntry
categories: Journal Functions


 author: Jody Fletcher, editor: Grimlar