Template:Engine calls: Difference between revisions

m make mwparserfromhell happy
cutscene stuff
 
(One intermediate revision by the same user not shown)
Line 418: Line 418:
Only visuals (obj), does not affect colission
Only visuals (obj), does not affect colission
|-
|-
| 0x2a8c || 1__ || Camera_ConnectToTilemap(...) - Positions the camera on the tile map (call every frame)
| 0x2a8c || 1__ || Camera_SetBounds2(min_x, max_x, min_y, max_y) // How is this different to Camera_SetBounds()?
|-
|-
| 0x2aab || 1__ ||  
| 0x2aab || 1__ ||  
Line 534: Line 534:
| 0x3590 || 1__ ||  
| 0x3590 || 1__ ||  
|-
|-
| 0x3613 || 123 ||  
| 0x3613 || 123 || Django_Lock() - Takes the player's control away, mostly for cutscenes.
|-
|-
| 0x3620 || __3 ||  
| 0x3620 || __3 ||  
Line 750: Line 750:
| 0x4bef || 1__ ||  
| 0x4bef || 1__ ||  
|-
|-
| 0x4c4d || 123 ||  
| 0x4c4d || 123 || Django_Unlock() - Undoes the effect of engine call 0x3613.
|-
|-
| 0x4cbb || 123 ||  
| 0x4cbb || 123 ||  
Line 810: Line 810:
| 0x5365 || 123 ||  
| 0x5365 || 123 ||  
|-
|-
| 0x53bf || 123 ||  
| 0x53bf || 123 || Sound_PlayMusic(i=sound ID) - Plays music. Exactly the same as engine call 0xe7ca.
|-
|-
| 0x53f4 || 1__ ||  
| 0x53f4 || 1__ ||  
Line 1,261: Line 1,261:
| 0x7df5 || 1__ ||  
| 0x7df5 || 1__ ||  
|-
|-
| 0x7e33 || 123 ||  
| 0x7e33 || 123 || Elevator_Start(n=elevator ID, m=direction (1=down, 2=up, others?))
|-
|-
| 0x7e73 || _23 ||  
| 0x7e73 || _23 ||  
Line 1,283: Line 1,283:
| 0x806a || 1__ ||  
| 0x806a || 1__ ||  
|-
|-
| 0x8071 || 123 ||  
| 0x8071 || 123 || Camera_PanTo(p=(x,y,z), f=duration_frames, R=callback script ID (optional)) - For cutscenes
|-
|-
| 0x8089 || 123 || Map_SpawnLoadingZoneIndicator(n=loading_zone_id)
| 0x8089 || 123 || Map_SpawnLoadingZoneIndicator(n=loading_zone_id)
Line 1,379: Line 1,379:
| 0x89c6 || _23 ||  
| 0x89c6 || _23 ||  
|-
|-
| 0x8a05 || 1__ ||  
| 0x8a05 || 1__ || 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)
|-
|-
| 0x8a21 || _2_ ||  
| 0x8a21 || _2_ ||  
Line 1,476: Line 1,479:
| 0x9311 || 123 ||  
| 0x9311 || 123 ||  
|-
|-
| 0x933c || 123 ||  
| 0x933c || 123 || Django_MoveTo(p=(x,y,z), e=callback script ID, d=?) - Causes Django to walk somewhere. Mostly for cutscenes.
|-
|-
| 0x9386 || _2_ ||  
| 0x9386 || _2_ ||  
Line 1,596: Line 1,599:
| 0xa169 || 1__ ||  
| 0xa169 || 1__ ||  
|-
|-
| 0xa16f || 123 ||  
| 0xa16f || 123 || ElevatorController_Create() - Call this before creating any elevators with engine call 0xa4fc
|-
|-
| 0xa1af || 1__ ||  
| 0xa1af || 1__ ||  
Line 1,628: Line 1,631:
| 0xa46e || __3 ||  
| 0xa46e || __3 ||  
|-
|-
| 0xa4fc || 123 ||  
| 0xa4fc || 123 || 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>
|-
|-
| 0xa58d || 1__ ||  
| 0xa58d || 1__ ||  
Line 1,768: Line 1,781:
| 0xb189 || _2_ ||  
| 0xb189 || _2_ ||  
|-
|-
| 0xb1c4 || 123 ||  
| 0xb1c4 || 123 || Elevator_Shake(n=elevator ID) - Shakes an elevator for 1 frame
|-
|-
| 0xb1f3 || __3 ||  
| 0xb1f3 || __3 ||  
Line 1,890: Line 1,903:
| 0xc15e || 123 ||  
| 0xc15e || 123 ||  
|-
|-
| 0xc1f2 || 123 ||  
| 0xc1f2 || 123 || Enemy_Sleep(n=enemy id) - Makes an enemy fall asleep
|-
|-
| 0xc233 || _23 ||  
| 0xc233 || _23 ||  
Line 2,241: Line 2,254:
| 0xe7bc || __3 ||  
| 0xe7bc || __3 ||  
|-
|-
| 0xe7ca || 123 ||  
| 0xe7ca || 123 || Sound_PlaySfx(i=sound ID) - Plays a sound effect. Exactly the same as engine call 0x53bf.
|-
|-
| 0xe832 || __3 ||  
| 0xe832 || __3 ||  
Line 2,371: Line 2,384:
| 0xf33f || _2_ ||  
| 0xf33f || _2_ ||  
|-
|-
| 0xf341 || 123 ||  
| 0xf341 || 123 || Camera_Reset(f=duration_frames, R=callback script ID (optional)) - Centers the camera on Django (useful to undo engine call 0x3824)
|-
|-
| 0xf3a3 || __3 ||  
| 0xf3a3 || __3 ||