share/hedgewars/Data/Missions/Training/Target_Practice_-_Homing_Bee.lua
author nemo
Sun, 25 Jan 2015 14:48:02 -0500
changeset 10808 1e39630d7c2e
parent 10656 2093cf51eea1
child 11261 f1b75bf7c4f2
permissions -rw-r--r--
Add a couple of more variable bindings, make all the set visual gear values optional, to allow skipping trailing params or specifying ones in the middle as nil to not set. Should make using it more convenient in simple cases.

HedgewarsScriptLoad("/Scripts/TargetPractice.lua")

local params = {
	ammoType = amBee,
	gearType = gtBee,
	missionTitle = "Target Practice: Homing Bee",
	solidLand = true,
	map = "Hedgewars",
	theme = "Nature",
	hog_x = 1990,
	hog_y = 514,
	hogHat = "NoHat",
	teamGrave = "bp2",
	targets = {
		{ x = 1949, y = 273 },
		{ x = 1734, y = 322 },
		{ x = 1574, y = 340 },
		{ x = 1642, y = 474 },
		{ x = 2006, y = 356 },
		{ x = 1104, y = 285 },
		{ x = 565, y = 440 },
		{ x = 732, y = 350 },
		{ x = 2022, y = 396 },
		{ x = 366, y = 360 },
		{ x = 556, y = 300 },
		{ x = 902, y = 306 },
		{ x = 924, y = 411 },
		{ x = 227, y = 510 },
		{ x = 150, y = 300 },
	},
	time = 120000,
	shootText = loc("You have launched %d homing bees."),
}

TargetPracticeMission(params)