24 lines
635 B
Plaintext
24 lines
635 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();
|
|
|
|
// 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));
|
|
|
|
// Give the speaker the items
|
|
CreateItemOnObject("bainrasymbol", GetPCSpeaker(), 1);
|
|
|
|
}
|