SCRMaps
/
Sign in

Zones, teleports and safe areas

Move people around, and keep them out of where they should not be.

3 min read

Locations plus MoveUnit give you teleport pads, entry restrictions and safe areas.

Trigger { -- 이동 발판
	players = {Force1},
	conditions = {
		Bring(CurrentPlayer, AtLeast, 1, "Men", "Portal In");
	},
	actions = {
		MoveUnit(All, "Men", CurrentPlayer, "Portal In", "Portal Out");
		CenterView("Portal Out");
		PreserveTrigger();
	},
}

A safe area is the inverse: remove whatever hostile wanders in.

Trigger { -- 마을에 들어온 적은 제거
	players = {P8},
	conditions = {
		Bring(P8, AtLeast, 1, "Men", "Town");
	},
	actions = {
		RemoveUnitAt(All, "Men", "Town", P8);
		PreserveTrigger();
	},
}
RemoveUnitAt deletes silently. KillUnitAt would credit somebody with a kill, and therefore experience.

Invincibility is common too: enable it inside town with SetInvincibility and disable it on the way out, and nobody can fight in town.

Sign in to track your progress