Skip to content

[#12315] Opcode 338 (Disable rest or save) seems to be partially broken

switswit Member, Translator (NDA) Posts: 495
edited April 2015 in IWD:EE Bugs (v1.4.0)
According to NearInfinity opcode 338 has 3 "modes" for Parameter2:
- Cannot rest
- Cannot save
- Cannot rest or save
Parameter1 is a string number that shows message when player try to either rest or save based on what we set in Parameter2.

Current behaviour:
'Cannot rest' and 'Cannot rest or save' work fine - you will see appropriate message and this opcode will prevent player from saving or resting.
But if you choose 'Cannot save' value for Parameter2 you won't be able to rest (when you try to do so "You cannot rest at this time" message will show up, not the one from Parameter1).

Expected behaviour:
'Cannot save' value in Parameter2 should not affect resting - that is what other values are for.

How to test it in game:
1. Add this code to BALDUR.BCS and BALDUR25.BCS:
IF
Global("K#TEST","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("K#TEST","GLOBAL",1)
ActionOverride(Player1,ApplySpellRES("K#TEST",Myself))
Continue()
END
2. Copy spell attached to this post to override (permanently adds opcode 338 with 'Cannot save' value)
3. Start the game and go to Inn or rest outside - you will see "You cannot rest at this time".

This problem may be related to the one that affects ARE flags: http://forum.baldursgate.com/discussion/39280/make-cant-save-game-area-flag-not-prevent-resting-or-add-new-area-flag-instead

Maybe I'm missing something? Should this spell have custom 'Power' value? In @Avenger_teambg we trust.
Post edited by Avenger_teambg on

Comments

Sign In or Register to comment.