DA2 Import Fixes v1.0
=====================
By Monochrome Wench

Project: http://social.bioware.com/project/4364/

About:

This is a mod that changes the behaviour of Dragon Age 2 when determining various relationship flag states of an imported Dragon Age 1 savegame. It aims to ensure if a player was in a relationship with a party member in Dragon Age 1, the Dragon Age 2 plot flags in will properly reflect it.

There are a few reason why Dragon Age 2 doesn't always properly reflect Dragon Age Origins relationship states. The main cause is because vanillia Dragon Age 2 behaviour checks party member approval ratings to determine if the warden was in a relationshop. However save games from Dragon Age 1 DLCs (including Awakenings) are unlikely to have the party approval ratings in them. This consequently causes all relationship flags to be set false. 

This mod changes the checks used by Dragon Age 2 so the approval flags are no longer trusted to be correct when determining relationship state.  In version 1.0 the mod attempts to check if the approval value is infact valid before checking it. If its not valid then the check is effectively bypassed. The check to see if the flag is valid is done by checking the characters level value. If the level value is zero and the approval is zero the assumption is that information is missing from the savegame and the approval value is invalid.

Additionally this mod also fixes some bugs in the Dragon Age 2 gen00pt_vault script.

There is one caveat. Removing the approval rating checks means that in the case where the wardens was in an relationship with a character and the approval level had dropped below the required threshold, the romance will be reported as being active even though it shouldn't. As far as I am concerned this is better behaviour than what vanilla DA2 does. This is only an issue for DLC savegames that stripped out the approval values. If wanted approval value can be added back into a the DA2 savegames world vault manually if the automatic pass behaviour is not desired.

Note: The Leliana slept with Isabela flag is misreported by zz_vault_debug because of an error in the tlk. Both the tlk entires for this flag are "Leliana slept with Isabela". TLK Entry 6203290 is the problem. The flag checking in the code is correct.

How To Install:

Place mw_import_fix.erf into your "~\My Documents\Bioware\Dragon Age 2\packages\core\override" folder. If the folder doesn't exist create it.

Version History:

1.0
* Nathaniel left the wardens check updated. The following logic is used:
  if (Nathaniel not friendly eligable) then Nathaniel left the wardens
  if (approval <= 75 && (approval != 0 || level != 0)) then Nathaniel left the wardens
  if (Nathaniel died in warden keep) then Nathaniel left the wardens  
* The player romanced Alistair, Leliana, Morrigan and Zeveran checks updated. The following logic is used:
  if (approval <= 90 && (approval != 0 || level != 0)) then not in romance
  if (if romance flag is not set in worldvalue) then not in romance
* Made love to Morrigan check fixed so it actually checks to value from the worldvault.
* Alternative The player romanced Alistair and Zeveran checks 'fixed'. It appears the intent of these
  checks was to see if romance flag was set without checking approval too. I've fixed the problem in
  these checks assuming approval shouldn't also be checked.

0.1
* Removed approval check for Leliana Romance flag
* Fixed broken Made Love to Leliana flag

