Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Vanilla (http://angband.oook.cz/forum/forumdisplay.php?f=3)
-   -   edit files? (http://angband.oook.cz/forum/showthread.php?t=2286)

tummychow September 13, 2009 17:29

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 September 13, 2009 17:31

Quote:

Originally Posted by tummychow (Post 23927)
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.

Pete Mack September 13, 2009 20:38

Quote:

Originally Posted by takkaria (Post 23928)
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


All times are GMT +1. The time now is 05:57.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.