Skip to content

SARVIE01 is using a wrong allegiance check

CrevsDaakCrevsDaak Member Posts: 7,155
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

  • argent77argent77 Member Posts: 3,476
    edited August 2014
    In BG(2)EE "ANYONE" is a valid identifier listed in EA.IDS, so theoretically the script should compile without complaint. Maybe @Wisp can tell us more about it.
  • JalilyJalily Member Posts: 4,681
    In 1.3, sarvie01 will also use a different allegiance check, so moving to Not An Issue.
  • WispWisp Member Posts: 1,102
    The BAF parser apparently does not like it. I'll look into it.
Sign In or Register to comment.