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 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 ; EVENTS
;===================================================================================== ;=====================================================================================
Event OnPlayerLoadGame() Event OnPlayerLoadGame()
resetName()
EndEvent
Function resetName()
If sHouseNobleQuarterName != "" If sHouseNobleQuarterName != ""
CapitalCityPlayerHouseUpper.SetName(sHouseNobleQuarterName) CapitalCityPlayerHouseUpper.SetName(sHouseNobleQuarterName)
Else Else
if CapitalCityPlayerHouseUpper.GetActorOwner() == Player if CapitalCityPlayerHouseUpper.GetActorOwner() == (GetReference() as Actor).GetActorBase()
CapitalCityPlayerHouseUpper.SetName(_00E_sPlayerHouseNobleQuarterName.GetName()) CapitalCityPlayerHouseUpper.SetName(_00E_sPlayerHouseNobleQuarterName.GetName())
EndIf EndIf
EndIf EndIf
@ -20,15 +17,15 @@ Function resetName()
If sHouseMarketQuarterName != "" If sHouseMarketQuarterName != ""
CapitalCityPlayerhouse.SetName(sHouseMarketQuarterName) CapitalCityPlayerhouse.SetName(sHouseMarketQuarterName)
Else Else
If CapitalCityPlayerhouse.GetActorOwner() == Player If CapitalCityPlayerhouse.GetActorOwner() == (GetReference() as Actor).GetActorBase()
CapitalCityPlayerhouse.SetName(_00E_sPlayerHouseMarketQuarterName.GetName()) CapitalCityPlayerhouse.SetName(_00E_sPlayerHouseMarketQuarterName.GetName())
EndIf EndIf
EndIf EndIf
If FS_NQR03.GetStage() >= 35 If FS_NQR03.GetCurrentStageID() >= 35
FS_NQR03_RhalataTemple.SetName(_00E_sRhalataTempleName.GetName()) FS_NQR03_RhalataTemple.SetName(_00E_sRhalataTempleName.GetName())
EndIf EndIf
Endfunction EndEvent
;===================================================================================== ;=====================================================================================
@ -38,8 +35,6 @@ Endfunction
string Property sHouseMarketQuarterName Auto string Property sHouseMarketQuarterName Auto
string Property sHouseNobleQuarterName Auto string Property sHouseNobleQuarterName Auto
ActorBase Property Player Auto
Message Property _00E_sPlayerHouseMarketQuarterName Auto Message Property _00E_sPlayerHouseMarketQuarterName Auto
Message Property _00E_sPlayerHouseNobleQuarterName Auto Message Property _00E_sPlayerHouseNobleQuarterName Auto
Message Property _00E_sRhalataTempleName Auto Message Property _00E_sRhalataTempleName Auto
@ -47,4 +42,4 @@ Message Property _00E_sRhalataTempleName Auto
Cell Property CapitalCityPlayerHouseUpper Auto Cell Property CapitalCityPlayerHouseUpper Auto
Cell Property CapitalCityPlayerhouse Auto Cell Property CapitalCityPlayerhouse Auto
Cell Property FS_NQR03_RhalataTemple Auto Cell Property FS_NQR03_RhalataTemple Auto
Quest Property FS_NQR03 Auto Quest Property FS_NQR03 Auto