Skip to content

Apparent Script Error Re: Dorn Random Encounter

Game Version: 2.6.5 (I have not checked other versions)

TL;DR - After speaking to Dorn, the probability of random encounters is not reset to default values.

AR2301.BCS (Friendly Arm, level 1):
IF
	Global("DORNPLOT","GLOBAL",1)
	Global("ENCOUNTERSET","AR2301",1)  // Friendly Arm Inn, ground floor (Bentley Mirrorshade, Khalid, Jaheira)
	OR(2)
		Dead("DORN")  // Dorn
		HPLT("DORN",1)  // Dorn
THEN
	RESPONSE #100
		SetGlobal("ENCOUNTERSET","AR2301",0)  // Friendly Arm Inn, ground floor (Bentley Mirrorshade, Khalid, Jaheira)
		SetEncounterProbability("AR4800","AR5400",0)  // Nashkel (Minsc, Edwin, Berrun Ghastkill, Belching Dragon, Temple of Helm)
		SetEncounterProbability("AR4900","AR5400",0)  // Nashkel Carnival (Branwen, Great Gazib)
		SetEncounterProbability("AR5300","AR5400",0)  // Fire Leaf Forest (S of Nashkel, Albert, Rufie, Vax, Sendai)
		SetEncounterProbability("AR5500","AR5400",0)  // Gibberling Mountains (Samuel, Hafiz)
END

This triggers when (a) you have spoken to Dorn, causing the Senjack/Dorotea random encounter in OH1000 with 100% probability when travelling to AR5400 (Nashkel Mines), or with normal probability when travelling to any other area after Chapter 2; and (b) Dorn dies in the Friendly Arm Inn before the Senjack/Dorotea random encounter.

Expected behaviour: Probability of a random encounter when travelling to AR5400 is reset to the default value for the appropriate travel links on the World Map.

Actual behaviour: Probability of a random encounter when travelling to AR5400 is set to 0%, so the player will never get any random encounters when travelling to AR5400.

There is a similar, although less impactful, issue in the area scripts for OH1000 AND ALSO all of the random encounter area scripts. I'll quote the script in OH1000 only, although it is the same in other areas:

OH1000.BCS (Dorn - Random Encounter Area) + AR5600, and other such areas:
IF
	GlobalTimerExpired("oh_dorn_abmush","GLOBAL")
	GlobalGT("chapter","GLOBAL",2)
	Global("SenjackExists","GLOBAL",0)
	HasDLC("DORN")
	Global("DORNPLOT","GLOBAL",1)
	!Dead("DORN")  // Dorn
THEN
	RESPONSE #100
		StartRainNow()
		TriggerActivation("Trigger Point 1",FALSE)
		SetEncounterProbability("AR4900","AR5400",20)  // Nashkel Carnival (Branwen, Great Gazib)
		SetEncounterProbability("AR5300","AR5400",20)  // Fire Leaf Forest (S of Nashkel, Albert, Rufie, Vax, Sendai)
		SetEncounterProbability("AR5500","AR5400",20)  // Gibberling Mountains (Samuel, Hafiz)
		SetEncounterProbability("AR4800","AR5400",20)  // Nashkel (Minsc, Edwin, Berrun Ghastkill, Belching Dragon, Temple of Helm)
		MoveGlobalObject("dorn",Player1)  // Dorn
		ActionOverride("dorn",JumpToPoint([96.194]))
		SetGlobal("SenjackExists","GLOBAL",1)
		SetGlobal("DORN_AMBUSH","GLOBAL",1)
....
END

This triggers when (a) you have spoken to Dorn, causing the Senjack/Dorotea random encounter as described above; and (b) the encounter is being set up.

Expected behaviour: Probability of a random encounter when travelling to AR5400 is reset to the default value for the appropriate travel links on the World Map.

Actual behaviour: Probability of a random encounter when travelling to AR5400 is set to 20% for all 4 of the listed areas, even though the default % for AR5300 to AR5400 is 30%.

My comments are made on the basis of reading the script, rather than in-game testing. I apologize if I've somehow misunderstood something, and the script in fact works as intended.

Comments

Sign In or Register to comment.