[Scummvm-tracker] [ScummVM] #10858: QFG4: Pathfinding in forest 1S from town, south entry

ScummVM trac at scummvm.org
Wed Jan 2 14:54:38 CET 2019


#10858: QFG4: Pathfinding in forest 1S from town, south entry
--------------------------------+-------------------------
  Reporter:  tomasz89           |      Owner:  (none)
      Type:  defect             |     Status:  new
  Priority:  normal             |  Component:  Engine: SCI
Resolution:                     |   Keywords:  SCI32
      Game:  Quest for Glory 4  |
--------------------------------+-------------------------

Comment (by Vhati):

 From the hand decompiled code attached to #10857...
 \\
 \\
 script 50 - forest::init()
 {{{
 (switch myPrevRoomNum
 # ...
         ((g2_myCurrentRoom south?)
                 (g0_hero posn: 160 240 setHeading: 0)
                 (= loc1 160)
                 (= loc2
                         (-
                                 182
                                 (if g365_myFoeScriptNum 1 else 21)
                         )
                 )
                 (g2_myCurrentRoom setScript: enterRoomScr)
         )
 # ...
 )
 }}}
 \\
 loc1 and loc2 are x,y coords that hero is sent to by
 enterRoomScr::changeState(1).

 In this case, hero starts at (160,240) and is sent to (160,161).

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


More information about the Scummvm-tracker mailing list