All Spells
Arcane | Divine | Elemental | Occult | Primal
Focus Spells | Rituals

There is a Remastered version here.

PFS StandardMazeSpell 8

Legacy Content

Conjuration Extradimensional Teleportation 
Source Core Rulebook pg. 350 4.0
Traditions arcane, occult
Bloodline imperial
Deities Baphomet, Nethys
Cast [two-actions] somatic, verbal
Range 30 feet; Targets 1 creature
Duration sustained
You transport the target into an extradimensional maze of eldritch origin and trap it there. Once each turn, the target can spend 1 action to attempt a Survival check or Perception check against your spell DC to escape the maze. The possible outcomes are as follows.
Critical Success The target escapes and the spell ends.
Success The target is on the right path to the exit. If the target was already on the right path, it escapes the maze and the spell ends.
Failure The target makes no progress toward escape.
Critical Failure The target makes no progress toward escape, and if it was on the right path, it no longer is.

Teleportation magic doesn't help the creature escape unless the magic can transport across planes, such as plane shift. When the spell ends, either because the target escaped or the duration ran out, the target returns to the space it occupied when it was banished, or to the nearest space if the original is now filled.