My offending AR6700.bcs code snippet with CTD-guarantee:
IF
OnCreation()
THEN
RESPONSE #100
Explore()
Continue()
END
IF
Global("BGTNPC6700","GLOBAL",0)
Level(Player1,1)
THEN
RESPONSE #100
SetGlobal("BGTNPC6700","GLOBAL",1)
CreateCreature("Garric",[2504.2270],5) // Garrick
END
IF
Global("BGTNPC6700","GLOBAL",0)
OR(2)
Level(Player1,2)
Level(Player1,3)
THEN
RESPONSE #100
SetGlobal("BGTNPC6700","GLOBAL",1)
CreateCreature("GARRIC2",[2504.2270],5) // Garrick
END
IF
Global("BGTNPC6700","GLOBAL",0)
OR(2)
Level(Player1,4)
Level(Player1,5)
THEN
RESPONSE #100
SetGlobal("BGTNPC6700","GLOBAL",1)
CreateCreature("GARRIC4",[2504.2270],5) // Garrick
END
IF
Global("BGTNPC6700","GLOBAL",0)
LevelGT(Player1,5)
THEN
RESPONSE #100
SetGlobal("BGTNPC6700","GLOBAL",1)
CreateCreature("GARRIC6",[2504.2270],5) // Garrick
END
IF
Global("Chapter","GLOBAL",4)
Global("ElminsterSpawn","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("ElminsterSpawn","GLOBAL",1)
CreateCreature("ELMIN2",[4710.3091],0) // Elminster
Continue()
END
IF
OnCreation()
Global("Chapter","GLOBAL",4)
Global("ChloeSpawn","GLOBAL",0)
!Exists("Chloe")
!Dead("Chloe") // Chloe
THEN
RESPONSE #100
SetGlobal("ChloeSpawn","GLOBAL",1)
CreateCreature("CHLOE",[4127.2881],0) // Chloe
Continue()
END
After moving the bolded part to the bottom I had no problems entering Beregost. The first OnCreation() is from BGT-Tweaks the remainder of the script is vanilla BGT. That was with BGT 1.05 and BGT-Tweak V7 but from what I could see in base\baf\ar6700.baf it's still a problem in 1.06
Scrap that. This code has no problems but the involved cre-files have BIG problems. Could someone move this thread to megamod help where it now rightfully belongs?
After removing the bolded parts I got into Beregost but that was only a removal of the symptoms of the true problem. Because as soon as it got to that bolded block of code it tried to create some really weird creatures.
garric.cre is okay but every other version of Garrick is weird to say the least.
Mods affecting GARRIC2.CRE:
00000: /* from game biffs */ ~SETUP-BGT.TP2~ 0 0 // Baldur's Gate Trilogy - Core 1.05b
00001: /* from game biffs */ ~SETUP-SCS.TP2~ 0 120 // Smarter general AI
00002: ~SETUP-SCS.TP2~ 0 160 // Smarter mages
00003: ~SCSII/SETUP-SCSII.TP2~ 0 4040 // Prevent party members from dying irreversibly
00004: ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ 0 3010 // For All Creatures in Game
00005: ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ 0 4020 // ToB-Style NPCs
00006: ~P5TWEAKS/SETUP-P5TWEAKS.TP2~ 0 20 // Drop Items on Disintegration
Instead of Weapon Proficiencies they've (garric2,4,6) got an attacks per round bonus which is totally messed up, moreover there's a bonus to AC which is equally weird.
For those interested in wacky cre-files I've attached them
10th
Attached Files
Edited by 10th, 10 August 2008 - 06:18 AM.