Quest potion messages use "Replace default" for their entrypoint
This commit is contained in:
parent
bb3adbf9b9
commit
9ba7c7c1fa
BIN
Quest potions update.esp
Normal file
BIN
Quest potions update.esp
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,15 +1,17 @@
|
||||
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
|
||||
;NEXT FRAGMENT INDEX 12
|
||||
;NEXT FRAGMENT INDEX 14
|
||||
Scriptname PRKF__00E_CraftQuestPotionPe_0300146D Extends Perk Hidden
|
||||
|
||||
;BEGIN FRAGMENT Fragment_7
|
||||
Function Fragment_7(ObjectReference akTargetRef, Actor akActor)
|
||||
;BEGIN CODE
|
||||
if FS_NQ05.GetCurrentStageID() >= 40
|
||||
Game.GetPlayer().RemovePerk(Self)
|
||||
return
|
||||
endif
|
||||
akActor.RemovePerk(Self)
|
||||
else
|
||||
(FS_NQ05 as _00E_FS_NQ05_Functions).AskCreatePotion()
|
||||
endif
|
||||
Utility.wait(0.3)
|
||||
akTargetRef.Activate(akActor, false)
|
||||
;END CODE
|
||||
EndFunction
|
||||
;END FRAGMENT
|
||||
|
@ -1,15 +1,17 @@
|
||||
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
|
||||
;NEXT FRAGMENT INDEX 10
|
||||
;NEXT FRAGMENT INDEX 11
|
||||
Scriptname PRKF__00E_FS_NQ07_CraftPotio_0300146E Extends Perk Hidden
|
||||
|
||||
;BEGIN FRAGMENT Fragment_0
|
||||
Function Fragment_0(ObjectReference akTargetRef, Actor akActor)
|
||||
;BEGIN CODE
|
||||
if FS_NQ07.GetCurrentStageID() >= 120
|
||||
Game.GetPlayer().RemovePerk(Self)
|
||||
return
|
||||
endif
|
||||
akActor.RemovePerk(Self)
|
||||
else
|
||||
(FS_NQ07 as _00E_FS_NQ07_Functions).AskCreatePotion()
|
||||
endif
|
||||
Utility.wait(0.3)
|
||||
akTargetRef.Activate(akActor, false)
|
||||
;END CODE
|
||||
EndFunction
|
||||
;END FRAGMENT
|
||||
|
@ -193,32 +193,30 @@ Function AskCreatePotion()
|
||||
Int qStage = GetCurrentStageID()
|
||||
If qStage >= 30 && qStage < 40
|
||||
If FS_NQ05_AlchemyMessagebox.Show() == 0
|
||||
|
||||
if PlayerREF.GetItemCount(Vynroot) == 0
|
||||
_00E_SecureChest_HostChestREF.RemoveItem(Vynroot, 1, true, PlayerREF)
|
||||
endif
|
||||
|
||||
if PlayerREF.GetItemCount(SkeeverTail) == 0
|
||||
_00E_SecureChest_HostChestREF.RemoveItem(SkeeverTail, 1, true, PlayerREF)
|
||||
endif
|
||||
|
||||
if PlayerREF.GetItemCount(MothWingMonarch) == 0
|
||||
_00E_SecureChest_HostChestREF.RemoveItem(MothWingMonarch, 1, true, PlayerREF)
|
||||
endif
|
||||
|
||||
if PlayerREF.GetItemCount(Garlic) == 0
|
||||
_00E_SecureChest_HostChestREF.RemoveItem(Garlic, 1, true, PlayerREF)
|
||||
endif
|
||||
|
||||
Utility.wait(0.5)
|
||||
|
||||
SetCurrentStageID(40)
|
||||
|
||||
if PlayerREF.GetItemCount(Vynroot) > 0
|
||||
PlayerREF.RemoveItem(Vynroot, 1)
|
||||
else
|
||||
_00E_SecureChest_HostChestREF.RemoveItem(Vynroot, 1)
|
||||
endif
|
||||
|
||||
if PlayerREF.GetItemCount(SkeeverTail) > 0
|
||||
PlayerREF.RemoveItem(SkeeverTail, 1)
|
||||
else
|
||||
_00E_SecureChest_HostChestREF.RemoveItem(SkeeverTail, 1)
|
||||
endif
|
||||
|
||||
if PlayerREF.GetItemCount(MothWingMonarch) > 0
|
||||
PlayerREF.RemoveItem(MothWingMonarch, 1)
|
||||
else
|
||||
_00E_SecureChest_HostChestREF.RemoveItem(MothWingMonarch, 1)
|
||||
endif
|
||||
|
||||
if PlayerREF.GetItemCount(Garlic) > 0
|
||||
PlayerREF.RemoveItem(Garlic, 1)
|
||||
else
|
||||
_00E_SecureChest_HostChestREF.RemoveItem(Garlic, 1)
|
||||
endif
|
||||
|
||||
PlayerREF.RemoveItem(_00E_FS_NQ05_Rezept, 1)
|
||||
EndIf
|
||||
EndIf
|
||||
|
Loading…
Reference in New Issue
Block a user