Changes to lib/edit files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Iemortal
    Rookie
    • Sep 2007
    • 5

    Changes to lib/edit files

    Hello.

    so i've been playing Angband a while now. and started working with the lib/edit directory.

    is there anywhere where a list of edits can be found?

    example:

    N:440:& C Bag~
    G:$:y
    I:21:51:0
    W:0:0:50:100
    A:10/1
    P:0:1d4:0:0:0
    F:SHOW_MODS | EASY_KNOW |
    F:WIS | INT | SUST_WIS | SUST_INT
    D: Simple, Timeless, and a great place for
    D: all your spell books.

    i've added some new items like the above to the object.txt

    they work, show up as drops ect...

    but i want to know how to add the random +'s to the weapon.

    it is a sub item of the blunt set. i could not use 21:21:0 so i
    skiped ahead to after the artifact 21:50:0

    and also where the pval to an object for a flag for WIS or STR come from?

    |# 'I' is for basic information. The tval is for the type of item, the
    |# sval identifies the subtype and the pval indicates the amount of
    |# effect the item has, if applicable (a fixed value: variable pvals
    |# are currently hard-coded.)

    |* Note that "flags1" contains all flags dependant on "pval" (including
    |* stat bonuses, but NOT stat sustainers), plus all "extra attack damage"
    |* flags (SLAY_XXX and BRAND_XXX).

    How is pval calculated?

    i've looked all over the internet for a editing guide to the lib/edit directory with no luck.

    anyone have any ideas. Searching the code is a long process.

    i've been writing better
    ##### comments #####
    in my .txt files as i learn more but any help would be great.

    so far it's alot of trial and error. and a lot of rolling back my version.

    iemortal.
    Last edited by Iemortal; September 22, 2007, 07:27.
  • will_asher
    DaJAngband Maintainer
    • Apr 2007
    • 1124

    #2
    I don't think you can have random +s in the object.txt, you would have to put it is an ego. Any +s (pval) in object.txt are fixed.
    Will_Asher
    aka LibraryAdventurer

    My old variant DaJAngband:
    http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

    Comment

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