Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Neverwinter Nights: Enhanced Edition has been released! Visit nwn.beamdog.com to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

SARVIE01 is using a wrong allegiance check

CrevsDaakCrevsDaak Member Posts: 7,081
edited August 2014 in Not An Issue
When WeiDU tries to re-compile the script, it fails to because ANYONE isn't accepted as an allegiance in the script, which says the following:
IF
Allegiance(Myself,ANYONE)
HasItem("minhp1",Myself) // No such index
THEN
RESPONSE #100
DestroyItem("minhp1") // No such index
END

IF
OR(7)
SpellCastPriest([ANYONE],CLERIC_CLOAK_OF_FEAR) // SPPR416.SPL (Cloak of Fear)
SpellCastPriest([ANYONE],CLERIC_SYMBOL_FEAR) // SPPR706.SPL (Symbol, Fear)
SpellCast([ANYONE],WIZARD_HORROR) // SPWI205.SPL (Horror)
SpellCast([ANYONE],WIZARD_SYMBOL_FEAR) // SPWI811.SPL (Symbol, Fear)
SpellCastOnMe([ANYONE],CLERIC_SYMBOL_FEAR) // SPPR706.SPL (Symbol, Fear)
SpellCastOnMe([ANYONE],WIZARD_HORROR) // SPWI205.SPL (Horror)
SpellCastOnMe([ANYONE],WIZARD_SYMBOL_FEAR) // SPWI811.SPL (Symbol, Fear)
Global("ViekangBye","LOCALS",0)
THEN
RESPONSE #100
SetGlobal("ViekangBye","LOCALS",1)
StartDialogueNoSet([PC])
END
A simple WeiDU fix would be:
COPY_EXISTING ~SARVIE01.BCS~ ~override~
DECOMPILE_AND_PATCH BEGIN
REPLACE_TEXTUALLY ~Allegiance(Myself,ANYONE)~ ~Allegiance(Myself,NEUTRAL)~
END
BUT_ONLY

Post edited by Jalily on

Comments

Sign In or Register to comment.