2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_PlayerHousing_CellNameSC extends ReferenceAlias
|
2024-01-05 11:40:50 +00:00
|
|
|
{controls the names of the player houses, and the name of the rhalata temple}
|
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnPlayerLoadGame()
|
2024-02-15 09:55:12 +00:00
|
|
|
; Not calling TextInputEnabled() in case renames were made with keyboard earlier
|
2024-02-08 16:51:59 +00:00
|
|
|
if ! SKSE.GetVersion()
|
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
If sHouseNobleQuarterName != ""
|
|
|
|
CapitalCityPlayerHouseUpper.SetName(sHouseNobleQuarterName)
|
|
|
|
Else
|
2024-01-05 11:40:50 +00:00
|
|
|
if CapitalCityPlayerHouseUpper.GetActorOwner() == (GetReference() as Actor).GetActorBase()
|
2021-10-05 22:15:58 +00:00
|
|
|
CapitalCityPlayerHouseUpper.SetName(_00E_sPlayerHouseNobleQuarterName.GetName())
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
If sHouseMarketQuarterName != ""
|
|
|
|
CapitalCityPlayerhouse.SetName(sHouseMarketQuarterName)
|
|
|
|
Else
|
2024-01-05 11:40:50 +00:00
|
|
|
If CapitalCityPlayerhouse.GetActorOwner() == (GetReference() as Actor).GetActorBase()
|
2021-10-05 22:15:58 +00:00
|
|
|
CapitalCityPlayerhouse.SetName(_00E_sPlayerHouseMarketQuarterName.GetName())
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
2024-01-05 11:40:50 +00:00
|
|
|
If FS_NQR03.GetCurrentStageID() >= 35
|
2021-10-05 22:15:58 +00:00
|
|
|
FS_NQR03_RhalataTemple.SetName(_00E_sRhalataTempleName.GetName())
|
|
|
|
EndIf
|
2024-01-05 11:40:50 +00:00
|
|
|
EndEvent
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
string Property sHouseMarketQuarterName Auto
|
|
|
|
string Property sHouseNobleQuarterName 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
|
2024-01-05 11:40:50 +00:00
|
|
|
Quest Property FS_NQR03 Auto
|