Lion: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Add navbox)
(Document algorithm)
Line 14: Line 14:
|uses zzt-oop color=no
|uses zzt-oop color=no
}}
}}
'''Lions''' are a type of built-in enemy in ZZT. They move around semi-randomly, tending to seek out the player (depending on the lion's intelligence). They can only do damage on contact, which destroys the lion as well.
'''Lions''' are a type of built-in enemy creature in ZZT. They move around semi-randomly, with a tendency to seek out the player. They can only do damage on contact, which destroys the lion as well.
 
The chance of a lion following the player as opposed to moving randomly is <code>((P1 + 1) * 0.1)</code>, where <code>P1</code> is equal to <code>Intelligence - 1</code>. As such, in the default editor, it's possible to create lions with player-seeking behaviour expressed within between 10% and 90% of movements.


[[Category:Elements]]
[[Category:Elements]]
{{ElementsNavbox}}
{{ElementsNavbox}}

Revision as of 21:29, 7 February 2021

Lion
ZZT-OOP namelion
Internal ID29h
Character#char 234 Ω (0xEA)
Default colorred on black (0x0C)
Categorycreature
Stats
Default cycle2
P1Intelligence
Other traits
Score when shot1
Effect on movementpushable, squishable
Destructible?yes
Uses ZZT-OOP color names?no

Lions are a type of built-in enemy creature in ZZT. They move around semi-randomly, with a tendency to seek out the player. They can only do damage on contact, which destroys the lion as well.

The chance of a lion following the player as opposed to moving randomly is ((P1 + 1) * 0.1), where P1 is equal to Intelligence - 1. As such, in the default editor, it's possible to create lions with player-seeking behaviour expressed within between 10% and 90% of movements.