generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
34
_module/nss/xpdummy.nss
Normal file
34
_module/nss/xpdummy.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
//Script edited by luni@luukku.com
|
||||
|
||||
#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("CombatDummy"));
|
||||
|
||||
// Reward PC with 40xp if not yet enough XP for lvl 6,
|
||||
// After that xp will not be rewarded, message instead.
|
||||
|
||||
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