Battledale_PRC8/_module/nss/px_traplvl1fire.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

16 lines
612 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
if(!GetLocalInt(oPC,"DeTrapped") == 1)
{
if(GetIsPC(oPC) == TRUE)
{
AssignCommand(GetObjectByTag("px_portc_1"),ActionCloseDoor(GetObjectByTag("px_portc_1")));
AssignCommand(GetObjectByTag("px_portc_2"),ActionCloseDoor(GetObjectByTag("px_portc_2")));
AssignCommand(GetObjectByTag("px_trapbones"),ActionCastSpellAtObject(SPELL_ACID_FOG,GetObjectByTag("px_trapbones"),METAMAGIC_EXTEND,TRUE,0,PROJECTILE_PATH_TYPE_DEFAULT,TRUE));
AssignCommand(GetObjectByTag("px_barghestdoor"),ActionOpenDoor(GetObjectByTag("px_barghestdoor")));
SetLocalInt(oPC,"DeTrapped",1);
}
}
}