Quest potion messages use "Replace default" for their entrypoint

This commit is contained in:
Eddoursul 2022-08-23 00:30:18 +02:00
parent bb3adbf9b9
commit 9ba7c7c1fa
7 changed files with 35 additions and 33 deletions

BIN
Quest potions update.esp Normal file

Binary file not shown.

Binary file not shown.

View File

@ -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
akActor.RemovePerk(Self)
else
(FS_NQ05 as _00E_FS_NQ05_Functions).AskCreatePotion()
endif
(FS_NQ05 as _00E_FS_NQ05_Functions).AskCreatePotion()
Utility.wait(0.3)
akTargetRef.Activate(akActor, false)
;END CODE
EndFunction
;END FRAGMENT

View File

@ -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
akActor.RemovePerk(Self)
else
(FS_NQ07 as _00E_FS_NQ07_Functions).AskCreatePotion()
endif
(FS_NQ07 as _00E_FS_NQ07_Functions).AskCreatePotion()
Utility.wait(0.3)
akTargetRef.Activate(akActor, false)
;END CODE
EndFunction
;END FRAGMENT

View File

@ -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(Vynroot, 1)
PlayerREF.RemoveItem(SkeeverTail, 1)
PlayerREF.RemoveItem(MothWingMonarch, 1)
PlayerREF.RemoveItem(Garlic, 1)
PlayerREF.RemoveItem(_00E_FS_NQ05_Rezept, 1)
EndIf
EndIf