Renamed ore vein scripts to avoid overwriting by Skyrim mods
This commit is contained in:
parent
2ec5f7da38
commit
a600cd5022
Binary file not shown.
BIN
Skyrim.esm
BIN
Skyrim.esm
Binary file not shown.
Binary file not shown.
BIN
scripts/_00E_MiningControl.pex
Normal file
BIN
scripts/_00E_MiningControl.pex
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
scripts/mineoreenderal.pex
Normal file
BIN
scripts/mineoreenderal.pex
Normal file
Binary file not shown.
BIN
scripts/mineorefurnitureenderal.pex
Normal file
BIN
scripts/mineorefurnitureenderal.pex
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -17,3 +17,5 @@ _00E_BrawlControl Property BrawlControl Auto
|
|||||||
_00E_SoundControl Property SoundControl Auto
|
_00E_SoundControl Property SoundControl Auto
|
||||||
|
|
||||||
_00E_SympathyControl Property SympathyControl Auto
|
_00E_SympathyControl Property SympathyControl Auto
|
||||||
|
|
||||||
|
_00E_MiningControl Property MiningControl Auto
|
||||||
|
@ -1,14 +1,10 @@
|
|||||||
Scriptname _00E_FS_ForgottenStories_Functions extends Quest
|
Scriptname _00E_MiningControl extends Quest Hidden
|
||||||
|
|
||||||
;=====================================================================================
|
|
||||||
; EVENTS
|
|
||||||
;=====================================================================================
|
|
||||||
|
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
; FUNCTIONS
|
; FUNCTIONS
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
|
|
||||||
Function TransmuteOre(Form akSource, MineOreScript oreREF, int iCurrentResources)
|
Function TransmuteOre(Form akSource, MineOreEnderal oreREF, int iCurrentResources)
|
||||||
|
|
||||||
if akSource == _05E_FS_SaldrinsTouch
|
if akSource == _05E_FS_SaldrinsTouch
|
||||||
|
|
||||||
@ -49,8 +45,6 @@ EndFunction
|
|||||||
|
|
||||||
Actor Property PlayerREF Auto
|
Actor Property PlayerREF Auto
|
||||||
|
|
||||||
Projectile Property AlterPosProjectile Auto
|
|
||||||
|
|
||||||
MiscObject Property Gold001 Auto
|
MiscObject Property Gold001 Auto
|
||||||
|
|
||||||
Sound Property _00E_FS_MAGSaldrinsTouchM Auto
|
Sound Property _00E_FS_MAGSaldrinsTouchM Auto
|
||||||
@ -62,4 +56,4 @@ Message Property MiningDepletedMessage Auto
|
|||||||
|
|
||||||
ImageSpaceModifier Property _00E_MAGEldritchCastIMOD Auto
|
ImageSpaceModifier Property _00E_MAGEldritchCastIMOD Auto
|
||||||
|
|
||||||
GlobalVariable Property _00E_OreVeinsMined Auto
|
GlobalVariable Property _00E_OreVeinsMined Auto
|
@ -60,6 +60,10 @@ _00E_BrawlControl function GetBrawlControl() Global
|
|||||||
return (Game.GetForm(0x14) as _00E_PlayerFunctions).ControlRepository.BrawlControl
|
return (Game.GetForm(0x14) as _00E_PlayerFunctions).ControlRepository.BrawlControl
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
_00E_MiningControl function GetMiningControl() Global
|
||||||
|
return (Game.GetForm(0x14) as _00E_PlayerFunctions).ControlRepository.MiningControl
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
; Stop/restart random headtracking
|
; Stop/restart random headtracking
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
scriptName MineOreScript extends objectReference
|
scriptName MineOreEnderal extends objectReference
|
||||||
;
|
;
|
||||||
;This script handles the Ore Veins and handshakes with the mining furniture
|
;This script handles the Ore Veins and handshakes with the mining furniture
|
||||||
;===================================================================
|
;===================================================================
|
||||||
@ -130,7 +130,7 @@ Function TryPlayerActivate(ObjectReference myLinkedRef)
|
|||||||
PlayerIsInFurniture = True
|
PlayerIsInFurniture = True
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
(myLinkedRef as mineOreFurnitureScript).lastActivateRef = self
|
(myLinkedRef as MineOreFurnitureEnderal).lastActivateRef = self
|
||||||
myLinkedRef.activate(PlayerREF)
|
myLinkedRef.activate(PlayerREF)
|
||||||
|
|
||||||
; Give some time for the animations to warm up/settle down before we can start reacting on OnActivate again.
|
; Give some time for the animations to warm up/settle down before we can start reacting on OnActivate again.
|
||||||
@ -182,8 +182,7 @@ Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile,
|
|||||||
ResourceCountCurrent = ResourceCountTotal
|
ResourceCountCurrent = ResourceCountTotal
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
_00E_FS_ForgottenStories_Functions _00E_FS_ControlQuest = Game.GetFormFromFile(0x01016E89, "Enderal - Forgotten Stories.esm") as _00E_FS_ForgottenStories_Functions
|
_00E_PlayerFunctions.GetMiningControl().TransmuteOre(akSource, self as MineOreEnderal, ResourceCountCurrent)
|
||||||
_00E_FS_ControlQuest.TransmuteOre(akSource, self as MineOreScript, ResourceCountCurrent)
|
|
||||||
|
|
||||||
; ADDED IN ENDERAL - FORGOTTEN STORIES
|
; ADDED IN ENDERAL - FORGOTTEN STORIES
|
||||||
|
|
||||||
@ -296,7 +295,7 @@ function giveOre()
|
|||||||
endif
|
endif
|
||||||
elseif ResourceCountCurrent == 0
|
elseif ResourceCountCurrent == 0
|
||||||
myLinkedRef.activate(self)
|
myLinkedRef.activate(self)
|
||||||
(myLinkedRef as MineOreFurnitureScript).goToDepletedState()
|
(myLinkedRef as MineOreFurnitureEnderal).goToDepletedState()
|
||||||
DepletedMessage.Show()
|
DepletedMessage.Show()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -308,6 +307,3 @@ function depleteOreDueToFailure()
|
|||||||
self.setDestroyed(true)
|
self.setDestroyed(true)
|
||||||
ResourceCountCurrent = 0
|
ResourceCountCurrent = 0
|
||||||
endFunction
|
endFunction
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
Scriptname MineOreFurnitureScript extends ObjectReference Conditional
|
Scriptname MineOreFurnitureEnderal extends ObjectReference Conditional
|
||||||
{script for furniture which the player can use to get resources}
|
{script for furniture which the player can use to get resources}
|
||||||
|
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ function UnregisterForEvents(Bool bNotifyLastActivateRef = False)
|
|||||||
UnRegisterForAnimationEvent(PlayerREF, "IdleFurnitureExit")
|
UnRegisterForAnimationEvent(PlayerREF, "IdleFurnitureExit")
|
||||||
|
|
||||||
If bNotifyLastActivateRef && lastActivateRef
|
If bNotifyLastActivateRef && lastActivateRef
|
||||||
(lastActivateRef as MineOreScript).OnFurnitureExit()
|
(lastActivateRef as MineOreEnderal).OnFurnitureExit()
|
||||||
EndIf
|
EndIf
|
||||||
; debug.Trace(self + " should be unregistered for anim events")
|
; debug.Trace(self + " should be unregistered for anim events")
|
||||||
endif
|
endif
|
Loading…
Reference in New Issue
Block a user