edit files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tummychow
    Apprentice
    • Sep 2009
    • 93

    edit files?

    I was fiddling with the edit files to add some new artifacts (they were cheap and unfair. I play Angband for the fun of it, not to boast that I won!) and such, and I wanted some clarification on some of the edit functions.
    ONE: How do you add ring or amulet artifacts? I found some related bits in the objects edit file but I'm not sure I understand fully. And is there *any* way to exceed the 15-piece limit on those special artifacts?
    TWO: How do I examine the contents of spellbooks and add new spells, or edit the effect of existing spells? The spellbook edit file only lets me edit the mana costs and fail rates of the spells already present.
    THREE: Can I every modify the shops to increase the slots in them? In particular, can I expand my house to hold more items?
  • takkaria
    Veteran
    • Apr 2007
    • 1951

    #2
    Originally posted by tummychow
    I was fiddling with the edit files to add some new artifacts (they were cheap and unfair. I play Angband for the fun of it, not to boast that I won!) and such, and I wanted some clarification on some of the edit functions.
    ONE: How do you add ring or amulet artifacts? I found some related bits in the objects edit file but I'm not sure I understand fully. And is there *any* way to exceed the 15-piece limit on those special artifacts?
    TWO: How do I examine the contents of spellbooks and add new spells, or edit the effect of existing spells? The spellbook edit file only lets me edit the mana costs and fail rates of the spells already present.
    THREE: Can I every modify the shops to increase the slots in them? In particular, can I expand my house to hold more items?
    All of those have to be done in code, I'm afraid.
    takkaria whispers something about options. -more-

    Comment

    • Pete Mack
      Prophet
      • Apr 2007
      • 6883

      #3
      Originally posted by takkaria
      All of those have to be done in code, I'm afraid.
      I don't think you actually need to add the SVALS to tvalsval.h--those names are never actually used; they are just there to keep track.)

      But you do need to create generic INSTA_ART objects in object.c, with new svals. (Looking at tvalsval.h 39-49 and 56+ are available for rings, 55+ are available for amulets.)

      And you may need to modify limits.txt

      Comment

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