Difference between revisions of "Kyra/Opcodes"

Jump to navigation Jump to search
477 bytes removed ,  23:15, 14 June 2005
m
no edit summary
m
m
Line 35: Line 35:
   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
   0E Cmd_Create_Mouse_Item 1 arg  (itemID) - 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
    
    
Line 123: Line 123:
   Cmd_Set_Death_Handler_Flag // 0x5F
   Cmd_Set_Death_Handler_Flag // 0x5F
    
    
   Cmd_Drink_Potion_Animation // 0x60
   60 Cmd_Drink_Potion_Animation // 0x60
   Cmd_Make_Amulet_Appear // 0x61
   61 Cmd_Make_Amulet_Appear // 0x61 // used in altar.emc?
   Cmd_Draw_Item_Shape_Into_Scene // 0x62
   Cmd_Draw_Item_Shape_Into_Scene // 0x62
   Cmd_Set_Characters_Current_Frame // 0x63
   Cmd_Set_Characters_Current_Frame // 0x63
Line 134: Line 134:
   Cmd_Add_Item_To_Inventory // 0x69
   Cmd_Add_Item_To_Inventory // 0x69
   Cmd_Int_Print // 0x6A
   Cmd_Int_Print // 0x6A
   Cmd_Shake_Screen // 0x6B
   6B Cmd_Shake_Screen // 0x6B
   Cmd_Create_Amulet_Jewel // 0x6C
   Cmd_Create_Amulet_Jewel // 0x6C (last param pushed before: 01=yellow, 02=red, 03=pink, 04=blue)
   Cmd_Set_Scene_Anim_Curr_XY // 0x6D
   Cmd_Set_Scene_Anim_Curr_XY // 0x6D
   Cmd_Poison_Brandon_And_Remaps // 0x6E
   6E Cmd_Poison_Brandon_And_Remaps // 0x6E
   Cmd_Fill_Flask_With_Water // 0x6F
   6F Cmd_Fill_Flask_With_Water // 0x6F
    
    
   Cmd_Get_Characters_Movement_Delay // 0x70
   Cmd_Get_Characters_Movement_Delay // 0x70
   Cmd_Get_Birthstone_Gem // 0x71
   Cmd_Get_Birthstone_Gem // 0x71
   Cmd_Query_Brandon_Status_Bit // 0x72
   Cmd_Query_Brandon_Status_Bit // 0x72
   Cmd_Play_Flute_Animation // 0x73
   73 Cmd_Play_Flute_Animation // 0x73
   Cmd_Play_Winter_Scroll_Sequence // 0x74
   74 Cmd_Play_Winter_Scroll_Sequence // 0x74
   Cmd_Get_Idol_Gem // 0x75
   Cmd_Get_Idol_Gem // 0x75
   Cmd_Set_Idol_Gem // 0x76
   Cmd_Set_Idol_Gem // 0x76
Line 163: Line 163:
   Cmd_Set_Palette_Range // 0x84
   Cmd_Set_Palette_Range // 0x84
   85 Cmd_Shrink_Brandon_Down // 0x85
   85 Cmd_Shrink_Brandon_Down // 0x85
   86 Cmd_Grow_Brandon_Up // 0x86
   86 Cmd_Grow_Brandon_Up // 0x86
   Cmd_Set_Brandon_Scale_X_And_Y // 0x87
   Cmd_Set_Brandon_Scale_X_And_Y // 0x87
   Cmd_Reset_Scale_Mode // 0x88
   Cmd_Reset_Scale_Mode // 0x88
   Cmd_Get_Scale_Depth_Table_Value // 0x89
   Cmd_Get_Scale_Depth_Table_Value // 0x89
   Cmd_Set_Scale_Depth_Table_Value // 0x8A
   Cmd_Set_Scale_Depth_Table_Value // 0x8A
   Cmd_Message // 0x8B - set room name/status text (unk, stringID)
   8B Cmd_Message // 0x8B - set room name/status text (unk, stringID)
   Cmd_Check_Click_On_NPC // 0x8C
   Cmd_Check_Click_On_NPC // 0x8C
   Cmd_Get_Foyer_Item // 0x8D
   Cmd_Get_Foyer_Item // 0x8D
Line 190: Line 190:


   01              3 arguments    ; output string std color? (unk, unk, stringid) (see also 34)
   01              3 arguments    ; output string std color? (unk, unk, stringid) (see also 34)
  0B              4              ; walk to coordinates (unk, x,x,y) Cmd_Walk_Player_To_Point ?
   0D              4              ; remove item from screen? (removes note from desk)
   0D              4              ; remove item from screen? (removes note from desk)
  0E              1              ; pick up item (ie mousecursor=item id)
   29              4              ; play WSA file? (or just load it? coords?)
   29              4              ; play WSA file? (or just load it? coords?)
  34              4              ; output string defined color? (color, unk, unk, stringid) (see also 01)
   35              0              ; restore text background?
   35              0              ; restore text background?
  36              0              ; disable mouse cursor
 
  37              0              ; enable mouse cursor
  8B              2              ; set room name/status text (unk, stringID)
  91              0              ; copyprotection box pops up
  93              0              ; Brandon turns to stone anim?
</code>
</code>
334

edits

Navigation menu