29 lines
596 B
Plaintext
29 lines
596 B
Plaintext
|
|
||
|
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));
|
||
|
}
|
||
|
|