44 lines
817 B
Plaintext
44 lines
817 B
Plaintext
#include "nw_i0_generic"
|
|
|
|
void main()
|
|
{
|
|
object oChair=OBJECT_SELF;
|
|
AssignCommand(GetLastUsedBy(),ActionSit(oChair));
|
|
|
|
|
|
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 1.2
|
|
|
|
For download info, please visit:
|
|
http://www.angelfire.com/space/lilacsoul */
|
|
|
|
|
|
object oPC = GetLastUsedBy();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (!(GetHitDice(oPC) >= 19))
|
|
return;
|
|
|
|
object oTarget;
|
|
object oSpawn;
|
|
oTarget = GetWaypointByTag("Dragon5");
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_drggreen002", GetLocation(oTarget));
|
|
|
|
oTarget = oSpawn;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
oTarget = oSpawn;
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), GetLocation(oTarget));
|
|
|
|
}
|
|
|