Compare commits
6 Commits
9fc782ecf2
...
332c3e0690
Author | SHA1 | Date | |
---|---|---|---|
332c3e0690 | |||
a551eec5ca | |||
6b713f9544 | |||
5921715d85 | |||
06f28501ae | |||
29e997d15f |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -42,11 +42,13 @@ Event OnInit()
|
|||
EndEvent
|
||||
|
||||
Event OnPlayerLoadGame()
|
||||
If self == PlayerREF && SKSE.GetVersion() > 0
|
||||
if GetState() != "RealPlayer"
|
||||
GoToState("RealPlayer")
|
||||
If SKSE.GetVersion()
|
||||
if self == PlayerREF
|
||||
if GetState() != "RealPlayer"
|
||||
GoToState("RealPlayer")
|
||||
endif
|
||||
RegisterForActions()
|
||||
endif
|
||||
RegisterForActions()
|
||||
else
|
||||
Debug.Trace("NO SKSE: individual shout cooldowns are disabled")
|
||||
if GetState() != "Disabled"
|
||||
|
|
|
@ -96,7 +96,9 @@ Event OnPackageChange(Package akOldPackage)
|
|||
; Debug.Trace(self + ": OnPackageChange, " + Target + ", old package " + akOldPackage)
|
||||
|
||||
; Failsafe auto-stop smoking on package change
|
||||
Target.RemoveSpell(_00E_Smoking_CrossLeggedMarkerSP)
|
||||
if Target
|
||||
Target.RemoveSpell(_00E_Smoking_CrossLeggedMarkerSP)
|
||||
endif
|
||||
EndEvent
|
||||
|
||||
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||||
|
|
|
@ -140,15 +140,10 @@ function _addNamedPotion(Potion aPotion, string sName, string sModel)
|
|||
|
||||
endfunction
|
||||
|
||||
function _removeNamedPotion(Potion aPotion)
|
||||
if aPotion
|
||||
int i = aCreatedPotions.Find(aPotion)
|
||||
if i > -1
|
||||
aCreatedPotions[i] = None
|
||||
aPotionNames[i] = ""
|
||||
aPotionModels[i] = ""
|
||||
endif
|
||||
endif
|
||||
function _removeNamedPotion(int iIndex)
|
||||
aCreatedPotions[iIndex] = None
|
||||
aPotionNames[iIndex] = ""
|
||||
aPotionModels[iIndex] = ""
|
||||
endfunction
|
||||
|
||||
Function _UpdatePotion(Potion item, Int count)
|
||||
|
@ -401,8 +396,10 @@ EndFunction
|
|||
|
||||
Function _InitAchemyControl()
|
||||
|
||||
GoToState("")
|
||||
|
||||
if GetState() != ""
|
||||
GoToState("")
|
||||
endif
|
||||
|
||||
; Version update
|
||||
If curScriptVersion < LATEST_SCRIPT_VERSION
|
||||
Int oldScriptVersion = curScriptVersion
|
||||
|
@ -463,9 +460,11 @@ Event OnPlayerLoadGame()
|
|||
|
||||
int i = 0
|
||||
while i < 128
|
||||
if aCreatedPotions[i]
|
||||
if PlayerREF.GetItemCount(aCreatedPotions[i]) == 0 && _00E_SecureChest_HostChestREF.GetItemCount(aCreatedPotions[i]) == 0
|
||||
_removeNamedPotion(aCreatedPotions[i])
|
||||
if aCreatedPotions[i] ; this may be None but return true when a potion no longer exists
|
||||
if aCreatedPotions[i] as String == "[Potion <None>]"
|
||||
_removeNamedPotion(i)
|
||||
elseif PlayerREF.GetItemCount(aCreatedPotions[i]) == 0 && _00E_SecureChest_HostChestREF.GetItemCount(aCreatedPotions[i]) == 0
|
||||
_removeNamedPotion(i)
|
||||
else
|
||||
aCreatedPotions[i].SetName(aPotionNames[i])
|
||||
if aPotionModels[i] != ""
|
||||
|
|
|
@ -105,6 +105,11 @@ Function TryPlayerActivate(ObjectReference myLinkedRef)
|
|||
Return
|
||||
EndIf
|
||||
|
||||
if _FS_TheriantrophistControlQuest.getControlQuest().IsTransformed()
|
||||
(Game.GetFormFromFile(0x2F032, "Enderal - Forgotten Stories.esm") as Message).Show()
|
||||
return
|
||||
endif
|
||||
|
||||
If PlayerREF.GetItemCount(mineOreToolsList) < 1
|
||||
FailureMessage.Show()
|
||||
Return
|
||||
|
|
Loading…
Reference in New Issue
Block a user