Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2022-10-07 14:20:31 -04:00
parent 0bbbd2678a
commit 128e7e59a4
7060 changed files with 4955665 additions and 0 deletions

25
module/nss/puzzle.nss Normal file
View File

@@ -0,0 +1,25 @@
#include "nw_i0_tool"
void main()
{
object oPlayer = GetPCSpeaker();
object ped = GetObjectByTag("queen1");
object crest = GetItemPossessedBy(oPlayer, "HouseDeNatCrest");
int puz = GetLocalInt(ped, "puzzle");
if(HasItem(oPlayer, "HouseDeNatCrest") && puz == 0){
DestroyObject(crest);
SetLocalInt(ped,"puzzle",1);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_LOS_EVIL_30), ped, 3.0);
}
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);
}
}