4
Fork 0

Quest potion messages use "Replace default" for their entrypoint

master
Eddoursul 2 years ago
parent bb3adbf9b9
commit 9ba7c7c1fa
  1. BIN
      Quest potions update.esp
  2. BIN
      scripts/PRKF__00E_CraftQuestPotionPe_0300146D.pex
  3. BIN
      scripts/PRKF__00E_FS_NQ07_CraftPotio_0300146E.pex
  4. BIN
      scripts/_00e_fs_nq05_functions.pex
  5. 10
      source/scripts/PRKF__00E_CraftQuestPotionPe_0300146D.psc
  6. 10
      source/scripts/PRKF__00E_FS_NQ07_CraftPotio_0300146E.psc
  7. 34
      source/scripts/_00e_fs_nq05_functions.psc

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

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

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

Loading…
Cancel
Save