Lankhmar_PRC8/_module/nss/approach_alyx3.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

24 lines
576 B
Plaintext

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;
// Have "Alyx2" perform a sequence of actions.
oActor = GetObjectByTag("Alyx2");
DelayCommand(0.5, AssignCommand(oActor, ActionJumpToObject(oPC)));
// Have "Alyx2" strike up a conversation with the PC.
oActor = GetNearestObjectByTag("Alyx2", oPC);
DelayCommand(1.0, AssignCommand(oActor, ActionStartConversation(oPC)));
}