//"nsp4" config file by: nieb

loadsky "niebsky/morn"

fog 300
fogcolour 0xFFFFFF

//------------------------------------------------------


mapmodelreset
mapmodel 1  8 0 0 "tree1"		// 0
mapmodel 4  3 4 2 "bridge"		// 1
mapmodel 6 12 0 0 "dcp/tree2"		// 2
mapmodel 2  8 0 0 "dcp/tree3"		// 3
mapmodel 1  9 0 0 "dcp/palmtree"	// 4
mapmodel 1  0 0 0 "dcp/thorns"		// 5
mapmodel 1  0 0 0 "dcp/plant1"		// 6
mapmodel 1  0 0 0 "dcp/grass"		// 7
mapmodel 3  0 0 0 "dcp/ivy"		// 8
mapmodel 1  3 0 0 "dcp/barrel"		// 9
mapmodel 1 11 0 0 "dcp/streetlamp"	// 10
mapmodel 3  2 0 0 "dcp/bench"		// 11
mapmodel 1  8 0 0 "dcp/pillar"		// 12
mapmodel 2  2 0 0 "dcp/waterbowl"	// 13
mapmodel 2  0 0 0 "dcp/jumppad2"	// 14
mapmodel 2  0 0 0 "dcp/leafs"		// 15
mapmodel 3  3 0 0 "dcp/valve"		// 16
mapmodel 3  1 0 0 "dcp/palette"		// 17
mapmodel 2  2 0 0 "dcp/vent"		// 18
mapmodel 1  0 0 0 "dcp/mushroom"	// 19
mapmodel 3  8 0 0 "dcp/biotank"		// 20
mapmodel 1  3 0 0 "dcp/groundlamp"	// 21
mapmodel 2  3 0 0 "dcp/console"		// 22
mapmodel 1  3 0 0 "dcp/turret" 		// 23
mapmodel 4  20 0 0 "nieb/nothing"       // 24


//------------------------------------------------------


alias level_trigger_1 [echo "All RED doors are now open!"]
alias level_trigger_2 [echo "All BLUE doors are now open!"]
alias level_trigger_3 [echo "All YELLOW doors are now open!"]
alias level_trigger_4 [echo "All WHITE doors are now open!"]

alias secretcount 0

alias foundsecret [alias secretcount (+ $secretcount 1)]
alias endlevel [if (< $secretcount 5) [echo Keep trying...You found ($secretcount) out of 5 secrets. ] [ echo You found them all, 5 out of 5 secrets! ]]

alias level_trigger_50 [foundsecret; echo "You found secret 1 of 5"]
alias level_trigger_51 [foundsecret; echo "You found secret 2 of 5"]
alias level_trigger_52 [foundsecret; echo "You found secret 3 of 5"]
alias level_trigger_53 [foundsecret; echo "You found secret 4 of 5"]
alias level_trigger_54 [foundsecret; echo "You found secret 5 of 5"]

alias level_trigger_255 [endlevel]


//------------------------------------------------------


texturereset    

texture 0 "ik2k/ik_sky_day_back.jpg"     
texture 0 "kurt/kwater.jpg"
