Further file organization
Further file organization
This commit is contained in:
14
nwn/nwnprc/trunk/scripts/prc_ai_con_spawn.nss
Normal file
14
nwn/nwnprc/trunk/scripts/prc_ai_con_spawn.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("nw_ch_acani9", OBJECT_SELF);
|
||||
//lootable, but not ressurectable
|
||||
SetLootable(OBJECT_SELF, TRUE);
|
||||
SetIsDestroyable(FALSE, FALSE, TRUE);
|
||||
//fix attack count
|
||||
int nNumber = GetLocalInt(OBJECT_SELF,CREATURE_VAR_NUMBER_OF_ATTACKS);
|
||||
if (nNumber >0 )
|
||||
{
|
||||
SetBaseAttackBonus(nNumber);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user