Changeset 5341 for data/media
- Timestamp:
- Dec 10, 2008, 4:49:31 PM (16 years ago)
- Location:
- data/media/levels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
data/media/levels/CuboidSpaceStation.lua
r5333 r5341 13 13 14 14 -- This function creates a randomly generated space station. 15 -- The first argument ranSeed, must be false, or a positive Integer, if it is falseyour space station is always chosen randomly, if you give an integer,15 -- The first argument ranSeed, must be 0, or a positive Integer, if it is 0 your space station is always chosen randomly, if you give an integer, 16 16 -- your space station will be generated randomly, but once you have the space station it will always be the same. 17 17 -- The argument xLength defines how large the space station will be into the x-direction. … … 36 36 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 37 37 -- Create a randomseed, so that the math.random() function is actually random. 38 if ranSeed == falsethen38 if ranSeed == 0 then 39 39 math.randomseed(os.time()) 40 math.random() 40 41 else 41 42 math.randomseed(ranSeed) 43 math.random() 42 44 end 43 45 -- End create randomseed. … … 667 669 -- This function is for the lazy guys, which do not care how the space station looks like, so I use some good standard values. 668 670 function createSpaceStation() 669 createSpaceStationPar( false,4,1,2,1,6,1,100)671 createSpaceStationPar(0,4,1,2,1,6,1,100) 670 672 end 671 673 -- End createSpaceStaion() function. -
data/media/levels/CuboidSpaceStation.oxw
r5333 r5341 83 83 <?lua 84 84 -- Here I use the createSpaceStationPar(...) function, which has 8 arguments, see the .lua file at the top to understand them. 85 createSpaceStationPar( false,2,1,2,1,2,1,50)85 createSpaceStationPar(0,2,1,2,1,2,1,50) 86 86 ?> 87 87 </attached> -
data/media/levels/princessaeryn.oxw
r5339 r5341 183 183 <attached> 184 184 <?lua 185 createSpaceStationPar( 200,2,1,2,1,2,1,100)185 createSpaceStationPar(400,2,1,2,1,2,1,100) 186 186 ?> 187 187 <QuestEffectBeacon position="-200,250,500" times=1> … … 206 206 <attached> 207 207 <?lua 208 createSpaceStationPar( 200,2,1,2,1,2,1,100)208 createSpaceStationPar(600,2,1,2,1,2,1,100) 209 209 ?> 210 210 <QuestEffectBeacon position="0,450,0" times=1>
Note: See TracChangeset
for help on using the changeset viewer.