Lankhmar_PRC8/_module/nss/cnv_kree1_speak.nss

34 lines
1019 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
object oTarget;
object oSpawn;
object oActor;
// Have "Kree1" say something.
AssignCommand(GetObjectByTag("Kree1"), SpeakString("Take your payment and begone, Kels."));
// Destroy an object (not fully effective until this script ends).
DelayCommand(0.0, DestroyObject(GetObjectByTag("Kels2_chair")));
oTarget = GetWaypointByTag("WP_SPn_kels2_chair2");
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "kels2_chair2", GetLocation(oTarget));
// Have "Kels2" perform a sequence of actions.
oActor = GetObjectByTag("Kels2");
AssignCommand(oActor, ClearAllActions());
// Have "Kels2" perform a sequence of actions.
oActor = GetObjectByTag("Kels2");
AssignCommand(oActor, ActionMoveToObject(GetNearestObjectByTag("kersdoor")));
// Destroy an object (not fully effective until this script ends).
DelayCommand(4.0, DestroyObject(GetObjectByTag("Kels2")));
}