Seek: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
mNo edit summary
m (whitespace)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:seek}}
{{DISPLAYTITLE:seek}}
'''seek''' is a [[ZZT-OOP]] direction token which points towards the [[player]].
'''seek''' is a [[ZZT-OOP]] direction token which points towards the [[player]].


When an [[object]] and the player are aligned horizontally or vertically, seek will point directly to the player. When not aligned, seek will randomly pick one of two directions (with a 50-50 chance) that generally lead to the player. For example, if an object is located to the northeast of the player, the command <code>#go seek</code> will make the object step south ''or'' west.
When an [[object]] and the player are aligned horizontally or vertically, '''seek''' will point directly to the player. When not aligned, it will randomly pick one of two directions (with a 50-50 chance) that generally lead to the player. For example, if an object is located to the northeast of the player, the command <code>#go seek</code> will make the object step south ''or'' west.


== Quirks ==
== Quirks ==
* '''seek''' is reversed when the player is [[Energizer|energized]]. One can work around this by checking the [[energized|energized flag]] and branching to alternate commands that use ''[[opp]] seek'' instead.
* '''seek''' is reversed when the player is [[Energizer|energized]]. One can work around this by checking the [[energized|energized flag]] and branching to alternate commands that use ''[[opp]] seek'' instead.


{{ZZT-OOP navbox}}
{{ZZT-OOP navbox}}

Latest revision as of 05:11, 11 February 2021

seek is a ZZT-OOP direction token which points towards the player.

When an object and the player are aligned horizontally or vertically, seek will point directly to the player. When not aligned, it will randomly pick one of two directions (with a 50-50 chance) that generally lead to the player. For example, if an object is located to the northeast of the player, the command #go seek will make the object step south or west.

Quirks

  • seek is reversed when the player is energized. One can work around this by checking the energized flag and branching to alternate commands that use opp seek instead.