class.txt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tibarius
    Swordsman
    • Jun 2011
    • 429

    class.txt

    Angband 4.2.1:

    CLASS.TXT:

    (1) After defining rogues with the 5 magic books used in mages and redefining 54 mage "magic books" i encounter random crashes on startup during the "initialization player classes ..." phase.
    About 2/3 of all startups crashes, the other 1/3 reach the choose [N]ew or [O]pen from file menu point. Does only happen with a replaced class file in /lib/user. See 2nd post for code snippets.

    (2) I would like to have the different classes have different XP modificators.
    Could you please either re-introduce "info" or add "exp:"?

    (3) What i would further like to see is: the possibility to have the town generated like in 3.5.1, a rectangle without any lava or such things.

    (4) I don't find any books in "object.txt" anymore ... where is the weight / deepth of books defined please?

    (5) the old player class is missing the "sleep monster" spell, only mass sleep and sanctuary are available. Is there a bolt available to define a "sleep bolt" ?
    Or can just STATUS_BOLT:SLEEP_ALL can be used?

    (6) What is the town/dungeon flag good for in the magic books? If i change "dungeon" to "town" in the Arcane Control magic book, i expected it to show up
    in the bookshop, but instead the game just crashes ...

    STORE.TXT:

    (7) store.txt does not define the number of spell books available in the shop. If i change the mage spell books, the 1st three are available in the shop.
    Is that hardcoded somewhere? Why not use the same structure as in the other shops, and let the available books be defined in store.txt?
    Something like this:
    always:magic book:Mage Spells
    always:magic book:Attacks and Knowledge
    always:magic book:Magical Defences

    (8) store.txt
    A parse error occurs, if i want to define magic books that are not always but only sometimes available in the bookshop. Like:
    always:magic book
    normal:magic book:Magic Missile

    (9) Enchant Armor: Sometimes it targets my equipped weapon instead of let me choose an armor item.


    Thanks
    Last edited by Tibarius; November 29, 2020, 21:22.
    Blondes are more fun!
  • Tibarius
    Swordsman
    • Jun 2011
    • 429

    #2
    code snippets

    To avoid the following forum error message i had to replace some chars with others ... can that be turned off somewhere?
    I think one was able to post code snippets in times back.
    You have included 38 images in your message. You are limited to using 10 images so please go back and correct the problem and then continue again.
    Images include use of smilies, the BB code [img] tag and HTML <img> tags. The use of these is all subject to them being enabled by the administrator.

    replaced : with .
    replaced [ with {
    replaced ] with }

    ############### MAGE ###############
    name.Mage
    stats.-3.3.0.0.0
    skill-disarm-phys.30.10
    skill-disarm-magic.35.12
    skill-device.36.13
    skill-save.30.9
    skill-stealth.2.0
    skill-search.10.12
    skill-melee.35.15
    skill-shoot.20.15
    skill-throw.20.15
    skill-dig.0.0
    hitdie.0
    max-attacks.4
    min-weight.40
    strength-multiplier.2
    equip.food.Ration of Food.1.3
    equip.light.Wooden Torch.1.3
    equip.sword.Rapier.1.1
    equip.scroll.Word of Recall.1.1
    player-flags.ZERO_FAIL | BEAM | CHOOSE_SPELLS
    title.Apprentice
    title.Mage
    title.Conjurer
    title.Invoker
    title.Sorcerer
    title.Wizard
    title.Warlock
    title.Battlemage
    title.Arcane Lord
    title.High Wizard


    magic.1.300.54

    # mage spell 1{starting spell mages}
    book.magic book.town.{Magic Missile}.1.arcane
    book-graphics.?.R
    book-properties.200.16.1 to 50
    equip.magic book.{Magic Missile}.1.1
    spell.Magic Missile.1.1.22.3
    effect.BOLT_OR_BEAM.MISSILE.-50
    dice.$Dd4
    expr.D.PLAYER_LEVEL.- 1 / 5 + 3
    desc.Fires a magic missile that always hits its target and does
    desc. unresistable damage.

    # mage spell 2 {starting spell rogues}
    book.magic book.town.{Detect Objects}.1.arcane
    book-graphics.?.R
    book-properties.200.16.1 to 50
    spell.Detect Objects.1.1.22.3
    effect.DETECT_STAIRS
    effect-yx.22.40
    effect.DETECT_GOLD
    effect-yx.22.40
    effect.DETECT_DOORS
    effect-yx.22.40
    #effect.DETECT_TRAPS
    #effect-yx.22.40
    #effect.DETECT_OBJECTS
    #effect-yx.22.40
    desc.Detects stairs, gold and doors in the immediate area.
    desc. Rogues additionally detect traps & objects.

    # mage spell 3 {starting spell rangers}
    book.magic book.town.{Create Arrows}.1.arcane
    book-graphics.?.R
    book-properties.200.16.1 to 50
    spell.Create Arrows.1.1.22.3
    effect.CREATE_ARROWS
    desc.Allows the player to turn a staff into a stack of arrows, with quality
    desc. depending on staff level and player level.

    # mage spell 4
    book.magic book.dungeon.{Detect Monsters}.1.arcane
    book-graphics.?.R
    book-properties.200.16.1 to 50
    spell.Detect Monsters.1.1.23.4
    effect.DETECT_VISIBLE_MONSTERS
    effect-yx.22.40
    desc.Detects all non-invisible monsters in the immediate area,
    desc. for one turn only.

    ...

    # mage spell 53
    book.magic book.dungeon.{Mind Blast}.1.arcane
    book-graphics.?.R
    book-properties.200.2.80 to 100
    spell.Mind Blast.30.30.75.1000
    effect.BOLT_AWARE.MON_CONF
    dice.$B
    expr.B.PLAYER_LEVEL.* 2 + 10
    desc.Attempts to confuse a single monster for a level-dependant duration.
    desc. Monsters that resist confusion are not affected.

    # mage spell 54
    book.magic book.dungeon.{Word of Destruction}.1.arcane
    book-graphics.?.R
    book-properties.200.2.80 to 100
    spell.Word of Destruction.30.50.75.1000
    effect.DESTRUCTION.LIGHT.15
    desc.Destroys everything in a 15-square radius circle around you.
    desc. All monsters, objects, and terrain features in the area of
    desc. effect are destroyed, except stairs and permanent walls.
    desc. You will also be blinded for 10+1d10 turns, unless you
    desc. have resistance to blindness or light.
    desc. This spell has no effect when used in the town.


    ############### ROGUE ###############
    name.Rogue
    stats.0.1.-3.3.-1
    skill-disarm-phys.45.20
    skill-disarm-magic.45.20
    skill-device.32.10
    skill-save.28.10
    skill-stealth.3.1
    skill-search.20.16
    skill-melee.35.45
    skill-shoot.66.30
    skill-throw.72.45
    skill-dig.0.0
    hitdie.4
    max-attacks.5
    min-weight.20
    strength-multiplier.4
    equip.food.Ration of Food.1.3
    equip.light.Wooden Torch.1.3
    equip.sword.Dagger.1.1
    equip.soft armour.Soft Leather Armour.1.1
    equip.scroll.Word of Recall.1.1
    player-flags.CHOOSE_SPELLS | STEAL
    title.Vagabond
    title.Cutpurse
    title.Footpad
    title.Robber
    title.Burglar
    title.Filcher
    title.Sharper
    title.Rogue
    title.Thief
    title.Master Thief

    magic.5.350.5

    book.magic book.town.{Mage Spells}.7.arcane
    book-graphics.?.R
    book-properties.25.40.1 to 100
    equip.magic book.{Mage Spells}.1.1

    spell.Detect Monsters.5.1.50.4
    effect.DETECT_VISIBLE_MONSTERS
    effect-yx.22.40
    desc.Detects all non-invisible monsters in the immediate area,
    desc. for one turn only.

    spell.Phase Door.7.2.55.4
    effect.TELEPORT
    dice.10
    desc.Teleports you randomly up to 10 squares away.

    spell.Object Detection.10.3.60.5
    effect.DETECT_GOLD
    effect-yx.22.40
    effect.DETECT_OBJECTS
    effect-yx.22.40
    desc.Detects all objects in the immediate area.

    spell.Detect Stairs.12.3.50.5
    effect.DETECT_STAIRS
    effect-yx.44.60
    desc.Detects all stairs in a wide area.

    spell.Recharging.20.10.50.6
    effect.RECHARGE
    dice.$B
    expr.B.PLAYER_LEVEL./ 10 + 4
    desc.Adds charges to a stack of wands or staves.
    desc. Chance of success and number of charges gained increase with your
    desc. level and decrease with level of wand or staff and number of charges.
    desc. A failed attempt to recharge destroys one wand or staff from the stack.

    spell.Reveal Monsters.25.3.40.8
    effect.DETECT_INVISIBLE_MONSTERS
    effect-yx.22.40
    effect.DETECT_VISIBLE_MONSTERS
    effect-yx.22.40
    desc.Detects all monsters in the immediate area, for one turn only.


    book.magic book.town.{Attacks and Knowledge}.1.arcane
    book-graphics.?.R
    book-properties.400.40.10 to 100

    spell.Identify Rune.8.7.25.8
    effect.IDENTIFY
    desc.Reveals an unknown rune on an object.


    book.magic book.town.{Magical Defences}.1.arcane
    book-graphics.?.R
    book-properties.1600.20.30 to 100

    spell.Teleport Self.7.6.35.5
    effect.TELEPORT
    dice.M$M
    expr.M.PLAYER_LEVEL.* 9 / 5
    desc.Teleports you randomly within the current level.


    book.magic book.town.{Arcane Control}.3.arcane
    book-graphics.?.r
    book-properties.30000.15.40 to 100

    spell.Hit and Run.23.20.40.20
    effect.TIMED_INC.ATT_RUN
    dice.10
    desc.Prepares you to teleport a short distance after stealing from a monster.

    spell.Teleport Other.30.10.30.50
    effect.BOLT_STATUS.AWAY_ALL
    dice.$B
    expr.B.PLAYER_LEVEL.* 3
    desc.Produces a bolt that teleports away the first monster in its path.
    desc. Distance teleported increases with player level.

    spell.Teleport Level.35.17.65.80
    effect.TELEPORT_LEVEL
    desc.Teleports you 1 level up or 1 level down {chosen at random}.
    desc. This spell may have no effect when the forced descent option is set.


    book.magic book.dungeon.{Wizard's Tome of Power}.1.arcane
    book-graphics.?.r
    book-properties.50000.10.60 to 100

    spell.Mass Banishment.40.75.90.100
    effect.MASS_BANISH
    desc.Removes all monsters within 20 squares of you.
    desc. Uniques are not affected.
    desc. You take 1d3 points of damage for every monster removed.
    Blondes are more fun!

    Comment

    • wobbly
      Prophet
      • May 2012
      • 2629

      #3
      Originally posted by Tibarius
      I think one was able to post code snippets in times back.
      Code:
      its the # symbol on the forum menu

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎