[Scummvm-tracker] [ScummVM] #10860: QFG4: Lock up when casting Trigger after Summon Staff

ScummVM trac at scummvm.org
Mon Jan 7 10:02:20 CET 2019


#10860: QFG4: Lock up when casting Trigger after Summon Staff
--------------------------------+----------------------------
  Reporter:  tomasz89           |      Owner:  (none)
      Type:  defect             |     Status:  new
  Priority:  normal             |  Component:  Engine: SCI
Resolution:                     |   Keywords:  SCI32 original
      Game:  Quest for Glory 4  |
--------------------------------+----------------------------

Comment (by Vhati):

 Okay... To make Trigger work like Open, I wrote a patch that inserts a
 "seconds" assignment and erases the self arg.

 The staff disappears because doVerb() leads to a normalize.
 \\
 \\
 script 600 - aGate::doVerb()
 {{{
 (82
         (if local7
                 # "Something about being with Katrina makes all thought
                 #   of magic swirl around in your head. You don't seem to
                 #   be able to cast any of your spells."
                 (g91_gloryMessager say: 12 6 28)
         else
                 (= g441_myX ((User curEvent?) x?))
                 (= g442_myY ((User curEvent?) y?))
                 (= loc5_action 9)
                 (g2_myCurrentRoom setScript: (ScriptID 11) 0 self)  #
 castTriggerScript
         )
 )
 (-82
         (g0_hero trySkill: 22)  # myTriggerSkill
         (g2_myCurrentRoom setScript: sThrowIt)
 )
 }}}
 \\
 \\
 script 600 - sThrowIt::changeState()
 {{{
 (1
         (g0_hero normalize:)
         (= seconds 2)
 )
 (2
         (if (proc64999_5 loc5_action 1 2)
                 # "Your missile vanishes as if by magic.
                 #   (In fact, it probably IS by magic.)"
                 (g91_gloryMessager say: 12 6 6 0 self)
         else
                 # "Your spell dissipates as if blocked by magic.
                 #   It does not seem to have had any effect."
                 (g91_gloryMessager say: 12 6 7 0 self)
         )
 )
 }}}

-- 
Ticket URL: <https://bugs.scummvm.org/ticket/10860#comment:11>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list