[Widelands-cvs] SF.net SVN: widelands:[4808] trunk
Status: Beta
Brought to you by:
sirver
From: <nas...@us...> - 2009-12-30 13:11:25
|
Revision: 4808 http://widelands.svn.sourceforge.net/widelands/?rev=4808&view=rev Author: nasenbaer_peter Date: 2009-12-30 12:36:09 +0000 (Wed, 30 Dec 2009) Log Message: ----------- Add a scenario part to "The Green Plateau" map to: * Have at least one map, that shows the users the use of "Play map as scenario" * Test the new behaviour * Test the new event "seeall" And especial to: * Have one more scenario for fun ;-) Modified Paths: -------------- trunk/maps/Plateau.wmf/objective trunk/maps/Plateau.wmf/player_names trunk/src/events/event_player_seeall.cc Added Paths: ----------- trunk/maps/Plateau.wmf/allowed_buildings trunk/maps/Plateau.wmf/event trunk/maps/Plateau.wmf/event_chain trunk/maps/Plateau.wmf/trigger Added: trunk/maps/Plateau.wmf/allowed_buildings =================================================================== --- trunk/maps/Plateau.wmf/allowed_buildings (rev 0) +++ trunk/maps/Plateau.wmf/allowed_buildings 2009-12-30 12:36:09 UTC (rev 4808) @@ -0,0 +1,71 @@ +[global] +packet_version=1 + +[player_1] +battlearena=true +trainingscamp=true +barrier=true +citadel=true +donjon=true +fortress=true +sentry=true +stronghold=true +warehouse=true +warmill=true +axefactory=true +bakery=true +big_inn=true +brewery=true +burners_house=true +deeper_coalmine=true +deep_coalmine=true +coalmine=true +deeper_goldmine=true +deeper_oremine=true +deep_goldmine=true +deep_oremine=true +farm=true +fernery=true +fishers_hut=true +gamekeepers_hut=true +goldmine=true +granitemine=true +hardener=true +helmsmithy=true +hunters_hut=true +inn=true +lime_kiln=true +lumberjacks_hut=true +metalworks=true +micro-brewery=true +oremine=true +quarry=true +rangers_hut=true +smelting_works=true +tavern=true +weaving-mill=yes +well=1 + +[player_2] +lumberjacks_hut=true + +[player_3] +lumberjacks_hut=true +burners_house=true +quarry=true +rangers_hut=true +hardener=true +lime_kiln=true +fernery=true +fishers_hut=true +well=1 +tavern=true +hunters_hut=true +micro-brewery=true +farm=true +barrier=true +donjon=true +sentry=true +stronghold=true + +[player_4] Property changes on: trunk/maps/Plateau.wmf/allowed_buildings ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + native Added: trunk/maps/Plateau.wmf/event =================================================================== --- trunk/maps/Plateau.wmf/event (rev 0) +++ trunk/maps/Plateau.wmf/event 2009-12-30 12:36:09 UTC (rev 4808) @@ -0,0 +1,503 @@ +# This file holds all the events. +# they have to be linked in an event chain to be called. See the file +# "event_chain" for more information on this. +# +# Note: this file holds only one type of events (type "message"), but +# there are quite some more. Best take a look at the following link: +# http://wl.widelands.org/wiki/TriggerAndEventsReference/ + + +[global] +packet_version="2" + +[Briefing 1: The forbidden island] # Show the introducing message +type="message_box" +version="2" +text=""<rt><p font-size=24 font-face=FreeSerif font-weight=bold font-color=3333FF>" + "The forbidden island</p></rt><rt><p line-spacing=3 font-size=12>" + "Finally! Our first step to victory was just done! Last night, we landed " + "on the forbidden island and defeated the few guards that sentineled the " + "north western part of the island. I am quite sure, that none of the other " + "warlords observed us until now, so we should keep quiete and build up our " + "infrastructure until we are strong enough to raid their positions." + "</p></rt>"" +window_title="First Briefing" +is_modal="true" +width="400" +height="300" +posy="1" +button_00="OK" + +[Headquarters 1] +type="building" +version="2" +point="65 6" +building="headquarters_interim" +axe="6" +bakingtray="2" +blackwood="32" +coal="12" +fire_tongs="2" +fish="6" +grout="12" +hammer="12" +hunting_spear="2" +iron="12" +ironore="5" +kitchen_tools="4" +meal="4" +meat="6" +pick="14" +pittabread="8" +ration="12" +raw_stone="40" +scythe="6" +shovel="4" +snack="3" +thatchreed="24" +trunk="80" +carrier="40" +blacksmith="2" +brewer="1" +builder="10" +ferner="1" +fisher="2" +geologist="4" +lime-burner="1" +lumberjack="3" +miner="4" +ranger="1" +stonemason="2" +0/0/0/0="45" + +[Place ancient atlantean castle] +type="building" +version="2" +player="4" +point="23 19" +building="castle.atlanteans" +0/0/0/0=2 +2/0/0/0=2 +0/1/0/0=2 +2/1/0/0=2 +1/1/0/0=1 + +[Place enemy warehouse] +type="building" +version="2" +player="3" +point="6 44" +building="warehouse" +trunk="200" +carrier="40" +builder="4" +kitchen_tools="4" +lumberjack="10" +pick="14" +burner="1" +raw_stone="40" +scythe="6" +shovel="4" +thatchreed="24" +coal="40" +brewer="1" +farmer=1" +ferner="1" +fisher="2" +geologist="4" +lime-burner="1" +ranger="1" +hunter="1" +gamekeeper="1" +0/0/0/0=30 + +[Place enemy warehouse2] +type="building" +version="2" +player="2" +point="45 40" +building="warehouse" +carrier="40" +trunk="20" +builder="2" +lumberjack="10" + +[Place enemy donjon1] +type="building" +version="2" +player="2" +point="14 67" +building="donjon" +0/0/0/0=1 +2/0/0/0=1 +3/1/0/0=1 + +[Place enemy donjon2] +type="building" +version="2" +player="2" +point="31 65" +building="donjon" +2/1/0/0=2 +1/0/0/0=1 + +[Place enemy donjon3] +type="building" +version="2" +player="2" +point="53 17" +building="donjon" +0/0/0/0=2 +2/1/0/0=1 + +[Place enemy barrier1] +type="building" +version="2" +player="2" +point="40 24" +building="barrier" +2/0/0/0=2 +0/0/0/1=1 + +[Place enemy barrier2] +type="building" +version="2" +player="2" +point="39 53" +building="barrier" +2/0/0/0=4 + +[Place enemy barrier3] +type="building" +version="2" +player="2" +point="50 44" +building="barrier" +0/0/0/0=2 +0/1/0/1=1 +3/1/0/1=1 + +[Place enemy barrier4] +type="building" +version="2" +player="2" +point="26 75" +building="barrier" +3/1/0/0=3 +0/0/0/0=1 + +[Place enemy stronghold1] +type="building" +version="2" +player="2" +point="43 44" +building="stronghold" +0/0/0/0=2 + +[Place enemy stronghold2] +type="building" +version="2" +player="2" +point="20 71" +building="stronghold" +0/1/0/1=1 +1/0/0/0=1 +0/0/0/0=1 + +[Place enemy stronghold3] +type="building" +version="2" +player="2" +point="50 30" +building="stronghold" +0/0/0/0=1 + +[Place enemy sentry1] +type="building" +version="2" +player="2" +point="43 29" +building="sentry" +0/0/0/0=2 + +[Place enemy sentry2] +type="building" +version="2" +player="2" +point="42 9" +building="sentry" +0/0/0/0=1 + +[Place enemy sentry3] +type="building" +version="2" +player="2" +point="30 76" +building="sentry" +0/0/0/0=2 + +[Place enemy citadel] +type="building" +version="2" +player="2" +point="47 13" +building="citadel" +0/0/0/0=2 +1/0/0/0=1 +1/1/0/0=1 +2/0/0/0=2 +3/1/0/0=3 + +[Place enemy fortress] +type="building" +version="2" +player="2" +point="42 72" +building="fortress" +0/0/0/0=2 +1/0/0/0=1 +1/1/0/0=1 +2/0/0/0=2 +3/1/0/0=1 + +[Place enemy high_tower] +type="building" +version="2" +player="2" +point="52 26" +building="high_tower.atlanteans" +1/1/0/0=1 +2/0/0/0=2 +3/1/0/0=1 + +[Place enemy2 barrier] +type="building" +version="2" +player="3" +point="6 51" +building="barrier" +0/0/0/0=2 +0/0/0/1=1 + +[Place enemy2 tower] +type="building" +version="2" +player="3" +point="79 50" +building="tower.atlanteans" +0/0/0/0=2 +0/0/0/1=1 + +[Place enemy2 guardhouse] +type="building" +version="2" +player="3" +point="7 42" +building="guardhouse.atlanteans" +0/0/0/0=2 + +[Place enemy2 farm1] +type="building" +version="2" +player="3" +point="8 48" +building="farm" +farmer=1 + +[Place enemy2 farm2] +type="building" +version="2" +player="3" +point="4 52" +building="farm" +farmer=1 + +[Place enemy2 farm3] +type="building" +version="2" +player="3" +point="44 49" +building="farm" +farmer=1 + +[Show ancient castle] +type="unhide_area" +version="2" +point="23 19" +area="4" +duration="5000" + +[Show way 1] +type="unhide_area" +version="2" +point="5 8" +area="2" +duration="1" + +[Show way 2] +type="unhide_area" +version="2" +point="9 10" +area="2" +duration="1" + +[Show way 3] +type="unhide_area" +version="2" +point="12 12" +area="2" +duration="1" + +[Show way 4] +type="unhide_area" +version="2" +point="15 14" +area="2" +duration="1" + +[Show way 5] +type="unhide_area" +version="2" +point="18 16" +area="2" +duration="1" + +[Show way 6] +type="unhide_area" +version="2" +point="20 17" +area="2" +duration="1" + +[Move view to ancient castle] +type="move_view" +version="2" +point="23 19" + +[Briefing 2: Found ancient castle] +type="message_box" +version="2" +text=""<rt><p font-size=24 font-face=FreeSerif font-weight=bold font-color=3333FF>" + "An ancient castle</p></rt><rt><p line-spacing=3 font-size=12>" + "By the Gods! One of our scouts found a mighty castle at the middle of the " + "old plateau. The castle must be quite old and seems to be build in a foreign " + "methode. It's quite obvious, that this is not barbarian craft.<br>" + "Let's hope Lanissa - the warlord holding command over that castle - still " + "has not observed us. Perhaps we have a chance to conquer that mighty building " + "without a bigger fight!<br>However we really have to capture it. It will be " + "our key for our reign over this island!" + "<br><br>" + "-- NEW OBJECTIVE --" + "<br>" + "* Defeat Lanissa and capture the ancient castle." + "</p></rt>"" +window_title="Second Briefing" +is_modal="true" +width="400" +height="300" +posy="1" +button_00="OK" + +[Reveal Objective 1 - Capture ancient castle] +type="reveal_objective" +version="2" +objective="Capture ancient castle" + +[Reveal Objective 2 - Defeat Erwyn] +type="reveal_objective" +version="2" +objective="Defeat Erwyn" + +[Reveal Objective 3 - Defeat Jomo] +type="reveal_objective" +version="2" +objective="Defeat Jomo" + +[Bigger castle view] +type="unhide_area" +version="2" +point="23 19" +area="18" +duration="1" + +[Briefing 3: Captured ancient castle] +type="message_box" +version="2" +text=""<rt><p font-size=24 font-face=FreeSerif font-weight=bold font-color=3333FF>" + "Ancient castle captured</p></rt><rt><p line-spacing=3 font-size=12>" + "Wonderful! Our troups finally defeated Lanissa and her soldiers. The ancient " + "castle is ours!<br>" + "It is amazing, how far one can see from the highest tower of the castle. We " + "can watch the whole island. So now I wonder, why Lanissa has not observed " + "us and thus did not prepare. But well, some things will never come to the " + "light of day. The only important things at the moment are the left opposing " + "troups. We observed enemy's positions from Erwyn north and eastwards of the " + "castle. He is known to be a strong warlord and surely commands the strongest " + "warriors of the left troups. In the south we captured some guarded food " + "infrastructures of Jomo - a younger warlord - we should take care about that " + "infrastructures and cut of the food supply." + "<br><br>" + "-- NEW OBJECTIVES --"<br>" + "* Defeat Erwyn. He commands the strongest opposing soldiers left on this island." + "<br>" + "* Defeat Jomo. He takes care about the soldiers food supply." + "</p></rt>"" +window_title="Second Briefing" +is_modal="true" +width="400" +height="300" +posy="1" +button_00="OK" + +[Briefing: Erwyn defeated] +type="message_box" +version="2" +text=""<rt><p font-size=24 font-face=FreeSerif font-weight=bold font-color=3333FF>" + "Erwyn defeated</p></rt><rt><p line-spacing=3 font-size=12>" + "Great! Erwyn gave up, when he saw his last buildings burning down. One strong " + "warlord less on this island!" + "</p></rt>"" +window_title="Another Briefing" +is_modal="true" +width="400" +height="300" +posy="1" +button_00="OK" + +[Briefing: Jomo defeated] +type="message_box" +version="2" +text=""<rt><p font-size=24 font-face=FreeSerif font-weight=bold font-color=3333FF>" + "Jomo defeated</p></rt><rt><p line-spacing=3 font-size=12>" + "Great! Jomo gave up, when he saw his last buildings burning down. One warlord " + "less on this island!" + "</p></rt>"" +window_title="Another Briefing" +is_modal="true" +width="400" +height="300" +posy="1" +button_00="OK" + +[Full view] +type="seeall" +version="1" +switchon="true" +player="1" + +[Last Briefing: Victory] +type="message_box" +version="2" +text=""<rt><p font-size=24 font-face=FreeSerif font-weight=bold font-color=3333FF>" + "Victory!</p></rt><rt><p line-spacing=3 font-size=12>" + "Finally! The complete island is ours. Now we just have to defeat it better " + "Than the warlords did." + "<br><br>" + "Congratulations! You mastered this scenario. You may play on if you like!" + "</p></rt>"" +window_title="Last Briefing" +is_modal="true" +width="400" +height="300" +posy="1" +button_00="OK" Property changes on: trunk/maps/Plateau.wmf/event ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + native Added: trunk/maps/Plateau.wmf/event_chain =================================================================== --- trunk/maps/Plateau.wmf/event_chain (rev 0) +++ trunk/maps/Plateau.wmf/event_chain 2009-12-30 12:36:09 UTC (rev 4808) @@ -0,0 +1,95 @@ +# This file holds all event_chains. +# each event chain has it's own section [NAME], has at least one conditional +# element (when should the event chain be started? - if triggerA AND ...) and +# at least one event that will be started once the conditional elements get true. + +[global] +packet_version="3" + +[Begin] +repeating="false" +conditional_element_00="trigger" +conditional_element_00_data="Begin" +event="Headquarters 1" +event="Briefing 1: The forbidden island" +event="Place ancient atlantean castle" +event="Place enemy warehouse" +event="Place enemy warehouse2" +event="Place enemy donjon1" +event="Place enemy donjon2" +event="Place enemy donjon3" +event="Place enemy barrier1" +event="Place enemy barrier2" +event="Place enemy barrier3" +event="Place enemy barrier4" +event="Place enemy stronghold1" +event="Place enemy stronghold2" +event="Place enemy stronghold3" +event="Place enemy sentry1" +event="Place enemy sentry2" +event="Place enemy sentry3" +event="Place enemy fortress" +event="Place enemy citadel" +event="Place enemy high_tower" +event="Place enemy2 barrier" +event="Place enemy2 tower" +event="Place enemy2 guardhouse" +event="Place enemy2 farm1" +event="Place enemy2 farm2" +event="Place enemy2 farm3" +current_event="0" +state="init" + +[Expanded east] +repeating="false" +conditional_element_00="trigger" +conditional_element_00_data="Expanded east" +event="Show ancient castle" +event="Show way 1" +event="Show way 2" +event="Show way 3" +event="Show way 4" +event="Show way 5" +event="Show way 6" +event="Move view to ancient castle" +event="Briefing 2: Found ancient castle" +event="Reveal Objective 1 - Capture ancient castle" +current_event="0" +state="init" + +[Player 4 defeated] +repeating="false" +conditional_element_00="trigger" +conditional_element_00_data="Player 4 defeated" +event="Move view to ancient castle" +event="Bigger castle view" +event="Briefing 3: Captured ancient castle" +event="Reveal Objective 2 - Defeat Erwyn" +event="Reveal Objective 3 - Defeat Jomo" +current_event="0" +state="init" + +[Player 2 defeated] +repeating="false" +conditional_element_00="trigger" +conditional_element_00_data="Player 2 defeated" +event="Briefing: Erwyn defeated" +current_event="0" +state="init" + +[Player 3 defeated] +repeating="false" +conditional_element_00="trigger" +conditional_element_00_data="Player 3 defeated" +event="Briefing: Jomo defeated" +current_event="0" +state="init" + +[Victory] +repeating="false" +conditional_element_00="trigger" +conditional_element_00_data="Player 4 defeated" +event="Full view" +event="Last Briefing: Victory" +current_event="0" +state="init" Property changes on: trunk/maps/Plateau.wmf/event_chain ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + native Modified: trunk/maps/Plateau.wmf/objective =================================================================== --- trunk/maps/Plateau.wmf/objective 2009-12-30 09:28:47 UTC (rev 4807) +++ trunk/maps/Plateau.wmf/objective 2009-12-30 12:36:09 UTC (rev 4808) @@ -1,2 +1,26 @@ [global] packet_version=1 + +[Capture ancient castle] +name="Capture the ancient castle" +descr=""<rt><p line-spacing=3 font-size=12>" + "* Defeat Lanissa and capture her ancient castle." + "</p></rt>"" +visible="false" +trigger="Player 4 defeated" + +[Defeat Erwyn] +name="Defeat Erwyn" +descr=""<rt><p line-spacing=3 font-size=12>" + "* Defeat Erwyn. He commands the strongest opposing soldiers left on this island." + "</p></rt>"" +visible="false" +trigger="Player 2 defeated" + +[Defeat Jomo] +name="Defeat Jomo" +descr=""<rt><p line-spacing=3 font-size=12>" + "* Defeat Jomo. He takes care about the soldiers food supply." + "</p></rt>"" +visible="false" +trigger="Player 3 defeated" Modified: trunk/maps/Plateau.wmf/player_names =================================================================== --- trunk/maps/Plateau.wmf/player_names 2009-12-30 09:28:47 UTC (rev 4807) +++ trunk/maps/Plateau.wmf/player_names 2009-12-30 12:36:09 UTC (rev 4808) @@ -2,17 +2,20 @@ packet_version=1 [player_1] -name=Spieler 1 +name=Theobald tribe=barbarians [player_2] -name=Spieler2 +name=Erwyn tribe=barbarians +ai="Normal" [player_3] -name=Spieler3 +name=Jomo tribe=barbarians +ai="Defensive" [player_4] -name=Spieler4 +name=Lanissa tribe=barbarians +ai="None" Added: trunk/maps/Plateau.wmf/trigger =================================================================== --- trunk/maps/Plateau.wmf/trigger (rev 0) +++ trunk/maps/Plateau.wmf/trigger 2009-12-30 12:36:09 UTC (rev 4808) @@ -0,0 +1,44 @@ +# This file holds all triggers. +# they can be used in an event chain as conditional element. See the file +# "event_chain" for more information on this. +# +# Note: this file shows only one type of triggers (time trigger), but +# there are quite some more. Best take a look at the following link: +# http://wl.widelands.org/wiki/TriggerAndEventsReference/ + +[global] +packet_version="2" + + +# Time triggers + +[Begin] # This trigger gets true after 0 milliseconds have past = at the beginning +type="time" +version="2" +time="0" + + +# Vision triggers + +[Expanded east] +type="vision" +version="3" +point="5 8" + + +# Player defeated triggers + +[Player 2 defeated] +type="defeated" +version="1" +player="2" + +[Player 3 defeated] +type="defeated" +version="1" +player="3" + +[Player 4 defeated] +type="defeated" +version="1" +player="4" Property changes on: trunk/maps/Plateau.wmf/trigger ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + native Modified: trunk/src/events/event_player_seeall.cc =================================================================== --- trunk/src/events/event_player_seeall.cc 2009-12-30 09:28:47 UTC (rev 4807) +++ trunk/src/events/event_player_seeall.cc 2009-12-30 12:36:09 UTC (rev 4808) @@ -52,6 +52,7 @@ } void Event_Player_See_All::Write(Section & s, Editor_Game_Base &) const { + s.set_string("type", "seeall"); s.set_int ("version", EVENT_VERSION); s.get_bool ("switchon", m_switch_to_on); if (m_player_number != 1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |