I've got a script on a a player alias in a Start Game Enabled quest. The relevant part is the OnLocationChange. All properties are set, the alias is filled, and yet the global never changes:
Scriptname CYRBrumaMS04PlayerAliasScript extends ReferenceAlias ReferenceAlias Property RenodLute Auto Location Property CYRCapstoneCaveLocation Auto Faction Property BanditsLikePlayer Auto Faction Property PlayerFaction Auto Location Property JerallViewInnLocation Auto GlobalVariable Property JerallViewEntered Auto{Number of times Jerall View has been entered, only counts to 2}Event OnInit() AddInventoryEventFilter(RenodLute.GetReference())EndEventEvent OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) If akItemReference == RenodLute.GetReference() GetOwningQuest().SetStage(140) EndIf EndEventEvent OnPlayerLoadGame() (GetOwningQuest() as CYRBrumaMS04Script).Maintenance()EndEventEvent OnLocationChange(Location akOldLoc, Location akNewLoc) If akNewLoc == CYRCapstoneCaveLocation BanditsLikePlayer.SetEnemy(PlayerFaction) ElseIf akNewLoc == JerallViewInnLocation && JerallViewEntered.Value != 2.0 JerallViewEntered.Mod(1.0) EndIfEndEvent
I've tried debug.notifications just inside the event but they never fire.