share/hedgewars/Data/Missions/Training/portal.lua
branchios-revival
changeset 11245 41799450378a
parent 8043 da083f8d95e6
child 11667 7652eeb0fc7f
equal deleted inserted replaced
11244:94c0085ddac6 11245:41799450378a
    14 	MinesNum = 0 -- The number of mines being placed
    14 	MinesNum = 0 -- The number of mines being placed
    15 	Explosives = 0 -- The number of explosives being placed
    15 	Explosives = 0 -- The number of explosives being placed
    16 	Delay = 10 -- The delay between each round
    16 	Delay = 10 -- The delay between each round
    17 	Map = "portal" -- The map to be played
    17 	Map = "portal" -- The map to be played
    18 	Theme = "Hell" -- The theme to be used
    18 	Theme = "Hell" -- The theme to be used
    19 	Goals = "use the portal to move fast and far, use it to kill, use it with caution !"  --the goal ...
    19 	Goals = loc("Use the portal to move fast and far, use it to kill, use it with caution!")  --the goal ...
    20 	
    20 	
    21 	
    21 	
    22 ----AddTeam(teamname, color, grave, fort, voicepack, flag)--
    22 ----AddTeam(teamname, color, grave, fort, voicepack, flag)--
    23 	AddTeam("Subject", 14483406, "Simple", "Island", "Default", "cm_star")
    23 	AddTeam(loc("Subject"), 14483406, "Simple", "Island", "Default", "cm_star")
    24 	player = AddHog("player", 0, 10, "Terminator_Glasses")
    24 	player = AddHog(loc("player"), 0, 10, "Terminator_Glasses")
    25 
    25 
    26 	AddTeam("Hell Army", 1170801, "Simple", "Island", "Default", "cm_galaxy")
    26 	AddTeam(loc("Hell Army"), 1170801, "Simple", "Island", "Default", "cm_galaxy")
    27 	enemy1 = AddHog("Lucifer", 1, 200, "thinkingcap")
    27 	enemy1 = AddHog(loc("Lucifer"), 1, 200, "thinkingcap")
    28 	enemy2 = AddHog("voldemort", 1, 150, "WizardHat")
    28 	enemy2 = AddHog(loc("voldemort"), 1, 150, "WizardHat")
    29 	enemy3 = AddHog("zombi", 1, 100, "zombi")
    29 	enemy3 = AddHog(loc("zombi"), 1, 100, "zombi")
    30 	enemy4 = AddHog("Predator", 1, 14, "predator")
    30 	enemy4 = AddHog(loc("Predator"), 1, 14, "predator")
    31 	enemy5 = AddHog("oneye", 1, 50, "cyclops")
    31 	enemy5 = AddHog(loc("oneye"), 1, 50, "cyclops")
    32 	enemy6 = AddHog("razac", 1, 50, "plaguemask")
    32 	enemy6 = AddHog(loc("razac"), 1, 50, "plaguemask")
    33 	enemy7 = AddHog("C-2", 1, 50, "cyborg1")
    33 	enemy7 = AddHog(loc("C-2"), 1, 50, "cyborg1")
    34 	enemy8 = AddHog("Rider", 1, 50, "scif_SparkssHelmet")
    34 	enemy8 = AddHog(loc("Rider"), 1, 50, "scif_SparkssHelmet")
    35 
    35 
    36 	AddTeam("badmad", 1170801, "Simple", "Island", "Default", "cm_jupiter")
    36 	AddTeam(loc("badmad"), 1170801, "Simple", "Island", "Default", "cm_jupiter")
    37 	enemy9 = AddHog("C-1", 1, 50, "cyborg2")
    37 	enemy9 = AddHog(loc("C-1"), 1, 50, "cyborg2")
    38 	enemy10 = AddHog("hiden", 1, 40, "daftpunkguymanuel")
    38 	enemy10 = AddHog(loc("hiden"), 1, 40, "daftpunkguymanuel")
    39 	enemy11 = AddHog("ronald", 1, 70, "clown")
    39 	enemy11 = AddHog(loc("ronald"), 1, 70, "clown")
    40 	enemy12 = AddHog("phosphatoglucidique", 1, 50, "chef")
    40 	enemy12 = AddHog(loc("phosphatoglucidique"), 1, 50, "chef")
    41 	enemy13 = AddHog("Lestat", 1, 30, "draculakz")
    41 	enemy13 = AddHog(loc("Lestat"), 1, 30, "draculakz")
    42 
    42 
    43 	SetGearPosition(player, 350, 1820)
    43 	SetGearPosition(player, 350, 1820)
    44     SetGearPosition(enemy1, 2037, 1313)
    44     SetGearPosition(enemy1, 2037, 1313)
    45 	SetGearPosition(enemy2, 1369, 1605)
    45 	SetGearPosition(enemy2, 1369, 1605)
    46 	SetGearPosition(enemy3, 1750, 1937)
    46 	SetGearPosition(enemy3, 1750, 1937)
   166 				--GIRDER--
   166 				--GIRDER--
   167 	PlaceGirder(3363, 1323, 4)
   167 	PlaceGirder(3363, 1323, 4)
   168 
   168 
   169 
   169 
   170 	ShowMission (loc("Portal mission"), loc("training"), "", -amPortalGun, 5000)
   170 	ShowMission (loc("Portal mission"), loc("training"), "", -amPortalGun, 5000)
   171 	HogSay(player, "I should get myself a portal gun, maybe this crate has one", SAY_THINK)
   171 	HogSay(player, loc("I should get myself a portal gun, maybe this crate has one"), SAY_THINK)
   172 	
   172 	
   173 
   173 
   174 
   174 
   175 
   175 
   176 end
   176 end
   202 
   202 
   203 function onGearDelete(gear)
   203 function onGearDelete(gear)
   204 
   204 
   205 	if gear == portalgun then
   205 	if gear == portalgun then
   206 		--AddAmmo(player, amPortalGun, 10000)
   206 		--AddAmmo(player, amPortalGun, 10000)
   207 		HogSay(player, "GREAT ! Let's kill all this enemies, using portals", SAY_THINK)
   207 		HogSay(player, loc("GREAT ! Let's kill all this enemies, using portals"), SAY_THINK)
   208 	end
   208 	end
   209 
   209 
   210 	if gear == girder then 
   210 	if gear == girder then 
   211 		HogSay(player, "Will be useful if I need a new plateform or if I want to rise....", SAY_THINK)
   211 		HogSay(player, loc("Will be useful if I need a new plateform or if I want to rise...."), SAY_THINK)
   212 	end
   212 	end
   213 	
   213 	
   214 	if gear == parachute then
   214 	if gear == parachute then
   215 		HogSay(player, loc("You can't fire a portal on the blue surface"), SAY_THINK)
   215 		HogSay(player, loc("You can't fire a portal on the blue surface"), SAY_THINK)
   216 	end
   216 	end