Lankhmar_PRC8/_module/nss/approach_nelae2.nss

29 lines
596 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
object oTarget;
ClearAllActions();
oTarget = GetObjectByTag("Nelae2");
object oActor;
// Have "Nelae2" perform a sequence of actions.
oActor = GetObjectByTag("Nelae2");
AssignCommand(oActor, ActionWait(1.5));
AssignCommand(oActor, ActionJumpToObject(oPC));
// Have "Nelae2" strike up a conversation with the PC.
oActor = GetNearestObjectByTag("Nelae2", oPC);
DelayCommand(2.0, AssignCommand(oActor, ActionStartConversation(oPC)));
DelayCommand(3.0, DestroyObject(OBJECT_SELF));
}