34 lines
797 B
Plaintext
34 lines
797 B
Plaintext
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
object oTarget;
|
||
|
object oSpawn;
|
||
|
location lTarget;
|
||
|
int nInt;
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_SPn_Sklyr");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ladysirene", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
AssignCommand(oTarget, ActionStartConversation(oPC, ""));
|
||
|
oTarget = GetObjectByTag("Lyra");
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_BLOOD_CRT_RED), oTarget);
|
||
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_BLOOD_CRT_RED), GetLocation(oTarget));
|
||
|
|
||
|
DestroyObject(oTarget, 3.0);
|
||
|
|
||
|
}
|
||
|
|