Jump to content

Template:Engine calls/Boktai 3: Difference between revisions

Automated engine call table merge
Automated engine call table merge
Line 157: Line 157:
| 0xdb8d || 0x080f752c || 2 ||  
| 0xdb8d || 0x080f752c || 2 ||  
|-
|-
| 0xa16f || 0x08103a84 || 44 ||  
| 0xa16f || 0x08103a84 || 44 || ElevatorController_Create() - Call this before creating any elevators with engine call 0xa4fc
|-
|-
| 0xc60f || 0x08106d64 || 2 ||  
| 0xc60f || 0x08106d64 || 2 ||  
Line 642: Line 642:
| 0xab8e || 0x0810067c || 2 ||  
| 0xab8e || 0x0810067c || 2 ||  
|-
|-
| 0xa4fc || 0x08103110 || 5 ||  
| 0xa4fc || 0x08103110 || 5 || 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 || 0x08103adc || 1 ||  
| 0xb1c4 || 0x08103adc || 1 || Elevator_Shake(n=elevator ID) - Shakes an elevator for 1 frame
|-
|-
| 0x7e33 || 0x08103b94 || 2 ||  
| 0x7e33 || 0x08103b94 || 2 || Elevator_Start(n=elevator ID, m=direction (1=down, 2=up, others?))
|-
|-
| 0xae3a || 0x08103c1c || 3 ||  
| 0xae3a || 0x08103c1c || 3 ||  
Line 758: Line 768:
| 0x6f85 || 0x0815cac8 || 6 ||  
| 0x6f85 || 0x0815cac8 || 6 ||  
|-
|-
| 0x3613 || 0x0815caf0 || 9 ||  
| 0x3613 || 0x0815caf0 || 9 || Django_Lock() - Takes the player's control away, mostly for cutscenes.
|-
|-
| 0x9ffd || 0x0815cb20 || 6 ||  
| 0x9ffd || 0x0815cb20 || 6 ||  
Line 768: Line 778:
| 0x5f70 || 0x0815cbc0 || 1 ||  
| 0x5f70 || 0x0815cbc0 || 1 ||  
|-
|-
| 0x933c || 0x0815cbf8 || 17 ||  
| 0x933c || 0x0815cbf8 || 17 || Django_MoveTo(p=(x,y,z), e=callback script ID, d=?) - Causes Django to walk somewhere. Mostly for cutscenes.
|-
|-
| 0x9763 || 0x0815ccf8 || 6 ||  
| 0x9763 || 0x0815ccf8 || 6 ||  
Line 794: Line 804:
| 0x4cdd || 0x0815d524 || 2 ||  
| 0x4cdd || 0x0815d524 || 2 ||  
|-
|-
| 0x4c4d || 0x0815d590 || 2 ||  
| 0x4c4d || 0x0815d590 || 2 || Django_Unlock() - Undoes the effect of engine call 0x3613.
|-
|-
| 0xf04a || 0x081630bc || 1 ||  
| 0xf04a || 0x081630bc || 1 ||  
Line 977: Line 987:
| 0x9769 || 0x08226670 || 35 ||  
| 0x9769 || 0x08226670 || 35 ||  
|-
|-
| 0x8071 || 0x082266d4 || 67 ||  
| 0x8071 || 0x082266d4 || 67 || Camera_PanTo(p=(x,y,z), f=duration_frames, R=callback script ID (optional)) - For cutscenes
|-
|-
| 0xbbaa || 0x08226868 || 24 ||  
| 0xbbaa || 0x08226868 || 24 ||  
|-
|-
| 0xf341 || 0x08226894 || 17 ||  
| 0xf341 || 0x08226894 || 17 || Camera_Reset(f=duration_frames, R=callback script ID (optional)) - Centers the camera on Django (useful to undo engine call 0x3824)
|-
|-
| 0xcaee || 0x082268c0 || 33 ||  
| 0xcaee || 0x082268c0 || 33 ||  
Line 1,034: Line 1,044:
| 0x5933 || 0x082290e8 || 1 ||  
| 0x5933 || 0x082290e8 || 1 ||  
|-
|-
| 0x53bf || 0x0822aee0 || 36 ||  
| 0x53bf || 0x0822aee0 || 36 || Sound_PlayMusic(i=sound ID) - Plays music. Exactly the same as engine call 0xe7ca.
|-
|-
| 0xe7ca || 0x0822aef8 || 76 ||  
| 0xe7ca || 0x0822aef8 || 76 || Sound_PlaySfx(i=sound ID) - Plays a sound effect. Exactly the same as engine call 0x53bf.
|-
|-
| 0x364d || 0x0822af5c || 6 ||  
| 0x364d || 0x0822af5c || 6 ||  
Line 1,235: Line 1,245:
| 0x7659 || 0x080706dc ||  
| 0x7659 || 0x080706dc ||  
|-
|-
| 0xc1f2 || 0x080707ec ||  
| 0xc1f2 || 0x080707ec || Enemy_Sleep(n=enemy id) - Makes an enemy fall asleep
|-
|-
| 0x4fd1 || 0x08070910 ||  
| 0x4fd1 || 0x08070910 ||