Kick (command)

From NetHackWiki
Jump to navigation Jump to search
Keyboard commands
~ ! @ # $ % ^ & * ( ) _ = +
Q W E R T Y U I O P { } |
q w e r t y u i o p [ ] \
A S D F G H J K L : "
a s d f g h j k l ; '
Z X C V B N M < > ?
z x c v b n m , . /
q w e r t u i o p Alt
a s d f j l Alt
c v n m ? Alt
A C R T O Alt
a c d o p r t [ Ctrl
This article is about the command. For the attack type, see kick attack.

In NetHack, the hero can kick through the use of the accompanying command with Ctrl + d, as well as using k (if the number_pad option is on) or the #kick extended command.

Description

Using the kick command will prompt the player for a direction that they want the hero to kick in, assuming that the hero is currently grounded. Kicking in the direction of a peaceful or tame monster that the hero can see will prompt the player if they really want their hero to go through with the action.[1] Kicking a monster will roll to determine whether the kick succeeds, if it is blocked or otherwise evaded by the monster, and if it deals any damage to that monster, and a peaceful monster that the player chooses to kick when prompted will be angered regardless of the outcome.[2]

As with the kick attack type, damage calculations for the kick command account for whether or not the hero is wearing boots and whether or not they are blessed. Kicking boots grant various bonuses to kicking with this command and ensures that such kicks always succeed.[3][4] Monks and Samurai also get various bonuses to kicking from their martial arts training, while a hero polymorphed into a sasquatch will also gain bonuses due to being a "bigfoot".[5][6]

A hero cannot kick using the command under the following conditions:

A hero can still attempt a kick if they are currently engulfed, or else if they are in a pit (or spiked pit) and have phasing, though it will always have no effect in either case.[15][16] Trying to kick while underwater has a 12 chance (50%) chance of failing immediately.[17]

Kicking while levitating or on the Plane of Air will instead have the hero attempt to kick off a monster or a wall on the square that is in the chosen direction, and this will cause them to hurtle in the opposite direction[18][19]—if there is nothing to brace against, the kick attempt will be aborted. Kicking off objects while levitating will always fail when targeting squares with certain dungeon features that are not large enough, specifically a sink, altar, throne, headstone, or fountain.

A hero that is riding a steed and attempts to kick will instead be prompted to kick their steed:[20] doing so initiates galloping, which makes the steed move faster temporarily at the cost of reducing its tameness.

Kicking objects

A hero kicking an object will have various results, depending on the nature of the object as well as the hero's strength level and kicking abilities.

  • A hero kicking a stack of multiple gold pieces that is not too heavy to move has a very high chance of scattering that gold randomly within a few squares of its location:[21][22][23] monsters that are interested in gold can catch any gold that flies towards them, and nearby monsters that were sleeping will awaken regardless of whether they catch any gold that flies at them[24][25]—gold that hits immobile monsters as a result of being kicked will do no damage to them.[26]
    • A peaceful monster that is not a guard and hit by flying gold has a 14 chance of becoming hostile.[27]
    • Monsters that catch gold pieces as a result of the hero kicking that gold will generally behave as though the gold was thrown directly at them, e.g. hostile mercenaries will react as though bribed, hostile shopkeepers that were robbed will calm down if the gold they picked up was enough to cover their losses, and so on.[28]
  • A hero that kicks a fragile object other than crystal plate mail or a helm of brilliance will cause it to break immediately, and potions shattered this way will subject the hero and monsters on adjacent squares to their vapors.[29] Mirrors broken this way incur a -2 penalty to luck, while eggs laid by the hero that are broken this way incur a -1 luck penalty per broken egg. Artifacts with base items that are normally fragile cannot be broken by kicking them.
  • A hero that kicks a container with fragile items inside it other than a bag of holding may cause those fragile contents to break, with a 13 chance rolled per item and luck penalties applied as above.[30][31] If the hero has knowledge of a container's contents and breaks something inside that container by kicking it, they will no longer have that exact knowledge, though the player can usually infer what specific items were broken based on the messages produced.[32]
  • Kicking a statue trap will cause it to activate and bring the statue to life (or the topmost statue, if it is part of a pile with multiple statues).[33]
  • Kicking the corpse of a chickatrice or cockatrice when the hero is not wearing boots will subject them to instant stoning if they do not have stoning resistance, while a hero that does so in the form of any golem will become a stone golem if they were not one already.[34]
  • If the hero kicks an object that is embedded in a wall or door, the object has a chance of coming loose dependent on the hero's dexterity, and otherwise there is a chance of the hero sustaining slight physical damage and possibly a wounded leg.[35]
  • If a hero kicks any object that is too heavy, is fixed in place, or else has a wall next to it in the direction that the hero kicks, then the object will not move[36][37]—this prints a message and may result in the hero taking slight physical damage, with a further 13 chance of a wounded leg.[38] The following objects are also unable to be moved by kicking:

Kicking and breaking fragile items that belong to a shop will result in the hero being charged for them by the shopkeeper.

If the hero kicks at a pile of objects, only the top object of the pile will be affected as described above. Items that are in a web cannot be kicked, nor can items that are in a pit or spiked pit unless the hero has phasing.[41]

The following traits and circumstances can also affect the hero's ability to kick objects and how far those objects travel:

  • A hero that is fumbling has a 13 chance of missing their kick.[42]
  • If a hero that either has the martial arts skill or is polymorphed into a sasquatch kicks an object, and that object moves as a result, its distance will be extended by 1 to 3 squares.[5][6][43]
  • When a hero that is underwater kicks an object that is also underwater and the object is moved by the kick, its movement distance is reduced to D3 + 1 (with a minimum of 1) where D is the normal distance it would travel otherwise.[44]
  • A hero that is on the Plane of Air or in the air bubbles within the Plane of Water and moves an object by kicking it, its distance will be extended by 1 to 3 squares.[45]
  • A hero kicking an object that is on a square of ice increases its distance by 1 to 3 squares.[46]
  • A hero kicking an object that is greased increases its distance by 1 to 3 squares.[47]

A user has suggested improving this page or section as follows:

"Continue detailing section using the commented table."

Kicking a cursed scroll of scare monster will not cause it to crumble, as picking it up would. This is one way to move scrolls that have become cursed.

Maximal distance

The distance the kicked object moves is S/2 - W/40[48], where S is the player's strength, W is the object's weight, with the following caveats:

  • If the player's strength is 18/01 to 18/31, S=18[49]
  • If the player's strength is 18/32 to 19 inclusively, S is effectively 20
  • Each of the following adds 1-3 to the kicking distance:
    • The object is in air (at Plane of Air) or on ice
    • The object is greased, and not underwater or in air
    • The player is a Samurai or Monk, wearing kicking boots, or polymorphed to a sasquatch.
  • If the object is under water, the distance is D/3 + 1, where D is the distance it would move otherwise.

The distance is from the player, so a distance of 1 or less means that the object does not move at all. In this case it is considered too heavy: the player receives a "Thump!" message and possibly wounds their legs.

Otherwise, the object moves the distance unless stopped by an obstacle.

Kicking dungeon features

Target Effect
Empty space Has a chance of abusing strength and wounding your leg. ("Dumb move! You strain a muscle.")[50]
Wall Does a small amount of damage to you ("Ouch! That hurts!") with a chance of hurting your leg. Abuses strength and dexterity.
Closed door May break the door, leaving an empty doorway. Breaking a shop door will anger the shopkeeper unless you immediately pay 400 zorkmids.[51] The act of kicking exercises dexterity. Successfully breaking doors exercises strength.[52][53]
Sink May create a foocubus (always of the opposite gender), a black pudding, or a random ring.[54] Only one of each can come from a given sink.
Fountain With a 13 probability, hurts you as if you were kicking a wall. Otherwise, if wearing boots, a 23 probability to wet them, rusting them if applicable.[55]
Altar With a 13 probability, hurts you as if you were kicking a wall. If co-aligned, immediately reduces your wisdom by one point; if cross-aligned, reduces luck by one or two points. The latter is potentially useful when trying to avoid crowning, as an alternative to keeping your alignment record under 20. Luckier characters have a higher chance of losing two points instead of one.[56]
Tree May create some fruit (e.g. apples or pears), or a swarm of killer bees. Either event can only happen once per tree.
Throne May knock loose some gold and gems (only once per throne) or send you to a lower dungeon level. If the throne has already produced gems and gold or your luck is negative, kicking may destroy it.
Secret door May reveal the door. "Crash! You kick open a secret door!" or "Crash! You uncover a secret door!" If your luck is low, this may be a faster way to make a suspected secret door appear than searching.
Headstone With a 34 probability, hurts you as if you were kicking a wall. Otherwise, the headstone topples over and breaks. A stack of rocks is created on the square, and the engraving is (obviously) removed. This abuses wisdom and makes Archeologists, Samurai and lawful characters lose one point of alignment record. Chaotic Archeologists and Samurai (normally only available by changing alignment) gain one point instead.

Kicking monsters

Kicking monsters can damage them.

The base kicking damage is based on your strength, constitution, dexterity and whether you are wearing kicking boots. The exact formula is

1d(Str+Dex+Con15+b)

where b is 5 if wearing kicking boots and 0 otherwise.

Usually, this will come up to 1d7 - 1d8 with kicking boots or 1d2 - 1d3 without.

  • If your kick is 'clumsy', this base damage is halved. (This is not quite the same thing as "Your clumsy kick does no damage", but related.) Kicks can be clumsy if you are:
    • Wearing bulky body armor (dragon scales and dragon scale mail are considered bulky, as is any form of body armor that weighs 350 or more; all other body armors are non-bulky)
    • Wearing a large shield, which is also considered bulky
    • Carrying a heavy load (more than 70% of your carrying capacity, with higher probability to be clumsy at 80%, and guaranteed at 90%)
    • Fumbling.
  • If you are a martial artist (monk or samurai), there is a random damage bonus between 0 and half your dexterity. This exercises the martial arts skill, but the skill level does not affect the amount of bonus damage.
  • If you are wearing blessed boots, you deal an additional 1d4 damage against major demons and undead creatures.
  • The enchantment of your boots is added to the total damage amount, plus the enchantment of any rings of increase damage you are wearing or have eaten.
  • Thick-skinned monsters like dragons and mumakil take no base damage from a kick. Rings of increase damage, enchanted boots, and blessed boots will still cause their normal damage.[57]
  • If you attempt to kick a shade with unblessed boots, your foot will pass through it, doing no damage. You can only damage a shade by kicking if your boots are blessed, and even then the only damage comes from the 1d4 bonus versus undead.

If you are polymorphed into a sasquatch, you will get a bonus to kicking because you are (a) 'bigfoot'.

There is a +1 to-hit bonus to kicking, even if you are unskilled in martial arts, so it may be a useful strategy for fighting a monster you are having trouble hitting (like a ghost).

Kicking a sleeping monster will wake it up. (As usual, the noise from kicking wakes up all sleeping monsters nearby.)

When levitating, kicking larger monsters will propel you farther, and very small monsters will be more difficult to hit.

With the right training or equipment, you can sometimes send smaller monsters reeling back a square—perhaps into a trap.

Limitations to kicking monsters

Kicking monsters can displace them to a random point adjacent to you, even if they couldn't normally reach that spot: "The monster jumps (or swoops, slides, etc.), nimbly avoiding your kick." This is more likely to happen if you are fumbling or burdened. It is also more likely to happen with flying monsters such as bats.

Kicking a cockatrice without wearing boots will result in stoning.

Kicking a pet is considered abuse.[58]

Messages

Your slow motion kick doesn't hit anything.
You attempted to kick while underwater, and it immediately failed with a 12 chance.

Variants

EvilHack

In EvilHack, some roles have their kicking abilities modified.

  • Druids that use the kick command on live trees will "gently nudge" them instead to avoid hurting the tree, and will not suffer wounded legs when determining the outcome of that action.
  • Monks can perform much more powerful kicks than other heroes using the command, with different messages given.

References

  1. src/dokick.c in NetHack 5.0.0, line 125-L143: maybe_kick_monster() function
  2. src/dokick.c in NetHack 5.0.0, line 32-L123: kickdmg() function for the kick command
  3. src/dokick.c in NetHack 5.0.0, line 10
  4. src/dokick.c in NetHack 5.0.0, line 1327-L1329
  5. 5.0 5.1 src/dokick.c in NetHack 5.0.0, line 7-L9: define is_bigfoot(x)
  6. 6.0 6.1 src/dokick.c in NetHack 5.0.0, line 8-L9: define martial()
  7. src/dokick.c in NetHack 5.0.0, line 1265-L1267
  8. src/dokick.c in NetHack 5.0.0, line 1268-L1270
  9. src/dokick.c in NetHack 5.0.0, line 1285-L1287
  10. src/dokick.c in NetHack 5.0.0, line 1279-L1281
  11. src/dokick.c in NetHack 5.0.0, line 1282-L1284
  12. src/dokick.c in NetHack 5.0.0, line 1294-L1296
  13. src/dokick.c in NetHack 5.0.0, line 1300-L1303
  14. src/dokick.c in NetHack 5.0.0, line 1307-L1310
  15. src/dokick.c in NetHack 5.0.0, line 1333-L1349
  16. src/dokick.c in NetHack 5.0.0, line 1350-L1354
  17. src/dokick.c in NetHack 5.0.0, line 1288-L1290
  18. src/dokick.c in NetHack 5.0.0, line 1355-L1370
  19. src/dokick.c in NetHack 5.0.0, line 1427-L1441
  20. src/dokick.c in NetHack 5.0.0, line 1271-L1278
  21. src/dokick.c in NetHack 5.0.0, line 290-L407
  22. src/dokick.c in NetHack 5.0.0, line 558-L576
  23. src/dokick.c in NetHack 5.0.0, line 695-L713
  24. src/dokick.c in NetHack 5.0.0, line 299-L301
  25. src/dokick.c in NetHack 5.0.0, line 319-L324
  26. src/dokick.c in NetHack 5.0.0, line 302-L308
  27. src/dokick.c in NetHack 5.0.0, line 317-L318
  28. src/dokick.c in NetHack 5.0.0, line 325-L402
  29. src/dokick.c in NetHack 5.0.0, line 678-L680
  30. src/dokick.c in NetHack 5.0.0, line 422-L424: empty containers are skipped, as are magical ones (i.e. bags of holding)
  31. src/dokick.c in NetHack 5.0.0, line 433-L473
  32. src/dokick.c in NetHack 5.0.0, line 469-L471
  33. src/dokick.c in NetHack 5.0.0, line 531-L534
  34. src/dokick.c in NetHack 5.0.0, line 542-L556
  35. src/dokick.c in NetHack 5.0.0, line 615-L647
  36. src/dokick.c in NetHack 5.0.0, line 686-L690
  37. src/dokick.c in NetHack 5.0.0, line 710-L713
  38. src/dokick.c in NetHack 5.0.0, line 880-L906: kick_ouch() function
  39. src/dokick.c in NetHack 5.0.0, line 516-L519
  40. src/dokick.c in NetHack 5.0.0, line 594-L596
  41. src/dokick.c in NetHack 5.0.0, line 522-L530
  42. src/dokick.c in NetHack 5.0.0, line 537-L540
  43. src/dokick.c in NetHack 5.0.0, line 578-L579
  44. src/dokick.c in NetHack 5.0.0, line 581-L583
  45. src/dokick.c in NetHack 5.0.0, line 584-L586
  46. src/dokick.c in NetHack 5.0.0, line 588-L589
  47. src/dokick.c in NetHack 5.0.0, line 590-L591
  48. src/dokick.c in NetHack 3.6.7, line
  49. src/attrib.c in NetHack 3.6.7, line
  50. src/dokick.c in NetHack 3.6.7, line 1249
  51. src/dokick.c in NetHack 3.6.7, line 1296
  52. src/dokick.c in NetHack 3.6.7, line 1287
  53. src/dokick.c in NetHack 3.6.7, line 1291
  54. src/dokick.c in NetHack 3.6.7, line 1163
  55. src/dokick.c in NetHack 3.6.7, line 1067
  56. src/pray.c in NetHack 3.6.7, line 2249
  57. src/dokick.c in NetHack 3.6.7, line 49
  58. src/dokick.c in NetHack 3.6.7, line 73