//::///////////////////////////////////////////////
//:: FileName dlg_plott_03b
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 17-9-2015 15:57:33
//:://////////////////////////////////////////////
#include "pqj_inc"
void main()
{
// Give the speaker some gold
GiveGoldToCreature(GetPCSpeaker(), 150);
// Give the speaker some XP
GiveXPToCreature(GetPCSpeaker(), 200);
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "letter");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Set the variables
SetLocalInt(GetPCSpeaker(), "iLoveQuest", 200);
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Update the player's journal.
AddPersistentJournalQuestEntry("LOVE", 3, oPC, FALSE);
}