share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
changeset 9831 afa4e3e04cc5
parent 9765 6cad4393a315
child 10290 42efccba0711
equal deleted inserted replaced
9830:397e32abc794 9831:afa4e3e04cc5
     1 ------------------- ABOUT ----------------------
     1 ------------------- ABOUT ----------------------
     2 --
     2 --
     3 -- This is the first stop of hero's journey.
     3 -- This is the first stop of hero's journey.
     4 -- Here he'll get fuels to continue traveling.
     4 -- Here he'll get fuels to continue traveling.
     5 -- However, the PAoTH allies of the hero have
     5 -- However, the PAotH allies of the hero have
     6 -- been taken hostages by professor Hogevil.
     6 -- been taken hostages by professor Hogevil.
     7 -- So hero has to get whatever available equipement
     7 -- So hero has to get whatever available equipement
     8 -- there is and rescue them.
     8 -- there is and rescue them.
     9 
     9 
    10 HedgewarsScriptLoad("/Scripts/Locale.lua")
    10 HedgewarsScriptLoad("/Scripts/Locale.lua")
    82 minion2.x = 2450
    82 minion2.x = 2450
    83 minion2.y = 1900
    83 minion2.y = 1900
    84 minion3.name = loc("Minion")
    84 minion3.name = loc("Minion")
    85 minion3.x = 3500
    85 minion3.x = 3500
    86 minion3.y = 1750
    86 minion3.y = 1750
    87 teamA.name = loc("PAoTH")
    87 teamA.name = loc("PAotH")
    88 teamA.color = tonumber("FF0000",16) -- red
    88 teamA.color = tonumber("FF0000",16) -- red
    89 teamB.name = loc("Minions")
    89 teamB.name = loc("Minions")
    90 teamB.color = tonumber("0033FF",16) -- blue
    90 teamB.color = tonumber("0033FF",16) -- blue
    91 teamC.name = loc("Professor")
    91 teamC.name = loc("Professor")
    92 teamC.color = tonumber("0033FF",16) -- blue
    92 teamC.color = tonumber("0033FF",16) -- blue
   112 		hero.gear = AddHog(hero.name, 0, tonumber(GetCampaignVar("HeroHealth")), "war_desertgrenadier1")
   112 		hero.gear = AddHog(hero.name, 0, tonumber(GetCampaignVar("HeroHealth")), "war_desertgrenadier1")
   113 	else
   113 	else
   114 		hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
   114 		hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
   115 	end
   115 	end
   116 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
   116 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
   117 	-- PAoTH
   117 	-- PAotH
   118 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy")
   118 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy")
   119 	paoth1.gear = AddHog(paoth1.name, 0, 100, "scif_2001O")
   119 	paoth1.gear = AddHog(paoth1.name, 0, 100, "scif_2001O")
   120 	AnimSetGearPosition(paoth1.gear, paoth1.x, paoth1.y)
   120 	AnimSetGearPosition(paoth1.gear, paoth1.x, paoth1.y)
   121 	HogTurnLeft(paoth1.gear, true)
   121 	HogTurnLeft(paoth1.gear, true)
   122 	paoth2.gear = AddHog(paoth2.name, 0, 100, "scif_2001Y")
   122 	paoth2.gear = AddHog(paoth2.name, 0, 100, "scif_2001Y")