Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS17/data/levels/DialogueShowcase2.oxw @ 11634

Last change on this file since 11634 was 11579, checked in by kuchlert, 7 years ago

some bug fixed most not

File size: 2.6 KB
Line 
1<LevelInfo
2 name = "DialogueShowcase2"
3 description = "A level to show and test the functionality of the Dialogue module."
4 tags = "test"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12  include("templates/HeavyCruiser.oxt")
13?>
14
15<?lua
16  include("templates/spaceshipEscort.oxt")
17  include("templates/endurancetest_template.oxt")
18?>
19
20<Level>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25 
26
27  <Scene
28    ambientlight = "0.8, 0.8, 0.8"
29    skybox       = "Orxonox/Starbox"
30  >
31 <DistanceTrigger name="test" position="100,0,100" target="Pawn" distance=25 stayActive="true" />
32    <Backlight position="100,0,100" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,0,1"/>
33   
34    <Dialog name="Kurt" currentQuestionId="loop">
35      <Question question="Soll ich dich loopen?" Id="loop">
36        <AnswerId Id="ja"/>
37        <AnswerId Id="nein"/>
38      </Question>
39      <Question question="Dann eben nicht" Id="ok"/>
40      <Answer Id="ja" answer="ja loop mich" nextQuestionId="loop"/>
41      <Answer Id="nein" answer="lieber nicht" nextQuestionId="ok"/>
42      <events>
43        <execute>
44          <EventListener event="test"/>
45        </execute>
46      </events>
47    </Dialog>
48
49    <DistanceTrigger name="test1" position="100,0,-100" target="Pawn" distance=25 stayActive="true" />
50    <Backlight position="100,0,-100" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,1"/>
51   
52    <NextQuestion  question="Hey,  sorry to bother you,  could you help me with something?" a1="Yeah sure." a2="Nope get lost." >
53     <possibleQuestions>
54        <NextQuestion  question="Do you like fish" a1="...yes?" a2="This is wasting my time." >
55        <possibleQuestions>
56          <NextQuestion  question="Splendid! Would you like your ship to look like one?" a1="..." a2="I'm going now,  okay?" />
57          <NextQuestion  question="Turtles then?" a1="..." a2="Im going now,  okay?" />
58        </possibleQuestions>
59        </NextQuestion>
60        <NextQuestion  question="I can pay you know." a1="Got enough money." a2="...are you deaf? Bye."/>
61      </possibleQuestions>   
62      <events>
63        <execute>
64           <EventListener event="test1" />
65        </execute>
66      </events>
67    </NextQuestion>
68
69   
70
71    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
72    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
73
74   
75   
76  </Scene>
77</Level>
Note: See TracBrowser for help on using the repository browser.