Random Space
Posted: Wed Mar 04, 2009 4:02 pm
This is for a space map i'm making.....
Now, space maps are fun, but its seems a little pointless filling up the IA box with a whole list of maps with different layouts and skys (what I'm doing). So I'd like to have the sky's used random (I've got 7 atm, making more) but also have random ship layout/space objects(asteroids, junk).
1) Loading random sky files:
I know how its possible to load different skys, I just need to know the code you use to make them random.
2) Loading random layouts.
Well here's the harder one.....is it possible (while keeping online compatible) to have the lua or addme.lua load a random layout (eg a random layer)? Or to have one mode/era load a random map (ie one out of four maps, all with a different layout)?
Now, space maps are fun, but its seems a little pointless filling up the IA box with a whole list of maps with different layouts and skys (what I'm doing). So I'd like to have the sky's used random (I've got 7 atm, making more) but also have random ship layout/space objects(asteroids, junk).
1) Loading random sky files:
I know how its possible to load different skys, I just need to know the code you use to make them random.
2) Loading random layouts.
Well here's the harder one.....is it possible (while keeping online compatible) to have the lua or addme.lua load a random layout (eg a random layer)? Or to have one mode/era load a random map (ie one out of four maps, all with a different layout)?