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();
},
}Invincibility is common too: enable it inside town with SetInvincibility and disable it on the way out, and nobody can fight in town.
