I tried declaring the global variable as a property and then calling GetValue() on it (http://www.creationkit.com/Global#Scripting), but for some reason the script from Mod A always access the value of _sycUninstallCCO from Mod A ("0"), instead of the value from Mod B ("1"). Funny thing is that when I type the showvars command in the console _sycUninstallCCO == 1.
Any help would be appreciated. Here is my script from ModA:
ScriptName _sycMaintenanceRefAliasScript extends ReferenceAlias; This script must be attached to the Player Alias defined in the Quest Alias tab of a Quest; Declare Variables and Properties_sycMainQuestScript Property _sycMainQuest Auto ; This points the property to the appropriate quest scriptGlobalVariable Property _sycUninstallCCO AutoFloat fUninstallCCOEvent OnInit()Debug.MessageBox("_sycMaintenanceRefAliasScript OnInit Fired")GoToState("Maintenance")EndEventEvent OnPlayerLoadGame()Debug.MessageBox("_sycMaintenanceRefAliasScript OnPlayerLoadGame Fired")GoToState("Maintenance")EndEventState MaintenanceEvent OnBeginState() fUninstallCCO = _sycUninstallCCO.GetValue() Debug.MessageBox("fUninstallCCO = " + fUninstallCCO) If fUninstallCCO == 1 Debug.MessageBox("Uninstall Successful") _sycMainQuest.UninstallCCO() Else _sycMainQuest.VersionControl() _sycMainQuest.Maintenance() EndIfEndEventEndState