25 lines
769 B
Plaintext
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);
|
|
}
|
|
}
|