This is a collection of code snippets and links to pages with code changes for the game Angband. For more information about the game itself, go to The Unofficial Angband Page. For other important sites, see the bottom of this page.
This is a patch for Angband 2.8.1 which allows the character to "discover" attributes of items which are wielded/equipped. The flags of a magical item are discovered as they become apparent. Once discovered, the character can use the 'I' command the bring up the incomplete list of attributes for an unidentified or un*identified* object. This is a modification built on top of the 'obvious flags' modification done by Scott Bigham (see below).
The progression of learning attributes is like this. First, the item is unidentified. When the item becomes identified, the character learns the 'obvious' flags of the item. When the item is *identified*, the character learns all of the flags of the item. At any point before the *identify*, the character may learn of the other flags of the item, as they are used. For instance, when he attacks an orc with a sword (of slay orc, unknown to him), he has a chance of figuring out that one flag is slay orc. This would work similarly for flags such as sustain strength. When the message, 'you feel weak for a moment... but it passes' appears, there would be a chance that the correct item would have the sustain strength flag discovered.
Important Note: This patch calls itself 2.8.250 or 2.8.1a. The savefiles are sort of compatible with 2.8.1. 2.8.1 will load the save files, but will lose all of the discovered flags. This patch will likewise read 2.8.1 save files, but add in a set of empty discovered flags.
This patch will make a wizard command which will create a specified artifact. The command is CTRL-a C (small a, CAPITAL C). Prefix it with a count of the id# of the artifact. For instance, for the Ring of Power Vilya, type '012^aC' and you have the artifact. Look in the file 'lib/edit/a_info.txt' for the artifact IDs. They're in the N: line, right after the N: (for the previous example, the line is:
N:12:of Power (Vilya)
Note: You can create as many of an artifact as you want with this, and they are not taken from the item list. I don't know what the implications of this are in the game, use at your own risk.
There is an error in the test code in 2.8.1 which can cause items to dissappear. If you pick up any item after the first one in a stack, the remaining items in the stack, if not picked up immediately, will dissappear. They can be recovered by immediately saving, quitting, and reloading. The game will scan the entire item list and restore any items which belong on the ground to their stacks.
The Unofficial Angband Homepage
GW-Angband
Greg Wooledge's variant attempts to even the balance between the character
classes.
Mangband
Keldon Jones is coding a multi-player version of Angband.
Scott
Bigham's Angband Patches
Includes a rod sorting patch and the obvious item flags patch.
Dave Blackston's
Patches (2.8.0)
A few patches, including expanded item recall,
an enhanced player resistance screen, and a potion called the
Blood of Life.
Please see the The Unofficial Angband page for more links
Daniel Nash | danash@students.wisc.edu
This page was last updated on April 18, 1997