I have updated the dialogues functions and added some new entites to set some screen effects
Its now possible to trigger a screen_overlay entity what can add a screen sized sprite overlay. The other function of this entity is to set a custom fade color.
* New model rig
Screen overlay with setcolor 10,0,0,100
This is how an example map file looks like:
terrain,volcano_h.png,volcano_t.png,detail_land.png,2125,-105,-1639,180,16,2.4,16
sky,sky2.png
water,water2.png
clouds,clouds.png
enviroment,0,200,300,25,10,0.1
' screen_overlay,overlay1.png,200,255,0,0,100
'hide_missionmenu,1
animal,cat,-42,112,-99,0
model,dock,8.0,8.0,-294,-180.0,-1231,0.0,164,0.0
model,lighthouse,5.0,5.0,500,100,160,0.0,100,0.0
shadermodel,floor3,5.0,5.0,500,100,160,0.0,100,0.0,detail_floor.png,0.1,0.1
'screentext test
'screentext,text1,door_closed_key,0.5,0.3,32,54,20.5,255,255,255,1
'screentext,text2,door_closed_key2,0.5,0.6,32,128,20.5,0,255,0,1
'screentext,text3,already_activated,0.5,0.3,32,54,20.5,255,255,255,1
dialog,text1,d1
dialog,text3,d2
dialog,text4,d3
dialog,text5,d4
camera,cam1,,100,1,-35,210,-760,3.4,-169
changebuttontarget,cb1,improvedbutton,text3
changebuttontarget,cb2,improvedbutton,text4
changebuttontarget,cb3,improvedbutton,text5
changebuttontarget,cb4,improvedbutton,text4
'triggeronce,text1_relay,text1
button,improvedbutton,text1,0,-35,170,-828,180,0
animatedmodel,farmer,-35,133,-828,180,1,3,0.01,1
model,stump,0.6,0.6,-170,135,-952,0.0,0.0,0.0
weaponitem,axe,0.1,-170,155,-952,0
dialog,d1,td1
camera,ttt,,100,1,297.2,550.0,173.6,32,-125
set_screen,setframes_on,overlay1.png,255,20,0,0,20,1
set_screen,setframes_off,,0,0,0,0,0,1
set_screen,setframes_on2,overlay2.png,255,20,0,0,20,1
set_screen,setframes_off2,,0,0,0,0,0,1
multimanager,ttmm,d1,ttt,
button,improvedbutton2,ttmm,0,280,210,-82,180,0
plant,sunflower1,-340.195709,129.552490,-377.752960,1.000000,0.000000,0
plant,sunflower1,-281.950348,129.985657,-414.239502,0.800000,68.099998,0
plant,heather1,-237.624512,132.861435,-489.808746,0.800000,68.099998,0
plant,heather1,-34.580841,94.611755,42.343426,0.800000,68.099998,0
plant,flower4,184.735611,122.903793,-277.947113,0.300000,68.099998,0
plant,flower4,149.854324,124.833595,-307.111145,0.300000,68.099998,0
plant,flower3,111.947327,118.446625,-84.514244,0.300000,68.099998,0
plant,flower2,69.778748,111.666702,-42.794983,0.300000,68.099998,0
plant,flower1,80.507866,116.178658,-79.982506,0.300000,68.099998,0
plant,fern4,436.881409,100.656555,-497.439392,0.300000,68.099998,0
plant,fern4,-409.840332,131.144028,-1282.511719,1.000000,68.099998,0
plant,fern4,-1069.704468,131.980972,-678.007813,1.000000,68.099998,0
plant,fern3,-889.132568,132.937866,-781.706177,1.000000,68.099998,0
plant,fern3,-797.094910,133.146713,-1040.096924,1.000000,68.099998,0
plant,fern2,-652.528625,134.124725,-1075.006348,1.000000,68.099998,0
plant,fern1,-230.773788,106.490585,-170.868225,1.000000,68.099998,0
plant,clover1,178.116592,123.744957,-291.143494,0.300000,68.099998,0
plant,clover1,81.782524,114.993057,-63.066322,0.300000,68.099998,0
plant,bush2,119.038620,128.322281,-844.025513,0.500000,68.099998,0
plant,adorabletree_main,101.652664,99.537857,64.689919,4.000000,68.099998,0
plant,greentree_main,540.803650,71.194572,-576.242981,5.000000,68.099998,0
plant,legittree_main,-944.864746,80.306763,-380.077911,5.000000,68.099998,0
plant,legittree_main,-160.294449,118.439682,-1248.368774,5.000000,68.099998,0
plant,maintree_main,-648.328735,121.519341,-480.490967,5.000000,68.099998,0
plant,tree_main,-532.0,135.0,-921,60.000000,196,50
plant,tree_main,-332.0,125.0,-921,40.000000,196,10
plant,tree2_main,214.5,125.0,-472,6.000000,196,10
plant,grass,-532.0,115.0,-921,60.000000,62,50
plant,grass,-332.0,115.0,-921,60.000000,62,50
plant,grass,214.5,115.0,-472,60.000000,62,50
plant,grass,87,100,-766,60.000000,62,50
plant,grass,-373,100,-791,60.000000,62,50
plant,grass,-545,100,-1053,60.000000,62,50
plant,grass,-268,100,-1019,60.000000,62,50
model,stone3,2.200000,2.200000,-539,60,-1335,0.000000,60,0.000000
model,stone3,2.200000,2.200000,-672,50,-1295,0.000000,20,0.000000
model,stone3,1.000000,1.000000,475.109406,93.179710,-512.793640,0,0.000000,0
model,stone3,5.000000,2.000000,732.230591,42.832653,-534.305359,0,0.000000,0
model,stone2,1.500000,1.000000,548.047363,91.690117,-499.336426,0,0.000000,0
model,stone2,1.500000,1.000000,871.622375,56.467331,-336.817413,0,0.000000,0
model,stone1,1.500000,1.000000,725.641602,70.779938,190.202332,0,0.000000,0
model,stone1,1.500000,1.000000,402.794983,59.991772,378.208435,0,0.000000,0
model,stone1,1.500000,1.000000,627.775146,55.724442,366.569611,0,0.000000,0
model,stone2,1.500000,1.000000,867.062744,70.324326,-210.367508,0,0.000000,0
model,stone1,1.500000,1.000000,833.161926,80.754959,-105.008026,0,0.000000,0
model,stone1,1.500000,1.000000,245.199234,64.540581,329.231323,0,0.000000,0
model,stone2,0.500000,2.000000,157.390381,73.298691,269.477356,0,0.000000,0
model,stone2,1.000000,1.000000,111.183861,82.552528,214.056396,0,0.000000,0
model,stone2,1.000000,1.000000,-167.948120,57.011219,-1347.349609,0,0.000000,0
model,stone1,1.000000,1.000000,-408.445313,66.930733,-1373.431396,0,0.000000,0
model,stone1,1.000000,1.000000,-1004.075989,58.577267,-1080.473877,0,0.000000,0
model,stone1,1.000000,1.000000,-1143.292725,18.875233,-771.051758,0,0.000000,0
model,stone3,2.500000,2.500000,-909.883179,58.093307,-1219.262817,0,0.000000,0
model,stone3,2.500000,2.500000,-673.718384,57.493111,-1390.195190,0,0.000000,0
model,stone3,2.500000,2.500000,7.965580,130.040543,-939.522827,0,0.000000,0
model,stone3,2.500000,2.500000,-555.382690,52.404179,-177.474365,0,0.000000,0
model,stone2,2.500000,2.500000,-515.511658,36.076572,-42.542316,0,0.000000,0
model,stone1,2.500000,2.500000,-383.409973,29.832314,121.251953,0,0.000000,0
model,stone1,2.500000,2.500000,-1291.550049,39.049385,-572.085999,0,0.000000,0
model,stone1,2.500000,2.500000,-1087.627075,13.286813,-932.821106,0,0.000000,0
model,stone1,1.000000,1.000000,-598.333618,131.567154,-559.269226,0,0.000000,0
model,stone2,1.000000,1.000000,-671.083252,121.575737,-485.673462,0,0.000000,0
model,sc_barrel3,1.000000,1.000000,-109.821793,99.002098,-1441.413086,0,0.000000,0
model,bench,1.000000,1.000000,634.350403,97.245819,-182.537689,0,108.000000,0
model,ornament,2.000000,2.000000,390.482758,164.830261,-333.827179,0,10.499997,0
playerstart,147,200,-517,-65.45
wincondition,harvest,wood,2
missionmenu,game_volcano_missionmenu1,game_volcano_missionmenu2,game_volcano_missionmenu3,game_volcano_missionmenu4,game_volcano_missionmenu5,game_volcano_missionmenu6,game_volcano_missionmenu7,game_volcano_missionmenu8
finalmenu,game_volcano_finalmenu1,game_volcano_finalmenu2,game_volcano_finalmenu3,game_volcano_finalmenu4
Currently, the map files are in a good readable format. If the loading or saving of information will take to much time, I`ll switch. The editor is able to place plants and models, but no entities right now.
What I have to add:
- Create a moving camera with a moving target
- Waypoints for bots/camera/target
- New awesome maps with a lot of dialogues and quests