Ammo: Difference between revisions
Jump to navigation
Jump to search
(Stub page: populate templates) |
(Flesh out ammo article a bit) |
||
| Line 10: | Line 10: | ||
|uses zzt-oop color=no | |uses zzt-oop color=no | ||
}} | }} | ||
The '''ammo''' element is ZZT's built-in method for giving the player ammunition. | |||
Picking up an instance of ammo increments the player's [[Ammo (counter)|ammo counter]] by 5 shots. The amount is not configurable, making it a pain for the player to pick up a large quantity of it. For this reason, many modern ZZT worlds do not use ammo for its intended purpose, and instead substitute an [[object]] that [[Give|#gives]] ammo, or initialize the [[world]] with a non-zero ammo counter. | |||
Ammo is useful as a means of programmatically obtaining dark cyan, e.g., by [[Change|#changing]] another item to ammo and back. | |||
{{ElementsNavbox}} | {{ElementsNavbox}} | ||
Revision as of 08:24, 18 January 2021
| Ammo | |
|---|---|
| ZZT-OOP name | ammo |
| Internal ID | 5 (0x05) |
| Character | #char 132 ä (0x84) |
| Default color | dark cyan on black (0x03) |
| Category | item |
| Stats? | no |
| Other traits | |
| Effect on movement | pushable |
| Destructible? | no |
| Uses ZZT-OOP color names? | no |
The ammo element is ZZT's built-in method for giving the player ammunition.
Picking up an instance of ammo increments the player's ammo counter by 5 shots. The amount is not configurable, making it a pain for the player to pick up a large quantity of it. For this reason, many modern ZZT worlds do not use ammo for its intended purpose, and instead substitute an object that #gives ammo, or initialize the world with a non-zero ammo counter.
Ammo is useful as a means of programmatically obtaining dark cyan, e.g., by #changing another item to ammo and back.
| Elements | |
|---|---|
| Special | |
| Items | |
| Terrain | |
| Creatures | |
| Text | |