DEX files are used to store cutscenes and scripted events. They're found in the episode/
folder, specifically the files starting with e
(episode/e0001
, episode/e0046
, etc). They're closely related to DEP files, which control the triggers for cutscenes/scripted events. For each DEX file, there's a matching DEP file with the same name, minus the e
.
A DEX file is split up into a number of blocks. Each block is simply a list of commands that run in order. Every block also has an ID number, but it's not stored in the DEX file1.
There are many different commands, and each one takes a different number of arguments. There are multiple types of arguments, such as a character, a line of dialogue, or a sound effect. Each command has an ID number associated with it.
Argument type | Description |
---|---|
|
Either or
|
|
A character |
|
An angle. is facing right and is facing down |
|
A line of dialogue |
|
An animated effect that pops up on a character, like "haha" or "ugh" |
|
A fixed-point number, which can have a fractional component |
|
See Flags |
|
A particular fossil (see Fossils) |
|
A number of frames |
|
An image |
|
A whole number |
|
An area of the world, like a room or digsite |
|
An animated motion a character can make, like spinning around or falling over |
|
A music track |
|
A sound effect, like a chime or ding |
|
An argument whos type is unknown |
|
This is techncally two arguments, but they make a pair together, like coordinates (for example, ) |
|
A vivosaur |
1 |
|
---|---|
Show example |
|
2 |
|
Show example |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
9 |
|
There are many 'slots' in various places across the game's maps, which are specific locations a character can be spawned at. For example, the place you stand in the Fossil Stadium lobby after successfully leveling up is one such slot. | |
10 |
|
14 |
|
20 |
|
21 |
|
22 |
|
23 |
|
32 |
|
Show example |
|
33 |
|
Show example |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
43 |
|
44 |
|
45 |
|
47 |
|
50 |
|
51 |
|
Causes the player to control a different character!!! Normally this is used during cutscenes to move the camera's focus without moving Hunter, but it still works when not in a cutscene >:) | |
55 |
|
Show example |
|
56 |
|
Simply does nothing for a number of frames. Fossil Fighters runs at 60fps, so delay delays for one second. |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
70 |
|
71 |
|
72 |
|
75 |
|
80 |
|
82 |
|
86 |
|
90 |
|
91 |
|
97 |
|
102 |
|
103 |
|
104 |
|
106 |
|
107 |
|
Fossil rocks given by this command have their names shown in the case | |
108 |
|
Fossil rocks given by this command are called "New Fossil Rock" in the case | |
112 |
|
113 |
|
114 |
|
115 |
|
117 |
|
118 |
|
119 |
|
124 |
|
125 |
|
128 |
|
129 |
|
131 |
|
134 |
|
135 |
|
136 |
|
138 |
|
142 |
|
143 |
|
144 |
|
Show example |
|
145 |
|
150 |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 |
|
159 |
|
180 |
|
190 |
|
191 |
|
194 |
|
200 |
|
201 |
|
202 |
|
203 |
|
206 |
|
71 |
|
---|---|
107 |
|