Jump to content
Sign in to follow this  
Ardanis

bug in fixed ar1600.bcs

Recommended Posts

I've seen this problem years ago with Baldurdash but didn't bother to investigate. Now, it happened with FP as well, so measures were taken.

 

// bynnlaw initial vamp fight should check for non-existence not dead
COPY_EXISTING ~ar1600.BCS~ ~override~
 DECOMPILE_BCS_TO_BAF
REPLACE_TEXTUALLY ~Dead("\(ppvalen\|ppparis\|ppdel\)")~
				  ~!Exists("\1")~
 COMPILE_BAF_TO_BCS

 

The block in question in reality is

IF
 Dead("ppvalen")  // ~Valen~
 Dead("ppparis")  // ~Parisa~
 Dead("ppdel")  // ~Del~
 OR(2)
Global("AsylumPlot","GLOBAL",3)
Global("AsylumPlot","GLOBAL",4)
THEN
 RESPONSE #100
SetGlobal("AsylumPlot","GLOBAL",5)
ActionOverride("uhostile",DestroySelf())
END

it becomes always true when siding with Bodhi - those vampires !exist because they didn't spawn in the first place. As a result, Saemon skips his speech near the tavern (after which he's supposed to get back to the ship) and keeps saying 'Having troubles?', remaining at the tavern along the way.

 

This global governs allegiance to either Aran or Bodhi - ThiefGroup. At 1 it's with Aran, at 2 it's with Bodhi.

 

Should fix the problem

// bynnlaw initial vamp fight should check for non-existence not dead - uglier
COPY_EXISTING ~ar1600.BCS~ ~override~
 DECOMPILE_BCS_TO_BAF
REPLACE_TEXTUALLY ~Dead("\(ppvalen\|ppparis\|ppdel\)")~
~Global("ThiefGroup","global",1)
 !Exists("\1")~
 COMPILE_BAF_TO_BCS

Or maybe

// bynnlaw initial vamp fight should check for non-existence not dead - longer
COPY_EXISTING ~ar1600.BCS~ ~override~
 DECOMPILE_BCS_TO_BAF
REPLACE_TEXTUALLY ~Dead("ppvalen")
 Dead("ppparis")
 Dead("ppdel")~
~Global("ThiefGroup","global",1)
 !Exists("ppvalen")
 !Exists("ppparis")
 !Exists("ppdel")~
 COMPILE_BAF_TO_BCS

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...