Jump to content

Template:Engine calls/Boktai 1: Difference between revisions

Automated engine call table merge
Automated engine call table merge
Line 127: Line 127:
| 0xc419 || 0x080d48e8 || 6 ||  
| 0xc419 || 0x080d48e8 || 6 ||  
|-
|-
| 0xa16f || 0x080d75ac || 31 ||  
| 0xa16f || 0x080d75ac || 31 || ElevatorController_Create() - Call this before creating any elevators with engine call 0xa4fc
|-
|-
| 0x7443 || 0x080d7e5c || 14 ||  
| 0x7443 || 0x080d7e5c || 14 ||  
Line 411: Line 411:
| 0x6e80 || 0x080315ac || 1 ||  
| 0x6e80 || 0x080315ac || 1 ||  
|-
|-
| 0x8a05 || 0x080315e0 || 22 ||  
| 0x8a05 || 0x080315e0 || 22 || Django_Emote(...) - Displays an emote over Django's head, like an exclamation mark or a question mark.<br>
i: Django index (optional, for multiplayer)<br>
m: Emote (0=blue !, 1=white !, 2=white ?, ...)<br>
t: Speed (only used for certain emotes, like the speech bubble)
|-
|-
| 0xe14b || 0x08031830 || 18 ||  
| 0xe14b || 0x08031830 || 18 ||  
|-
|-
| 0x3613 || 0x080318fc || 328 ||  
| 0x3613 || 0x080318fc || 328 || Django_Lock() - Takes the player's control away, mostly for cutscenes.
|-
|-
| 0x933c || 0x080319a4 || 109 ||  
| 0x933c || 0x080319a4 || 109 || Django_MoveTo(p=(x,y,z), e=callback script ID, d=?) - Causes Django to walk somewhere. Mostly for cutscenes.
|-
|-
| 0xbb01 || 0x08031a8c || 9 ||  
| 0xbb01 || 0x08031a8c || 9 ||  
Line 443: Line 446:
| 0x58d7 || 0x080324f4 || 11 ||  
| 0x58d7 || 0x080324f4 || 11 ||  
|-
|-
| 0x4c4d || 0x080325c4 || 126 ||  
| 0x4c4d || 0x080325c4 || 126 || Django_Unlock() - Undoes the effect of engine call 0x3613.
|-
|-
| 0x598e || 0x08032654 || 2 ||  
| 0x598e || 0x08032654 || 2 ||  
Line 580: Line 583:
| 0x7659 || 0x08070e30 || 1 ||  
| 0x7659 || 0x08070e30 || 1 ||  
|-
|-
| 0xc1f2 || 0x08071004 || 1 ||  
| 0xc1f2 || 0x08071004 || 1 || Enemy_Sleep(n=enemy id) - Makes an enemy fall asleep
|-
|-
| 0x286b || 0x080710a8 || 1 ||  
| 0x286b || 0x080710a8 || 1 ||  
Line 642: Line 645:
| 0x3215 || 0x080d4700 || 2 ||  
| 0x3215 || 0x080d4700 || 2 ||  
|-
|-
| 0xa4fc || 0x080d6e40 || 37 ||  
| 0xa4fc || 0x080d6e40 || 37 || Elevator_Create(...)<br>
Creates an elevator. This only works after calling engine call 0xa16f. There are many possible keywords, this is just a subset:<br>
r: Spawn point. Should be 3 values: (path_id, 0, 0). The zeroes probably mean something. The path_id sets the spawn point of the elevator, that should be a [[Collision_map_file#Paths|path]] with 1 node. Only the X/Y coordinates of the node are relevant.<br>
Y: height range and initial position of the elevator. The order is (probably) min_y, max_y, initial_y.<br>
n: ID of the elevator. Used for controlling them later.<br>
f: Set to 0 or Django does strange things.<br>
m: Seems to affect how the callback (keyword R) gets called? 6 seems to be a safe value.<br>
k: Should be 2, 0 makes weird lava elevators, other values crash the game?<br>
R: Callback script ID, will be called when the elevator reaches its destination (but only if Django is on it?)<br>
s: Speed. The most common value is 16.<br>
T: Graphics. 1 is a basic iron platform, 0/2/3 are other options, there may be even mroe.<br>
|-
|-
| 0xb1c4 || 0x080d7604 || 3 ||  
| 0xb1c4 || 0x080d7604 || 3 || Elevator_Shake(n=elevator ID) - Shakes an elevator for 1 frame
|-
|-
| 0x7a75 || 0x080d763c || 25 ||  
| 0x7a75 || 0x080d763c || 25 ||  
|-
|-
| 0x7e33 || 0x080d76bc || 29 ||  
| 0x7e33 || 0x080d76bc || 29 || Elevator_Start(n=elevator ID, m=direction (1=down, 2=up, others?))
|-
|-
| 0xae3a || 0x080d7744 || 4 ||  
| 0xae3a || 0x080d7744 || 4 ||  
Line 1,037: Line 1,050:
| 0x9769 || 0x081cf624 || 56 ||  
| 0x9769 || 0x081cf624 || 56 ||  
|-
|-
| 0x8071 || 0x081cf6ac || 199 ||  
| 0x8071 || 0x081cf6ac || 199 || Camera_PanTo(p=(x,y,z), f=duration_frames, R=callback script ID (optional)) - For cutscenes
|-
|-
| 0xc15e || 0x081cf808 || 20 ||  
| 0xc15e || 0x081cf808 || 20 ||  
Line 1,043: Line 1,056:
| 0xbbaa || 0x081cf8c8 || 4 ||  
| 0xbbaa || 0x081cf8c8 || 4 ||  
|-
|-
| 0xf341 || 0x081cf920 || 75 ||  
| 0xf341 || 0x081cf920 || 75 || Camera_Reset(f=duration_frames, R=callback script ID (optional)) - Centers the camera on Django (useful to undo engine call 0x3824)
|-
|-
| 0xcaee || 0x081cfa14 || 15 ||  
| 0xcaee || 0x081cfa14 || 15 ||  
Line 1,092: Line 1,105:
| 0x5933 || 0x081d18a0 || 6 ||  
| 0x5933 || 0x081d18a0 || 6 ||  
|-
|-
| 0x53bf || 0x081d3730 || 108 ||  
| 0x53bf || 0x081d3730 || 108 || Sound_PlayMusic(i=sound ID) - Plays music. Exactly the same as engine call 0xe7ca.
|-
|-
| 0xe7ca || 0x081d3748 || 300 ||  
| 0xe7ca || 0x081d3748 || 300 || Sound_PlaySfx(i=sound ID) - Plays a sound effect. Exactly the same as engine call 0x53bf.
|-
|-
| 0x364d || 0x081d37ac || 19 ||  
| 0x364d || 0x081d37ac || 19 ||