enderalse/source/scripts/_00e_playerhousing_cellnamesc.psc

50 lines
1.7 KiB
Plaintext
Raw Normal View History

Scriptname _00E_PlayerHousing_CellNameSC extends ReferenceAlias
{controls the name of the player house, the name of the rhalata temple and also contains a mannequin failsafe}
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnPlayerLoadGame()
resetName()
EndEvent
Function resetName()
If sHouseNobleQuarterName != ""
CapitalCityPlayerHouseUpper.SetName(sHouseNobleQuarterName)
Else
if CapitalCityPlayerHouseUpper.GetActorOwner() == Player
CapitalCityPlayerHouseUpper.SetName(_00E_sPlayerHouseNobleQuarterName.GetName())
EndIf
EndIf
If sHouseMarketQuarterName != ""
CapitalCityPlayerhouse.SetName(sHouseMarketQuarterName)
Else
If CapitalCityPlayerhouse.GetActorOwner() == Player
CapitalCityPlayerhouse.SetName(_00E_sPlayerHouseMarketQuarterName.GetName())
EndIf
EndIf
If FS_NQR03.GetStage() >= 35
FS_NQR03_RhalataTemple.SetName(_00E_sRhalataTempleName.GetName())
EndIf
Endfunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
string Property sHouseMarketQuarterName Auto
string Property sHouseNobleQuarterName Auto
ActorBase Property Player Auto
Message Property _00E_sPlayerHouseMarketQuarterName Auto
Message Property _00E_sPlayerHouseNobleQuarterName Auto
Message Property _00E_sRhalataTempleName Auto
Cell Property CapitalCityPlayerHouseUpper Auto
Cell Property CapitalCityPlayerhouse Auto
Cell Property FS_NQR03_RhalataTemple Auto
Quest Property FS_NQR03 Auto