/* x converter
load object "coin.x",1
save object "Media\art\coin.dbo",1
delete object 1
*/

//file names and messages may not contain spaces, for messages: spaces = _


execute script "Scripts\helptext.txt"


//====================MEDIA SETUP=================
media load sounds "Media\data\sounds.txt"
media load enemytypes "Media\data\enemydata.txt"
media load effecttypes "Media\data\particleeffects.txt"
media load itemtypes "Media\data\itemsdata.txt"
media load effectemitters "Media\data\effectemitters.txt"

//====================VARIABLE SETUP=================
//space after = is required

radius= 3.7

jumpspeed= 1.2

walkspeed= 0.2

gravity= -0.05

slope= 0.79

stairjumpspeed= 0.14

heightadd= 0.8

//====================TERRAIN SETUP=================

//load terrain "Media\world\world4.etm",1000,800,1,1,1,1,1,1,0,1,0,200.0,0.5,0.5

load object "Media\world\wd12.x",990
//save object "Media\world\wd12.dbo",990

position object 990,0,0,0

set object transparency 990,4

scale object 990,1500,1500,1500
phy save rigid body static mesh 990,"Media\world\wd12.phy"
sc_setupobject 990,1,0

/*
load object "Media\world\wd1.dbo",991



set object transparency 991,4

scale object 991,1500,1500,1500
phy save rigid body static mesh 991,"Media\world\wd1.phy"
position object 991,-700,0,-100
sc_setupobject 991,1,0
*/

/*


load object "Media\world\dbo__tree2.dbo",2001,1
load image "Media\world\tree2.png",4000
texture object 2001,4000
set object transparency 2001,6

load object "Media\world\Rock03.dbo",2002,1
load image "Media\world\etstone1.jpg",4001
texture object 2002,4001


load object "Media\world\stone.x",2003,1
//save object "Media\world\stone.dbo",2003,1
texture object 2003,4001
set object smoothing 2003,100

load object "Media\world\oak.x",2004,1
save object "Media\world\oak.dbo",2004,1
set object normals 2004
set object transparency 2004,6


//phy save rigid body static mesh 2004,"Media\world\oak.phy"
set object smoothing 2003,100
execute script "entytis.txt"
*/

/*
make object box 1000,1000,1000,2


rotate object 1000,90,0,0

sc_setupobject 1000,1,0

phy make rigid body static box 1000
*/


//====================SKY/WEATHER SETUP=================

//w1
load music "Media\sound\TownMain-001.mp3",2
set music volume 2,70
load image "Media\art\sky1_low.dds",500

//w2
load music "Media\sound\SneakLevel1.wav",3
set music volume 3,70
load image "Media\art\sky2_low.dds",501

//w3
load music "Media\sound\TownMerchant-002.wav",4
set music volume 4,70
load sound "Media\sound\regen.wav",5
load image "Media\art\sky3_low.dds",502

//w4
load music "Media\sound\TownMain-012.wav",5
set music volume 5,70
load sound "Media\sound\GoodWind.wav",6
set sound volume 6,90
load image "Media\art\sky4_low.dds",503

execute script "Scripts\weatherNormal.txt"

//key "1"
bind key to script 2,"Scripts\weatherNormal.txt"
//key "2"
bind key to script 3,"Scripts\weatherNight.txt"
//key "3"
bind key to script 4,"Scripts\weatherRain.txt"
//key "4"
bind key to script 5,"Scripts\weatherSnow.txt"
//key "5"
bind key to script 6,"Scripts\daytextures.txt"

//key "0"
bind key to script 11,"Scripts\helptext.txt"



