38 lines
674 B
Plaintext
38 lines
674 B
Plaintext
|
#include "nw_i0_generic"
|
||
|
/* Script generated by
|
||
|
Lilac Soul's NWN Script Generator, v. 1.6
|
||
|
|
||
|
For download info, please visit:
|
||
|
http://www.lilacsoul.revility.com */
|
||
|
|
||
|
//Put this OnDeath
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetLastKiller();
|
||
|
|
||
|
while (GetIsObjectValid(GetMaster(oPC)))
|
||
|
{
|
||
|
oPC=GetMaster(oPC);
|
||
|
}
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
object oTarget;
|
||
|
oTarget = GetObjectByTag("tguard");
|
||
|
|
||
|
AdjustReputation(oPC, oTarget, -100);
|
||
|
|
||
|
oTarget = GetObjectByTag("tguard");
|
||
|
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
AssignCommand(GetObjectByTag("tguard"), ActionSpeakString("Stop thief"));
|
||
|
|
||
|
}
|
||
|
|