parent
6c5ab0e966
commit
082c1f7bbe
11 changed files with 79 additions and 25 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,17 @@ |
||||
Scriptname _00E_NQ06_DonkeyAlias extends ReferenceAlias Hidden |
||||
|
||||
GlobalVariable Property _00E_MuleOwned Auto |
||||
|
||||
Event OnPlayerLoadGame() |
||||
|
||||
If (_00E_MuleOwned.GetValue() as Int) > 0 |
||||
|
||||
String sMuleName = (GetOwningQuest() as _00E_NQ06_Functions).sMuleName |
||||
|
||||
if sMuleName != "" |
||||
(GetReference() as Actor).GetActorBase().SetName(sMuleName) |
||||
endif |
||||
|
||||
EndIf |
||||
|
||||
EndEvent |
@ -0,0 +1,17 @@ |
||||
Scriptname _00E_NQ06_ShadowAlias extends ReferenceAlias Hidden |
||||
|
||||
GlobalVariable Property _00E_FathersShadowOwned Auto |
||||
|
||||
Event OnPlayerLoadGame() |
||||
|
||||
If (_00E_FathersShadowOwned.GetValue() as Int) > 0 |
||||
|
||||
String sShadowName = (GetOwningQuest() as _00E_NQ06_Functions).sFathersShadowName |
||||
|
||||
if sShadowName != "" |
||||
(GetReference() as Actor).GetActorBase().SetName(sShadowName) |
||||
endif |
||||
|
||||
EndIf |
||||
|
||||
EndEvent |
@ -0,0 +1,45 @@ |
||||
Scriptname PlayerHorseScript extends ReferenceAlias |
||||
|
||||
Event OnDeath(Actor akKiller) |
||||
MySelf = GetActorReference() |
||||
_00E_HorseOwned.SetValue(0) |
||||
EndEvent |
||||
|
||||
Event OnUnload() |
||||
If MySelf.IsDead() |
||||
; disable the dead horse if it is unloaded |
||||
MySelf.Disable() |
||||
MySelf.Delete() |
||||
(GetOwningQuest() as _00E_NQ06_Functions).sHorseName = "" |
||||
; added a new horse that can be bought at the stables |
||||
Myself = StablesPosition.PlaceActorAtMe(LvlHorseSaddled) |
||||
Alias_HorseRef.ForceRefTo(MySelf) |
||||
Alias_HorseRef.GetRef().SetFactionOwner(StablesFaction) |
||||
EndIf |
||||
EndEvent |
||||
|
||||
Event OnPlayerLoadGame() |
||||
|
||||
If (_00E_HorseOwned.GetValue() as Int) > 0 |
||||
|
||||
String sHorseName = (GetOwningQuest() as _00E_NQ06_Functions).sHorseName |
||||
|
||||
if sHorseName != "" |
||||
(GetReference() as Actor).GetActorBase().SetName(sHorseName) |
||||
endif |
||||
|
||||
EndIf |
||||
|
||||
EndEvent |
||||
|
||||
Actor Property MySelf Auto |
||||
|
||||
ObjectReference Property StablesPosition Auto |
||||
|
||||
ActorBase Property LvlHorseSaddled Auto |
||||
|
||||
ReferenceAlias Property Alias_HorseRef Auto |
||||
|
||||
Faction Property StablesFaction Auto |
||||
|
||||
GlobalVariable Property _00E_HorseOwned Auto |
Loading…
Reference in new issue