Know what journal entry the PC has

Know what Journal Entry the PC has
There is a variable set each time a PC gets a entry update. This can be checked by adding the entry ID number to the constant NW_JOURNAL_ENTRY.

In the Example script, I check to see if the PC has the Entry Quest_1 with the ID number 25.

void main {   object oPC = GetEnteringObject; string sQuestToken = "Quest_1"; if(GetLocalInt(oPC, "NW_JOURNAL_ENTRY" + sQuestToken) == 25) {       //Do whatever } }

The String sQuestToken can be changed to your Journal Entry name. The next script is an example on how to find out what there last journal entry was.

void main {   object oPC = GetPCSpeaker; string sQuestToken = "Quest_1"; int nEntry = GetLocalInt(oPC, "NW_JOURNAL_ENTRY" + sQuestToken); //Add codeing here }

nEntry will be equal to the last ID number added. This type of thing would be handy during conversations to determine what Text node to display, or what quest Entry ID to add next.