Changed folder name.
Changed folder name.
This commit is contained in:
23
_module/nss/puzzle3.nss
Normal file
23
_module/nss/puzzle3.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "nw_i0_tool"
|
||||
void main()
|
||||
{
|
||||
object oPlayer = GetPCSpeaker();
|
||||
|
||||
object ped = GetObjectByTag("queen1");
|
||||
|
||||
object crest = GetItemPossessedBy(oPlayer, "HouseKhuraanCrest");
|
||||
|
||||
int puz = GetLocalInt(ped, "puzzle");
|
||||
|
||||
if(HasItem(oPlayer, "HouseKhuraanCrest") && puz == 2){
|
||||
SetLocalInt(ped,"puzzle",3);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_LOS_EVIL_30), ped, 3.0);
|
||||
DestroyObject(crest);
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user