43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
void main()
|
|
{
|
|
object oSpawn;
|
|
object oTarget;
|
|
effect eVFX;
|
|
object oActor;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// 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).
|
|
|
|
eVFX = EffectVisualEffect(VFX_IMP_POLYMORPH);
|
|
oTarget = GetObjectByTag("Kree1");
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget);
|
|
DestroyObject(oTarget, 3.0);
|
|
|
|
// Spawn "kree2".
|
|
oTarget = GetWaypointByTag("WP_SPn_kree2");
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "kree2", GetLocation(oTarget));
|
|
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
|
|
|
|
// Destroy objects (not fully effective until this script ends).
|
|
DestroyObject(GetObjectByTag("Kree1_chair"));
|
|
DestroyObject(GetObjectByTag("Kels2_chair"));
|
|
|
|
// Spawn some placeables.
|
|
|
|
oTarget = GetWaypointByTag("WP_SPn_kree1_chair2");
|
|
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "kree1_chair2", GetLocation(oTarget));
|
|
|
|
oTarget = GetWaypointByTag("WP_SPn_kels2_chair2");
|
|
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "kels2_chair2", GetLocation(oTarget));
|
|
|
|
// Destroy an object (not fully effective until this script ends).
|
|
DelayCommand(4.0, DestroyObject(GetObjectByTag("Kels2")));
|
|
}
|
|
|