1 | <?lua |
---|
2 | include("hudtemplates3.oxo") |
---|
3 | include("stats.oxo") |
---|
4 | include("templates/spaceship_assff.oxt") |
---|
5 | include("templates/spaceship_HXY_SL.oxt") |
---|
6 | include("templates/spaceship_pirate.oxt") |
---|
7 | ?> |
---|
8 | |
---|
9 | <NotificationQueue |
---|
10 | name = "notification" |
---|
11 | position = "0.40, 0.05" |
---|
12 | font = "VeraMono" |
---|
13 | textsize = 0.020 |
---|
14 | length = 3 |
---|
15 | width = 50 |
---|
16 | /> |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | <Level |
---|
21 | name="Dani's Testlevel" |
---|
22 | description="Erste Versuche mit den Quests" |
---|
23 | > |
---|
24 | |
---|
25 | <Scene |
---|
26 | ambientlight = "0.3, 0.3, 0.3" |
---|
27 | skybox = "Orxonox/skypanoramagen1" |
---|
28 | > |
---|
29 | <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" /> |
---|
30 | |
---|
31 | |
---|
32 | <GlobalQuest id="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551"> |
---|
33 | <QuestDescription title="Fight for freedom" |
---|
34 | description="Just a few hours ago, a group of pirates attacked an killed all your friends. Now you are very angry and you want to take revenge. Find the pirates and kill them!" |
---|
35 | failmessage="You are a loser, now the whole universe will be controlled by the pirates!" |
---|
36 | completeMessage="Yeah, you did it! Now there will be peace in the whole universe. You are a hero!"/> |
---|
37 | <subquests> |
---|
38 | <GlobalQuest id="3159b4d4-bc86-4190-ba1d-4530668dfe31"> |
---|
39 | <QuestDescription title="A few problems occured!" |
---|
40 | description="This pirates are only a small part of the whole fleet. It isn't as easy as you think... Another problem is, that they've stolen |
---|
41 | a very important memory stick with secret infos, the holy stick. You must get it back!" |
---|
42 | failmessage="" |
---|
43 | completeMessage="Unbelievable, you annihilated all pirates and got the stolen memory stick. |
---|
44 | But wait... this is the memory stick you looked for... anyway, it's helpful: There is a map saved on it, which leads you to a pirate - base. Perhaps you'll find more there..."/> |
---|
45 | </GlobalQuest> |
---|
46 | <GlobalQuest id="8d8ed3a6-74a6-4491-9172-26155cff151d"> |
---|
47 | <QuestDescription title="Find the Base" |
---|
48 | description="Now you are in possession of the map and it should be easy to find the base. Because you are the best fight pilot of mankind, your ship has been pimped before you started your mission. |
---|
49 | They installed a very modern navigation system, which leads you precisely to your desired destination..." |
---|
50 | failmessage="" |
---|
51 | completeMessage="The navigation system worked very well and now you should be near a pirate -base." /> |
---|
52 | </GlobalQuest> |
---|
53 | |
---|
54 | </subquests> |
---|
55 | <hints> |
---|
56 | <QuestHint id="2b85f32c-2433-4f1a-bdd4-f24d20c9403c"> |
---|
57 | <QuestDescription title="Useful to know" description="Pirates like to hide themselves behind asteroids."/> |
---|
58 | </QuestHint> |
---|
59 | </hints> |
---|
60 | <fail-effects> |
---|
61 | </fail-effects> |
---|
62 | <complete-effects> |
---|
63 | </complete-effects> |
---|
64 | </GlobalQuest> |
---|
65 | |
---|
66 | <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> |
---|
67 | <events> |
---|
68 | <spawn> |
---|
69 | <EventTrigger delay=1> |
---|
70 | <events> |
---|
71 | <trigger> |
---|
72 | <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
73 | </trigger> |
---|
74 | </events> |
---|
75 | </EventTrigger> |
---|
76 | </spawn> |
---|
77 | </events> |
---|
78 | <attached> |
---|
79 | <QuestEffectBeacon position="0,0,0" times=1> |
---|
80 | <effects> |
---|
81 | <AddQuest questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" /> |
---|
82 | </effects> |
---|
83 | <events> |
---|
84 | <execute> |
---|
85 | <EventListener event=questbeacon1 /> |
---|
86 | </execute> |
---|
87 | </events> |
---|
88 | <attached> |
---|
89 | <DistanceMultiTrigger name=questbeacon1 position="0,0,0" distance=100 target="Pawn" /> |
---|
90 | </attached> |
---|
91 | </QuestEffectBeacon> |
---|
92 | </attached> |
---|
93 | </ParticleSpawner> |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | <!-- AddSubQuest1 (Questbeacon2)--> |
---|
98 | <QuestEffectBeacon position="<?lua print(math.random()*1000-500)?>,<?lua print(math.random()*1000-500)?>,<?lua print(math.random()*200-2000)?>" times=1> |
---|
99 | <attached> |
---|
100 | <Billboard position="0,0,0" scale=1 colour="1.0,1.0,0" material="Examples/Flare" /> |
---|
101 | <DistanceMultiTrigger name=questbeacon2 position="0,0,0" distance=200 target="Pawn" /> |
---|
102 | </attached> |
---|
103 | <effects> |
---|
104 | <AddQuest questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" /> |
---|
105 | </effects> |
---|
106 | <events> |
---|
107 | <execute> |
---|
108 | <EventListener event=questbeacon2 /> |
---|
109 | </execute> |
---|
110 | </events> |
---|
111 | </QuestEffectBeacon> |
---|
112 | |
---|
113 | <!-- hint (Questbeacon3)--> |
---|
114 | <QuestEffectBeacon position="<?lua print(math.random()*1000-500)?>,<?lua print(math.random()*1000-500)?>,<?lua print(math.random()*200-500)?>" times=1> |
---|
115 | <attached> |
---|
116 | <Billboard position="0,0,0" scale=1 colour="0,1.0,0" material="Examples/Flare" /> |
---|
117 | <DistanceMultiTrigger name=questbeacon3 position="0,0,0" distance=300 target="Pawn" /> |
---|
118 | </attached> |
---|
119 | <effects> |
---|
120 | <AddQuestHint hintId="2b85f32c-2433-4f1a-bdd4-f24d20c9403c" /> |
---|
121 | </effects> |
---|
122 | <events> |
---|
123 | <execute> |
---|
124 | <EventListener event=questbeacon3 /> |
---|
125 | </execute> |
---|
126 | </events> |
---|
127 | </QuestEffectBeacon> |
---|
128 | |
---|
129 | <!-- finish Quest (Questbeacon4)--> |
---|
130 | <QuestEffectBeacon position="<?lua print(math.random()*1000)?>,<?lua print(math.random()*1000)?>,<?lua print(math.random()*200-6000)?>" times=1> |
---|
131 | <attached> |
---|
132 | <Billboard position="0,0,0" scale=1 colour="0,1.0,0" material="Examples/Flare" /> |
---|
133 | <DistanceMultiTrigger name=questbeacon4 position="0,0,0" distance=200 target="Pawn" /> |
---|
134 | </attached> |
---|
135 | |
---|
136 | <effects> |
---|
137 | <CompleteQuest questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" /> |
---|
138 | </effects> |
---|
139 | <events> |
---|
140 | <execute> |
---|
141 | <EventListener event=questbeacon4 /> |
---|
142 | </execute> |
---|
143 | </events> |
---|
144 | </QuestEffectBeacon> |
---|
145 | |
---|
146 | <!-- pirates --> |
---|
147 | <?lua |
---|
148 | for i = 1,2, 1 |
---|
149 | do |
---|
150 | ?> |
---|
151 | <SpaceShip position="<?lua print(math.random()*100)?>,<?lua print(math.random()*100)?>,<?lua print(math.random()*100-2000)?>"> |
---|
152 | <templates> |
---|
153 | <Template link=spaceshipHXYSL /> |
---|
154 | </templates> |
---|
155 | <controller> |
---|
156 | <WaypointPatrolController alertnessradius=1000 team=0 active=true> |
---|
157 | <waypoints> |
---|
158 | <StaticEntity position="0,<?lua print(math.random()*50)?> ,<?lua print(i*50 -2000) ?>" /> |
---|
159 | </waypoints> |
---|
160 | </WaypointPatrolController> |
---|
161 | </controller> |
---|
162 | <attached> |
---|
163 | </attached> |
---|
164 | </SpaceShip> |
---|
165 | <?lua |
---|
166 | end |
---|
167 | ?> |
---|
168 | |
---|
169 | |
---|
170 | <?lua |
---|
171 | for i = 1,5, 1 |
---|
172 | do |
---|
173 | ?> |
---|
174 | <SpaceShip position="<?lua print(math.random()*100)?>,<?lua print(math.random()*100)?>,<?lua print(math.random()*100-6000)?>"> |
---|
175 | <templates> |
---|
176 | <Template link=spaceshipHXYSL /> |
---|
177 | </templates> |
---|
178 | <controller> |
---|
179 | <WaypointPatrolController alertnessradius=1000 team=0 active=true> |
---|
180 | <waypoints> |
---|
181 | <StaticEntity position="0,<?lua print(math.random()*50)?> ,<?lua print(i*50 -6000) ?>" /> |
---|
182 | </waypoints> |
---|
183 | </WaypointPatrolController> |
---|
184 | </controller> |
---|
185 | <attached> |
---|
186 | </attached> |
---|
187 | </SpaceShip> |
---|
188 | <?lua |
---|
189 | end |
---|
190 | ?> |
---|
191 | |
---|
192 | |
---|
193 | <!-- Asteroid field--> |
---|
194 | <StaticEntity position="-400,2000,-7000"> |
---|
195 | <attached> |
---|
196 | <?lua |
---|
197 | for i = 1, 220 |
---|
198 | do ?> |
---|
199 | <MovableEntity position="<?lua print(math.random() * 10000 -5000)?>, <?lua print(math.random() * 10000-5000) ?>, <?lua print(math.random() * 10000 -7000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.abs(math.random() * 30 -10)) ?>"> |
---|
200 | <attached> |
---|
201 | <Model scale="<?lua print(math.random() * 80) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
202 | </attached> |
---|
203 | </MovableEntity> |
---|
204 | <?lua |
---|
205 | end |
---|
206 | ?> |
---|
207 | </attached> |
---|
208 | </StaticEntity> |
---|
209 | |
---|
210 | </Scene> |
---|
211 | </Level> |
---|