moon01 stab and finally moon01 map spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Thu, 04 Jul 2013 01:36:49 +0300
branchspacecampaign
changeset 9310 1469147c110f
parent 9308 4bddcc1a1450
child 9312 f6bec1cfbfbd
moon01 stab and finally moon01 map
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/campaign.ini
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.hwp
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/campaign.ini	Mon Jul 01 23:23:22 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/campaign.ini	Thu Jul 04 01:36:49 2013 +0300
@@ -6,7 +6,7 @@
 Script=cosmos.lua
 
 [Mission 2]
-Name=Moon:The First Stop
+Name=The First Stop
 Script=moon01.lua
 
 [Mission 3]
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Mon Jul 01 23:23:22 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Thu Jul 04 01:36:49 2013 +0300
@@ -293,7 +293,9 @@
 	WriteLnToConsole("MOON LANDING, HOORAY!")
 	AnimCaption(hero.gear,loc("Welcome to the moon!"))
 	SaveCampaignVar("CosmosCheckPoint", "4")
-	SaveCampaignVar("Planet", "moon")
+	SaveCampaignVar("UnlockedMissions", "2")	
+	SaveCampaignVar("Mission1", "2")
+	SaveCampaignVar("Mission2", "1")
 	EndGame()
 end
 
Binary file share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.hwp has changed
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Mon Jul 01 23:23:22 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Thu Jul 04 01:36:49 2013 +0300
@@ -0,0 +1,24 @@
+HedgewarsScriptLoad("/Scripts/Locale.lua")
+HedgewarsScriptLoad("/Scripts/Animate.lua")
+
+----------------- VARIABLES --------------------
+
+
+-------------- LuaAPI EVENT HANDLERS ------------------
+
+function onGameInit()
+	Seed = 1
+	GameFlags = gfInfAttack + gfSolidLand + gfDisableWind 
+	TurnTime = 100000 
+	CaseFreq = 0
+	MinesNum = 0
+	MinesTime = 3000
+	Explosives = 0
+	Delay = 10 
+	Map = "moon01_map"
+	Theme = "Cheese"
+end
+
+function onGameStart()
+
+end