|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|