PoA_PRC8/_module/nss/puzzle4.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

25 lines
769 B
Plaintext

#include "nw_i0_tool"
void main()
{
object oPlayer = GetPCSpeaker();
object oDoor = GetObjectByTag("palaceentrance");
object ped = GetObjectByTag("queen1");
object crest = GetItemPossessedBy(oPlayer, "HouseGuratszCrest");
int puz = GetLocalInt(ped, "puzzle");
if(HasItem(oPlayer, "HouseGuratszCrest") && puz == 3){
SetLocalInt(ped,"puzzle",0);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_LOS_EVIL_30), ped, 3.0);
DestroyObject(crest);
AssignCommand(oDoor, ActionOpenDoor(oDoor));
}
else{
SetLocalInt(ped, "puzzle", 0);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWSTUN), ped);
ApplyEffectToObject(DURATION_TYPE_INSTANT, SupernaturalEffect(EffectDeath(TRUE,TRUE)), oPlayer);
DestroyObject(crest);
}
}