27 lines
484 B
Plaintext
27 lines
484 B
Plaintext
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
object oSelf = OBJECT_SELF;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Give 5 experience (to party) to the PC.
|
|
GiveXPToAll(oPC, 5);
|
|
|
|
oTarget = GetObjectByTag("modln1");
|
|
|
|
AssignCommand(oPC, SetFacingPoint(GetPosition(oTarget)));
|
|
|
|
DelayCommand(2.0, SetCutsceneMode(oPC, FALSE));
|
|
|
|
// Destroy an object (not fully effective until this script ends).
|
|
DelayCommand(3.0, DestroyObject(oSelf));
|
|
|
|
}
|
|
|