Carry: Difference between revisions

60 bytes removed ,  6 years ago
→‎Paths: In P1, they blindly carry it into the water. So the described behavior is either P2 or P3. This needs to be cleared up, and for all games at once.
(→‎Paths: Added the first game's charts.)
(→‎Paths: In P1, they blindly carry it into the water. So the described behavior is either P2 or P3. This needs to be cleared up, and for all games at once.)
Line 131: Line 131:


==Paths==
==Paths==
The game calculates which path the Pikmin should take by examining all possible paths that reach the destination, and discarding those that are blocked. A path is considered blocked if a bridge within is unbuilt, if an uncleared [[gate]] is in the way, or if any other [[obstacle]] is blocking the path. In the case of multiple possible paths, the shortest one is picked. If the only available path is blocked, the Pikmin will follow it as far as they can, until they reach the obstacle, where they will move around in a small circle, waiting for it to be cleared. Should the chosen path contain water, the Pikmin will carry it until they reach it, where they will let go of the object. Some Pikmin may come in contact with the water regardless, so caution is advised.
{{todo|Check, for each game, what happens if non-Blue Pikmin decide to take a path that has water in the way.}}
The game calculates which path the Pikmin should take by examining all possible paths that reach the destination, and discarding those that are blocked. A path is considered blocked if a bridge within is unbuilt, if an uncleared [[gate]] is in the way, or if any other [[obstacle]] is blocking the path. In the case of multiple possible paths, the shortest one is picked. If the only available path is blocked, the Pikmin will follow it as far as they can, until they reach the obstacle, where they will move around in a small circle, waiting for it to be cleared.


The paths in-game are consisted of interconnected waypoints forming a {{w|Graph (mathematics)|graph}}. These points are not visible to the player, nor are the paths in-between. Whenever the Pikmin begin carrying an object, they move to the nearest waypoint on the map. Once there, they follow the calculated path, walking in a straight line from waypoint to waypoint, until they reach their destination. Should the closest waypoint be on the other side of the wall, the Pikmin will attempt to go for it regardless. This can lead to them getting stuck behind the wall.
The paths in-game are consisted of interconnected waypoints forming a {{w|Graph (mathematics)|graph}}. These points are not visible to the player, nor are the paths in-between. Whenever the Pikmin begin carrying an object, they move to the nearest waypoint on the map. Once there, they follow the calculated path, walking in a straight line from waypoint to waypoint, until they reach their destination. Should the closest waypoint be on the other side of the wall, the Pikmin will attempt to go for it regardless. This can lead to them getting stuck behind the wall; see [[#Oversights|oversights]].


Once Pikmin begin carrying they choose a path, no matter how long. Opening up a shortcut during their carrying will not change their minds, unless the load is dropped and picked up again, or unless (in the first two games) Pikmin carriers are added and the total speed is "updated."
Once Pikmin begin carrying they choose a path, no matter how long. Opening up a shortcut during their carrying will not change their minds, unless the load is dropped and picked up again, or unless (in the first two games) Pikmin carriers are added and the total speed is "updated."