generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
28
_module/nss/xparcherytarget.nss
Normal file
28
_module/nss/xparcherytarget.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
#include "nw_i0_tool"
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 1.5
|
||||
|
||||
For download info, please visit:
|
||||
http://www.lilacsoul.revility.com */
|
||||
|
||||
//Can go OnDamaged, OnDisturbed, OnSpellCastAt, creature heartbeats, etc.
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastHostileActor();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (!(GetHitDice(oPC) <= 5))
|
||||
return;
|
||||
|
||||
ActionAttack(GetObjectByTag("ArcheryTarget"));
|
||||
|
||||
if (GetXP(oPC) >= 15000){
|
||||
SendMessageToPC(oPC, "You feel you are now ready for other challenges");
|
||||
}
|
||||
else {
|
||||
RewardPartyXP(40, oPC, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user