WizardryEE/Module/nss/lvl10_msg02.nss

23 lines
597 B
Plaintext
Raw Normal View History

void main()
{
object oActor;
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Only fire once per PC.
if ( GetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF)) )
return;
SetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
// Have "LVL10_MSG02" strike up a conversation with the PC.
oActor = GetNearestObjectByTag("LVL10_MSG02", oPC);
AssignCommand(oActor, ActionStartConversation(oPC, "", FALSE, FALSE));
}