Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Script me_acquireitem

void main()
{

// variable declarations

object oPC; // the PC that acquires the item
object oItem; // the item that was acquired

// get the item that was acquired

oItem = GetModuleItemAcquired();

// if this item is a valid object

if (GetIsObjectValid(oItem) == TRUE)
{

// if the valid item's tag is "it_RingJacen"

if (GetTag(oItem) == "it_RingJacen")
{

// get the PC that acquired the item

oPC = GetItemPossessor(oItem);

// on the PC, set the journal with the tag "jt_Falstadd"
// to its second entry

AddJournalQuestEntry("jt_Falstadd", 2, oPC);

} // if

} // if

}

Script at_falstadd03

void main()
{

// variable declarations

int iXP;

// determine how much experience this quest awards

iXP = GetJournalQuestExperience("jt_Falstadd");

// give the speaker some XP

GiveXPToCreature(GetPCSpeaker(), iXP);

}