Added disassembly of door close support routines and other miscellaneous action support code

svn-id: r22162
This commit is contained in:
Paul Gilbert 2006-04-25 22:38:00 +00:00
parent 3b35bc353c
commit 14beeb3492
2 changed files with 285 additions and 236 deletions

File diff suppressed because it is too large Load Diff

View File

@ -212,6 +212,11 @@ display_message - Displays a message to the user
dh = 0=>non fatal error, 1=>fatal error
If a fatal error, function does not return
display_message_dialog - Uses the message segment data to look up the
specific response to an action for a specific character
Input: cx = character Id
??
display_message_dialog_3 - Uses the message segment data to look up the
specific response to an action for a specific character
Input: ax = Message Id. Commonly stored in the sequence field for
@ -219,6 +224,11 @@ display_message_dialog_3 - Uses the message segment data to look up the
si = Character hotspot record
di = Player animation slot
door_close_check - Checks the passed hotspot, which is one half of a doorway,
to make sure there's no character within it, preventing closing
Input: bx = Hotspot offset
Output: al = 1 => Door can close, 0 => Door can't close
draw_dialog_frame - Draws the frame for a dialog in an off-screen buffer
Input: es:di = Destination buffer
bx = Horizontal size of dialog - 16
@ -780,6 +790,9 @@ The format of hotspots are as follows:
8h 1 Script flag - a non-zero value indicates that the value
at offset 9h is a script offset to execute. Otherwise,
the offset is treated as a code subroutine, and jumped to
Also used by non-visual hotspots to indicate the direction
to face the character in when an action is performed on
the hotspot
9h 2 Script sequence to execute, or offset for loading
routine for hotspot. So far I'm aware of two code routines:
7167h = stub method that calls animation_load
@ -817,7 +830,9 @@ The format of hotspots are as follows:
frames for a given direction to quickly retrieve the
position change and frame number in a walking sequence -
used along with offset 26h to handling walking
2Ah 1 Current frame number
2Ah 1 A counter used to determine the number of times the
action precheck method has been called within the
handling of an action
2Bh 2 ???
2Dh 2 Script Id of a hotspot the character is to use
2Fh 2 Hotspot Id of a hotspot the character is to use