Open main menu

Difference between revisions of "Kyra/Opcodes"

112 bytes removed ,  23:26, 14 June 2005
m
no edit summary
m
Line 21: Line 21:
<code>
<code>


   00 Cmd_Magic_In_Mouse_Item
   00? Cmd_Magic_In_Mouse_Item
   01 Cmd_Character_Says 3 args (unk, unk, stringID) - also see 34
   01 Cmd_Character_Says 3 args (unk, unk, stringID) - also see 34
   02 Cmd_Pause_Ticks
   02? Cmd_Pause_Ticks
   03 Cmd_Draw_Scene_Anim_Shape
   03? Cmd_Draw_Scene_Anim_Shape
   04 Cmd_Query_Game_Flag
   04? Cmd_Query_Game_Flag
   05 Cmd_Set_Game_Flag
   05? Cmd_Set_Game_Flag
   06 Cmd_Reset_Game_Flag
   06? Cmd_Reset_Game_Flag
   07 Cmd_Run_NPC_Script
   07? Cmd_Run_NPC_Script
   08 Cmd_Set_Special_Exit_List
   08? Cmd_Set_Special_Exit_List
   09 Cmd_Block_In_Walkable_Region
   09? Cmd_Block_In_Walkable_Region
   0A Cmd_Block_Out_Walkable_Region
   0A? Cmd_Block_Out_Walkable_Region
   0B Cmd_Walk_Player_To_Point 4 args (unk, x, x, y) - x may be be greater than 0xFF, y must not, so only 1 byte for that
   0B Cmd_Walk_Player_To_Point 4 args (unk, x, x, y) - x may be be greater than 0xFF, y must not, so only 1 byte for that
   0C Cmd_Drop_Item_In_Scene
   0C? Cmd_Drop_Item_In_Scene
   0D Cmd_Draw_Anim_Shape_Into_Scene
   0D Cmd_Draw_Anim_Shape_Into_Scene 4 args (remove item from screen?) (removes note from desk)
   0E Cmd_Create_Mouse_Item 1 arg  (itemID) - pick up item; ie mousecursor=item id
   0E Cmd_Create_Mouse_Item 1 arg  (itemID) - pick up item; ie mousecursor=item id
   0F Cmd_Save_Page_To_Disk
   0F? Cmd_Save_Page_To_Disk
    
    
   10 Cmd_Load_Page_From_Disk
   10? Cmd_Load_Page_From_Disk
   11 Cmd_Scene_Anim_On
   11? Cmd_Scene_Anim_On
   12 Cmd_Scene_Anim_Off
   12? Cmd_Scene_Anim_Off
   13 Cmd_Elapsed_Seconds
   13? Cmd_Elapsed_Seconds
   14 Cmd_Mouse_Is_Pointer
   14? Cmd_Mouse_Is_Pointer
   15 Cmd_Destroy_Mouse_Item
   15? Cmd_Destroy_Mouse_Item
   16 Cmd_Run_Scene_Anim_Until_Done
   16? Cmd_Run_Scene_Anim_Until_Done
   17 Cmd_Fade_Special_Palette
   17? Cmd_Fade_Special_Palette
   18 Cmd_Play_AdLib_Sound
   18? Cmd_Play_AdLib_Sound
   19 Cmd_Play_AdLib_Score
   19? Cmd_Play_AdLib_Score
   1A Cmd_Phase_In_Same_Scene
   1A? Cmd_Phase_In_Same_Scene
   1B Cmd_Set_Scene_Phasing_Flag
   1B? Cmd_Set_Scene_Phasing_Flag
   1C Cmd_Reset_Scene_Phasing_Flag
   1C? Cmd_Reset_Scene_Phasing_Flag
   1D Cmd_Query_Scene_Phasing_Flag
   1D? Cmd_Query_Scene_Phasing_Flag
   1E Cmd_Scene_To_Direction
   1E? Cmd_Scene_To_Direction
   1F Cmd_Set_Birthstone_Gem
   1F? Cmd_Set_Birthstone_Gem
    
    
   20 Cmd_Place_Item_In_Generic_Map_Scene
   20? Cmd_Place_Item_In_Generic_Map_Scene
   21 Cmd_Set_Brandon_Status_Bit
   21? Cmd_Set_Brandon_Status_Bit
   22 Cmd_Pause_Seconds
   22? Cmd_Pause_Seconds
   23 Cmd_Get_Characters_Location
   23? Cmd_Get_Characters_Location
   24 Cmd_Run_NPC_Subscript
   24? Cmd_Run_NPC_Subscript
   25 Cmd_Magic_Out_Mouse_Item
   25? Cmd_Magic_Out_Mouse_Item
   26 Cmd_Internal_Anim_On
   26? Cmd_Internal_Anim_On
   27 Cmd_Force_Brandon_To_Normal
   27? Cmd_Force_Brandon_To_Normal
   28 Cmd_Poison_Death_Now
   28? Cmd_Poison_Death_Now
   29 Cmd_Set_Scale_Mode
   29? Cmd_Set_Scale_Mode
   2A Cmd_Open_WSA_File
 
   2B Cmd_Close_WSA_File
  note: this looks more like 2A, check numbering
   2C Cmd_Run_WSA_From_Beginning_To_End
  29              4              ; play WSA file? (or just load it? coords?)
   2D Cmd_Display_WSA_Frame
 
   2E Cmd_Enter_New_Scene
   2A? Cmd_Open_WSA_File
   2F Cmd_Set_Special_Enter_X_And_Y
   2B? Cmd_Close_WSA_File
   2C? Cmd_Run_WSA_From_Beginning_To_End
   2D? Cmd_Display_WSA_Frame
   2E? Cmd_Enter_New_Scene
   2F? Cmd_Set_Special_Enter_X_And_Y
    
    
   30 Cmd_Run_WSA_Frames
   30 Cmd_Run_WSA_Frames
Line 77: Line 81:
   33 Cmd_Set_Custom_Palette_Range
   33 Cmd_Set_Custom_Palette_Range
   34 Cmd_Custom_Print_Talk_String 4 args (color, unk, unk, stringid) - see also 01
   34 Cmd_Custom_Print_Talk_String 4 args (color, unk, unk, stringid) - see also 01
   35 Cmd_Restore_Custom_Print_Background 0 args
   35 Cmd_Restore_Custom_Print_Background 0 args ; restore text background?
   36 Cmd_Hide_Mouse 0 args
   36 Cmd_Hide_Mouse 0 args
   37 Cmd_Show_Mouse 0 args
   37 Cmd_Show_Mouse 0 args
Line 186: Line 190:
   Cmd_Fill_Rect // 0x9A
   Cmd_Fill_Rect // 0x9A
   Cmd_Dummy // 0x9B
   Cmd_Dummy // 0x9B
still needs to be incorporated into above list:
  01              3 arguments    ; output string std color? (unk, unk, stringid) (see also 34)
  0D              4              ; remove item from screen? (removes note from desk)
  29              4              ; play WSA file? (or just load it? coords?)
  35              0              ; restore text background?
</code>
</code>
334

edits