OSDN Git Service

Merge branch 'master' of https://github.com/hengband/hengband
[hengbandforosx/hengbandosx.git] / readme-eng.md
1
2 * [日本語](/readme.md)
3
4 # What is Hengband?
5
6 A dungeon-crawler where you descend down a dungeon fighting hordes of monsters, getting stronger and trying to stay alive.
7
8 # How to install
9
10 ## Windows
11
12  * Download the latest binaries from [Releases](https://github.com/hengband/hengband/releases) - look for a `.zip` archive.
13  * Unpack the archive in the directory of your choosing.
14  * Double click on `Hengband.exe` to start the game.
15
16 **Note:** The first time you try Windows Smartscreen may ask you if you want to run this software. To bypass it you need
17 to first click on the text link *More info* and then the button *Run anyway*
18
19 ### Menu bar:
20
21 Some elements of the interface and game can be customized using the menu bar:
22
23  * **Sound Effects:** Options -> Sound
24  * **Music:** Options -> Music
25  * **Background image:** This will display an image in the background of the game.
26    * Options -> Background image -> None - disable the background
27    * Options -> Background image -> Custom - image selected by you (on first select will prompt you to select a file)
28    * Options -> Background image -> Change custom image - changes the selected Custom image
29
30 ## UNIX
31
32 Download the latest version of the source files from [Releases](https://github.com/hengband/hengband/releases). Then run the following commands:
33
34 ```
35 tar -jxvf hengband-x.x.x.tar.bz2
36 cd hengband-x.x.x
37 ./configure --disable-japanese
38 make install
39 ```
40
41 **Please note:**
42
43  * Replace `x.x.x` with the downloaded version's number.
44  * `--disable-japanese` is required to build English version, remove it if you want to build Japanese version.
45
46 To run in ASCII mode:
47
48 ```
49 ./hengband -- -n <number of windows>
50 ```
51
52 To run in the graphical mode:
53
54 ```
55 ./hengband -g -- -n <number of windows> # 8x8 Tiles
56 ./hengband -g -- -b -n <number of windows> ## double width size tiles
57 ./hengband -g -- -a -n <number of windows> ## 16x16 tiles (tiles of this size are not provided)
58 ```
59
60 ### Install with `setgid`
61
62 Run the following:
63
64 ```
65 ./configure --disable-japanese --with-setgid=games
66 make
67 ```
68
69 Running the following as root or with the sudo command will install the game into `/usr/local`:
70
71 ```
72 make install
73 ```
74
75 See `./configure --help` for more information about changing the installation location and other options.
76
77 ### Configuring display
78
79
80 The default font used in the main window is:
81
82 >  "-*-*-medium-r-normal--24-*-*-*-*-*-iso8859-1,-*-*-medium-r-normal--24-*-*-*-*-*-jisx0208.1983-0"
83
84 The default font used in the sub windows is:
85
86 > "-*-*-medium-r-normal--16-*-*-*-*-*-iso8859-1,-*-*-medium-r-normal--16-*-*-*-*-*-jisx0208.1983-0"
87
88 These can be controlled by setting environment variables:
89
90  * `ANGBAND_X11_FONT_<?>` - Sets the font for a specific window, from 0 to 7, eg `ANGBAND_X11_FONT_0`
91  * `ANGBAND_X11_FONT` - Sets the font for all the remaining windows
92
93 You can also change other window properties:
94
95  * `ANGBAND_X11_AT_X_<?>` - X position of a window
96  * `ANGBAND_X11_AT_Y_<?>` - Y position of a window
97  * `ANGBAND_X11_COLS_<?>` - Width of the window in *half-characters*
98  * `ANGBAND_X11_ROWS_<?>` - Height of the window in *half-characters*
99
100 ### Other notes
101
102 When using **XIM** with **XFree86 4.0** you need to set the environment variable `XMODIFIERS` to either `@im=skkinput` or `@im=kinput2`.
103
104
105 # Getting started
106
107 Hengband is a roguelike game that has its roots in Moria, originally released in 1988. Across hundreds of updates
108 and many variants the game grew in complexity. At first playing it might seem complicated, confusing and impenetrable,
109 especially with no fancy graphics, but the basics are very easy to learn.
110
111 ## Character creation
112
113 Once you start Hengband you'll want to use File -> New in the menu and create your first character.
114 For the start we recommend:
115
116  * **Sex:** any
117  * **Race:** dwarf, so that you can survive more
118  * **Class:** warrior, as it's simple to play
119  * **Personality:** ordinary, to keep things simple
120  * **Birth options:** do not modify anything, press `Escape`
121  * **Autoroller stats:** do not change anything, use arrows to select *Accept* and press `Enter`
122  * **Rolling stats:** keep hitting `r` to reroll your stats, *s* to toggle between last two rolls,
123   *Enter* once you're happy with your stats. It's a good idea to reroll a few times until you get
124   good amount of Hit points is higher than an average roll
125  * **Name:** give your character a name you'll like staring at.
126  * **Character background:** you can edit the character background or leave it as-is (it has no
127   gameplay effect). Press `Enter` when ready.
128  * **Summary:** At this point you can either hit `S` to start over, `Q` to quit or `Enter` to begin the game.
129
130 ## How to move and act
131
132  * Use numeric keyboard to move your character in eight directions, and press 5 to wait a turn.
133  * Walk into enemies to attack them with your melee weapon.
134  * Attacking and killing enemies will give you experience, which in turn lets you level up and get stronger.
135  * Walk up/down the stairs using `<` and `>`.
136
137 ## What to do first
138
139  * A good first step is to exchange Wooden Torches you start with to Brass Lanterns:
140    * Step into the General Store (step on the brown number 1, it's the entrance).
141    * Hit `s` and sell the Torches.
142    * Hit `b` to buy and chose Brass Lanterns.
143    * When asked for quantity type `1`.
144    * Hit `Enter` to quickly accept the price and buy the lantern.
145    * Hit `Escape` to leave the shop.
146    * Hit `w` to wear and select the purchased lantern.
147  * It might also be a good idea to buy one or two Flasks of Oil from the same shop. Use command `F` to fuel
148    the lantern.
149  * Next it's advised you go slightly East of the entrance to the town into Yeek Cave. Step on purple `>`
150    and press that same key on your keyboard to enter the dungeon.
151  * Explore, kill monsters, collect items, go back to town to sell those items and buy better equipment.
152    The world is yours to explore!
153
154 ## Good to know
155
156  * When in town you can leave it to enter the wilderness. You can also enter the overworld map by pressing `<`, though
157    keep in mind you can be ambushed and you'll use a lot of food there.
158  * If you die you die forever. Next time you'll need to either restart with the same character or a create a new one.
159    If you don't like playing that way, there are two ways to work around this:
160    * Open options `=` -> Gameplay Options then toggle *Allow use of debug/cheat options*, then go back to list of options
161      -> Cheat Options and toggle *Allow player to avoid death*
162    * Manually backup saves under `lib/save/` and restore the backups when you die.
163    * Permadeath is seen as part of the fun as it greatly raises the stakes and causes you to play differently. But it
164      can be very frustrating too, especially when you're still learning.
165
166 ## Controls
167
168 At any point in game you can press `?` to open the help. A grouped list of actions can be displayed by pressing `Enter`.
169
170  * **[Movement]**
171    * `Numeric Keyboard` - Move around
172    * `Numeric 5` - Stay still
173    * `Shift+direction` - Run
174    * `Ctrl+direction` - Attack/Open/Close/Dig in that direction
175    * `<` - Go up stairs/Enter the overworld map
176    * `>` - Go down stairs/Leave the overworld map
177  * **[Tools]**
178    * `a` - Aim a wand
179    * `A` - Activate special power of an equipped item
180    * `E` - Eat food
181    * `f` - Fire a missile
182    * `F` - Fuel your torch/lantern
183    * `r` - Read a scroll
184    * `u` - Use a staff
185    * `q` - Quaff a potion
186    * `v` - Throw an item
187    * `z` - Zap a rod
188  * **[Actions]**
189    * `d` - Drop an item
190    * `g` - Pick up an item (You can also enable Auto Pickup in Options -> Input Options -> Pick things up by default)
191    * `l` - Destroy an item
192    * `o` - Open a door or chest
193    * `R` - Rest for a period (The default option `&` rests until you are fully rested)
194    * `s` - Search for traps/doors around you
195    * `S` - Toggle Search mode, where you act slower but keep looking on each move
196  * **[Magic]/[Abilities]**
197    * `b` - Examine spells/prayers/mental powers
198    * `G` - Gain new spells/prayers/mental powers
199    * `m` - Cast a spell/use a mental power
200    * `U` - Use a special power
201  * **[Equipment]**
202    * `t` - Take off an equipped item
203    * `w` - Wear/wield an item
204  * **[Info]**
205    * `C` - Character information
206    * `e` - Display equipped items
207    * `i` - Display inventory
208    * `I` - Displays information about an \*identified* item
209    * `l/*` - Inspect tiles
210    * `L` - Inspect the map around you
211    * `M` - Show full dungeon map
212    * `~` - Display various information
213  * **[Other]**
214    * `@` - Setup macro and keymaps
215    * `=` - Change options
216    * `$` - Reload auto-picker preferences
217    * `_` - Edit auto-picker preferences (Auto-picker only works when *Pick things up by default* is disabled)
218    * `n` - Repeat previous command
219
220 ## Item notation
221
222 * `(XdY)`
223   * Notation used for melee weapons, indicates the base damage dice of the weapon.
224   * The total damage is X rolls of Y-sided dice. For example:
225     * `1d12` is damage range of 1-12, average 6.5 damage
226     * `2d6` is damage range of 2-12, average 7 damage
227     * `3d4` is damage range of 3-12, average 7.5 damage
228 * `(+h,+d)`
229   * Usually used in melee weapons, but can sometimes appear on other equipment as well.
230   * `+h` indicates the bonus to accuracy of a melee attack.
231   * `+d` indicates the bonus to damage of a melee attack.
232   * Either parameter can be negative.
233   * Some heavy armor will omit `+d` and only display something like `(-2)` indicating a negative bonus to accuracy.
234 * `[a,+b]` or `[+b]`
235   * Used on armor.
236   * `a` indicates the natural increase to AC of the piece of armor.
237   * `+b` indicates the magical bonus.
238 * `(+p)` or `(+p Noun)`
239   * Indicates a modifier to item's unique effect.
240   * For example, in case of a *Ring of Damage* it indicate the bonus to damage.
241   * `Noun` is used in weapons and armors, telling what the bonus is for.
242 * `(xN)`
243   * Notation used in projectile weapons.
244   * `N` is the damage multiplier for projectiles.
245
246 ### Example 1: Dagger (2d4) (+10,+15) [+2] (+3)
247
248  * `(2d4)` - Base damage dice
249  * `(+10,+15)` - +10 accuracy bonus, +15 damage bonus
250  * `[+2]` - Magically increases AC by +2
251  * `(+3)` - Power of the special ability of this dagger, which can be known after \*Identifying* (or researching) it.
252
253 ### Example 2: Elven Chainmail (-2) [14,+12] (+3 Stealth)
254
255  * `(-2)` - -2 accuracy bonus
256  * `[14,+12]` - 14 base AC bonus, +12 magical AC bonus
257  * `(+3 Stealth)` - Increases Stealth stat by 3
258
259
260 # Advanced play
261
262 ## Macros
263
264 You will often find yourself repeating the same combination of keypresses multiple times during your game, things like
265 shooting at the closest target with your bow or casting a bunch of buffs on yourself at once. Macros allow you to
266 do that with one keypress.
267
268 * Press `@` to open *Interact with Macros* page.
269 * You have two options here:
270   * **Macros** are a number of keys pressed in sequence, that will trigger some action. For example setting it to `lpo`
271     would require you to press keys `l`, `p` and `o` in quick succession to trigger the effect.
272   * **Keymaps** define a new behavior for a single keypress. It's advised to use keys which normally have no mapping (
273     the easiest way to find those is to just keep pressing keys on your keyboard and see which one shows gibberish).
274 * Now to create your new macro/keymap:
275   * Press the key for either *Create a macro* or *Create a keymap*
276   * Press the key sequence/key you want to assign a new action
277   * Type the sequence of actions you want to trigger
278
279 ## Inscriptions
280
281 Items can be inscribed to add notes but also to trigger special behavior. Below is a list of special inscriptions:
282
283  * `=g`
284     * Will auto-pick these items from the floor.
285     * Most convenient on ammunition or items you throw.
286     * Takes priority over Auto-Picker - even if it'd normally destroy the object, with this inscription the item will
287       be picked up
288  * `#<NAME>`
289     * Displays the name as if it was an artifact name of the item.
290     * For example: **a Broad Sword (2d5) (+0,+0)** inscribed with `#of Yeeks` will be displayed as **a Broad Sword of Yeeks (2d5) (+0,+0)**
291  * `@X?`
292     * Allows you to use a shortcut to access the item with a given command regardless of the position of the item in your inventory.
293     * `X` is the command, eg `f`
294     * `?` is a character you'll type to access the item. Can be a number or a letter.
295     * For example: Tagging arrows with `@f1` will allow you to add a macro `f1*t` to Fire, select those arrows, target closest, fire.
296  * `@?`
297     * Similar to the above, but affects all commands.
298     * `?` must be a number
299  * `!X`
300     * Prevents accidentally using the item with the specified command.
301     * Trying to use the item with specified command will ask you if you really want to do that.
302     * If you mark it with `!*` it will work for all commands.
303  * `.`
304     * Will prevent "Do you want to teleport?" confirmation from appearing if triggered by the inscribed item.
305  * `$`
306     * Disables warnings generated by the inscribed item.
307  * `^X`
308     * Similar to `!X` but affects equipped items.
309  * `%%` or `%%all`
310     * Inscribing an item with these will replace the inscription with a list of resistances and abilities of the
311       inscribed weapon or armor.
312     * It will only display known resistances and abilities - an item has to be either \*Identified* or researched.
313     * `%%` will only display resistances and abilities which are not directly known from item's ego type.
314
315 You can combine multiple inscriptions. For example `@w0@t1!k!k!d#of Corwin` will:
316
317  * Use `0` with command `w` to equip the item
318  * Use `1` with command `t` to take off the item
319  * Require two confirmations if you try to destroy it
320  * Require a confirmation if you try to drop it
321  * Will display the item as if it was named *of Corwin*