Battledale_PRC8/_module/nss/gz_pkeg_damaged.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

20 lines
351 B
Plaintext

void main()
{
int nArmed=GetLocalInt(OBJECT_SELF,"armed");
if (nArmed==0)
{
return;
}
if (GetDamageDealtByType(DAMAGE_TYPE_FIRE) > 0)
{
ExecuteScript("gzcs_pkeg_ignite",OBJECT_SELF);
} else
if (d100()<21) // 20 % chance to blow it up
{
ExecuteScript("gz_pkeg_detonate",OBJECT_SELF);
}
}