24 lines
584 B
Plaintext
24 lines
584 B
Plaintext
|
|
#include "nw_i0_generic"
|
|
|
|
void main()
|
|
|
|
{
|
|
object oTarget;
|
|
object oSpawn;
|
|
effect eVFX;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
SetLocalString(oPC, "bnraxz1", "1");
|
|
|
|
// Spawn "avatarofbainra".
|
|
eVFX = EffectVisualEffect(VFX_IMP_POLYMORPH);
|
|
oTarget = GetWaypointByTag("WP_SPn_bainrasavtr");
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "avatarofbainra", GetLocation(oTarget));
|
|
AssignCommand(oSpawn, DetermineCombatRound(oPC));
|
|
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
|
|
}
|
|
|