enderalse/source/scripts/_00e_cqj02_playersc.psc

33 lines
925 B
Plaintext
Raw Normal View History

Scriptname _00E_CQJ02_PlayerSC Extends ReferenceAlias
Event OnInit()
If CQJ02.GetStage() == 5 && !bDone
Actor Player = Game.GetPlayer()
If (Player.GetCurrentLocation() == CapitalCityLocation || Player.GetCurrentLocation() == _00E_SuntempleLocation) && (!Player.GetWorldspace() != Akropolis && !(Player.IsInInterior()))
CQJ02.SpawnMessengerKid()
bDone = True
EndIf
EndIf
EndEvent
Event OnLocationChange(Location akOldLoc, Location akNewLoc)
If CQJ02.GetStage() == 5 && !bDone
Actor Player = Game.GetPlayer()
If (akNewLoc == CapitalCityLocation || akNewLoc == _00E_SuntempleLocation) && (Player.GetWorldspace() != Akropolis && !(Player.IsInInterior()))
CQJ02.SpawnMessengerKid()
bDone = True
EndIf
EndIf
EndEvent
bool bDone
Location Property CapitalCityLocation Auto
Location Property _00E_SuntempleLocation Auto
Worldspace Property Akropolis Auto
_00E_CQJ02_Functions Property CQJ02 Auto