fork download
  1. #!/bin/bash
  2.  
  3. # The -r means to use extended regular expressions, beecause the last one needs
  4. # them for the [:digit:].
  5. # Each -e is a substitution: the first replaces a line starting with a hyphen
  6. # with a line consisting of just a capital N; the ones for + and x are
  7. # equivalent. The + needs to be escaped or it will be interpreted specially and
  8. # cause errors. The one for space is slightly different: if the line starts with
  9. # any number of spaces and then a digit, replace it with a S; if it still starts
  10. # with a space, delete the line (assume it's a wrapped description)
  11.  
  12. sed -r -e 's/^-.*/N/' \
  13. -e 's/^\+.*/Y/' \
  14. -e 's/^x.*/X/' \
  15. -e 's/^ +[[:digit:]].*/S/' -e '/^ .*/d'
Success #stdin #stdout 0s 5076KB
stdin
    35   1 arcane mark
-   38   1 read magic
    40   2 prestidigitation
+   42   2 light [causes room to be well-lit with no obvious source]
+   44   2 detect magic
-   50   2 acid splash
-   59   3 ray of frost
-   80   3 mage hand
-   77   3 mending
+   78   4 color spray
-   83   5 magic missile
+  122   5 protection
-   73   5 lesser healing
+   71   6 grease
-   96   6 alarm
-   85   6 detect monsters
+   55   7 web
-   70   7 comprehend language [single language, single mode (e.g. written/spoken/signed), must have sample]
-   65   8 lesser enchant armor [material cost]
-   67   8 lesser enchant weapon [material cost]
-   69   8 search [detect secret doors, traps, etc.; doesn't detect magically hidden things]
    50   9 planar message [one-way, telepathic, non-language-dependent]
+   86   9 identify
-   95   9 clairvoyance
-  104  10 create monster [hostile]
-   70  10 summon animal [mundane trained animal, e.g. dog or horse]
x  350  10 scribe magic [write spellbook]
-   78  11 ray of sleep
-  103  11 lightning bolt
-   76  12 feather fall
-   83  12 jump
-  110  12 knock
-   90  13 hold portal
-  150  13 confusion
-   81  13 fire resistance
-   83  13 cold resistance
-   94  14 acid resistance
-   97  14 lightning resistance
+   67  14 create food and water
x  500  15 minor planar ally [offer trade; cannot transport target; 6-second time limit]
+  155  15 remove curse
-   83  16 slow digestion
+  120  16 fireball
+  161  17 fly
-  180  18 secret page
-  182  18 poison cloud
-  176  19 explosive runes
   183  19 gentle repose
+  198  20 invisibility
-  231  21 sunlight
-  233  21 water breathing
-  209  22 lesser polymorph [random, very similar form, e.g. orcish dagger to elvish dagger, human to elf]
-  217  23 sanctuary [works like Elbereth]
-  220  23 slow
-  224  24 haste
-  222  24 dimension door
-  250  24 levitation
-  244  25 greater search [detect even magically hidden, but instant and undetailed]
+  330  25 shape metal
+  337  26 scry [select location on same dlvl or within horizontal (along same grav.potential) line of sight;
                 gain instant (non-continuing) info as though standing there and looking around]
-  321  27 dimensional anchor
   342  28 animate dead [does not grant control]
-  396  29 freedom of movement
-  402  29 detect treasure
-  986  30 lesser wish [create nonmagical item, expend 2x value]
-  413  32 ethereal jaunt
-  360  36 greater enchant armor [material cost]
+  364  36 greater enchant weapon [material cost]
   330  37 magic trap [1-shot trap casts expended spell]
+  312  38 teleport [random, horizontal, not into wall, onto ground/floor, within dlvl or 100m radius]
-  335  39 hold monster
x 1500  40 major planar ally [as minor planar ally, but 1-hour time limit]
-  633  41 dig
+  542  42 permanency [material cost]
+  600  48 dispel magic
+  616  50 turn undead
-  552  50 greater healing
-  523  51 polymorph [random, broadly similar type, e.g. mace to bow, human to dragon]
-  789  52 chain lightning
-  555  53 transmute stone to flesh [statue produces nonmagical corpse unless made by flesh to stone]
-  569  55 transmute flesh to stone
-  612  57 controlled teleport [select location as scry]
+  842  60 plane shift
-  854  78 temporal stasis
-  903  86 trap the soul
   989  96 gate
- 1248 101 summon person [similar to Naruto summoning contract, but individual rather than species]
  1123 108 time stop
- 1382 113 greater polymorph [random, cross-type, e.g. dragon to sword]
+ 4296 120 wish [create even magical item, expend 2x value]
- 1686 145 mass time stop
  8000 666 create demiplane [material cost: 10,000gp per cubic meter, more for special effects]
stdout
S
N
S
Y
Y
N
N
N
N
Y
N
Y
N
Y
N
N
Y
N
N
N
N
S
Y
N
N
N
X
N
N
N
N
N
N
N
N
N
N
N
Y
X
Y
N
Y
Y
N
N
N
S
Y
N
N
N
N
N
N
N
N
N
Y
Y
N
S
N
N
N
N
N
Y
S
Y
N
X
N
Y
Y
Y
N
N
N
N
N
N
Y
N
N
S
N
S
N
Y
N
S