Moved cell name control alias from Levelsystem to a separate quest

This commit is contained in:
Eddoursul 2024-01-05 12:40:50 +01:00
parent bfaa74a02f
commit 323f9c575d
3 changed files with 7 additions and 12 deletions

Binary file not shown.

View File

@ -1,18 +1,15 @@
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}
{controls the names of the player houses, and the name of the rhalata temple}
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnPlayerLoadGame()
resetName()
EndEvent
Function resetName()
If sHouseNobleQuarterName != ""
CapitalCityPlayerHouseUpper.SetName(sHouseNobleQuarterName)
Else
if CapitalCityPlayerHouseUpper.GetActorOwner() == Player
if CapitalCityPlayerHouseUpper.GetActorOwner() == (GetReference() as Actor).GetActorBase()
CapitalCityPlayerHouseUpper.SetName(_00E_sPlayerHouseNobleQuarterName.GetName())
EndIf
EndIf
@ -20,15 +17,15 @@ Function resetName()
If sHouseMarketQuarterName != ""
CapitalCityPlayerhouse.SetName(sHouseMarketQuarterName)
Else
If CapitalCityPlayerhouse.GetActorOwner() == Player
If CapitalCityPlayerhouse.GetActorOwner() == (GetReference() as Actor).GetActorBase()
CapitalCityPlayerhouse.SetName(_00E_sPlayerHouseMarketQuarterName.GetName())
EndIf
EndIf
If FS_NQR03.GetStage() >= 35
If FS_NQR03.GetCurrentStageID() >= 35
FS_NQR03_RhalataTemple.SetName(_00E_sRhalataTempleName.GetName())
EndIf
Endfunction
EndEvent
;=====================================================================================
@ -38,8 +35,6 @@ Endfunction
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
@ -47,4 +42,4 @@ Message Property _00E_sRhalataTempleName Auto
Cell Property CapitalCityPlayerHouseUpper Auto
Cell Property CapitalCityPlayerhouse Auto
Cell Property FS_NQR03_RhalataTemple Auto
Quest Property FS_NQR03 Auto
Quest Property FS_NQR03 Auto