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 ;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 Scriptname PRKF__00E_CraftQuestPotionPe_0300146D Extends Perk Hidden
;BEGIN FRAGMENT Fragment_7 ;BEGIN FRAGMENT Fragment_7
Function Fragment_7(ObjectReference akTargetRef, Actor akActor) Function Fragment_7(ObjectReference akTargetRef, Actor akActor)
;BEGIN CODE ;BEGIN CODE
if FS_NQ05.GetCurrentStageID() >= 40 if FS_NQ05.GetCurrentStageID() >= 40
Game.GetPlayer().RemovePerk(Self) akActor.RemovePerk(Self)
return else
(FS_NQ05 as _00E_FS_NQ05_Functions).AskCreatePotion()
endif endif
(FS_NQ05 as _00E_FS_NQ05_Functions).AskCreatePotion() Utility.wait(0.3)
akTargetRef.Activate(akActor, false)
;END CODE ;END CODE
EndFunction EndFunction
;END FRAGMENT ;END FRAGMENT

View File

@ -1,15 +1,17 @@
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment ;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 Scriptname PRKF__00E_FS_NQ07_CraftPotio_0300146E Extends Perk Hidden
;BEGIN FRAGMENT Fragment_0 ;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akTargetRef, Actor akActor) Function Fragment_0(ObjectReference akTargetRef, Actor akActor)
;BEGIN CODE ;BEGIN CODE
if FS_NQ07.GetCurrentStageID() >= 120 if FS_NQ07.GetCurrentStageID() >= 120
Game.GetPlayer().RemovePerk(Self) akActor.RemovePerk(Self)
return else
(FS_NQ07 as _00E_FS_NQ07_Functions).AskCreatePotion()
endif endif
(FS_NQ07 as _00E_FS_NQ07_Functions).AskCreatePotion() Utility.wait(0.3)
akTargetRef.Activate(akActor, false)
;END CODE ;END CODE
EndFunction EndFunction
;END FRAGMENT ;END FRAGMENT

View File

@ -193,32 +193,30 @@ Function AskCreatePotion()
Int qStage = GetCurrentStageID() Int qStage = GetCurrentStageID()
If qStage >= 30 && qStage < 40 If qStage >= 30 && qStage < 40
If FS_NQ05_AlchemyMessagebox.Show() == 0 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) SetCurrentStageID(40)
PlayerREF.RemoveItem(Vynroot, 1)
if PlayerREF.GetItemCount(Vynroot) > 0 PlayerREF.RemoveItem(SkeeverTail, 1)
PlayerREF.RemoveItem(Vynroot, 1) PlayerREF.RemoveItem(MothWingMonarch, 1)
else PlayerREF.RemoveItem(Garlic, 1)
_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) PlayerREF.RemoveItem(_00E_FS_NQ05_Rezept, 1)
EndIf EndIf
EndIf EndIf