Example of an usual chapter file

The following code shows an example ".chp" chapter file.


01 <?xml version="1.0" encoding="ISO-8859-1"?>
02 
03 <chapter>
04   <loadscreen file="./images/screens/load_screen.png"/>
05   <conversations file="./locations/chapter1/conversations.con"/>
06   <room file="./locations/chapter1/buro.room" cam="0"/>
07   <room file="./locations/chapter1/map_chicago.room" cam="0"/>
08   <room file="./locations/chapter1/bibliothek_foyer.room" cam="0"/>
09   <room file="./locations/chapter1/lesesaal.room" cam="0"/>
10   <player id="player" scriptid="player" type="ms3dascii" smooth="false" shadow="true">
11     <room>buro</room>
12     <inventory type="bar"/>
13     <name>Alfons Catraz</name>
14     <file>./models/ms3d/player/player.txt</file>
15     <texture unit="0" mipmap="true" rotate="false" flip="false">./models/ms3d/player/texture_bw.jpg</texture>
16     <animation name="walk" start="1" end="9" timeperframe="75" sound="./sounds/fx/footsteps.mp3" loopsound="true"/>
17     <animation name="pickup" start="10" end="12" timeperframe="115" sound="./sounds/fx/zipper.mp3" loopsound="false"/>
18     <animation name="give" start="10" end="12" timeperframe="115"/>
19     <animation name="idle" start="16" end="22" timeperframe="85"/>
20     <position x="-3.0" y="0.0" z="-4.0"/>
21     <rotation x="0.0" y="0.0" z="0.0"/>
22     <scale x="0.15" y="0.15" z="0.15"/>
23   </player>
24 </chapter>
Java2html