Remove only one Rune Key in the Abandoned Temple; Rune Key has a price

This commit is contained in:
Eddoursul 2022-08-09 21:31:57 +02:00
parent 2ee7b5e135
commit 7b91327a04
3 changed files with 3 additions and 2 deletions

BIN
Rune Key has price.esp Normal file

Binary file not shown.

Binary file not shown.

View File

@ -2,8 +2,9 @@ Scriptname _00E_MQ00TemplePuzzleSCN extends ObjectReference
;DRSTG08AStoneSecretDoorOpenM ;DRSTG08AStoneSecretDoorOpenM
Event OnActivate(ObjectReference akActionRef) Event OnActivate(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer() && !Activated && (Game.GetPlayer().GetItemCount(_00E_MQ00TempleKey) >= 1) Actor PlayerRef = Game.GetForm(0x14) as Actor
Game.GetPlayer().RemoveItem(_00E_MQ00TempleKey, Game.GetPlayer().GetItemCount(_00E_MQ00TempleKey)) if akActionRef == PlayerRef && !Activated && (PlayerRef.GetItemCount(_00E_MQ00TempleKey) >= 1)
PlayerRef.RemoveItem(_00E_MQ00TempleKey, 1)
MoveStone = true MoveStone = true
Runenstein.enable() Runenstein.enable()
;_00E_MQP03_sMechanismSomethingMissing.Show() ;_00E_MQP03_sMechanismSomethingMissing.Show()