Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Sil (http://angband.oook.cz/forum/forumdisplay.php?f=12)
-   -   If I want to add a new artefact, in what part of the artefact folder will I put it? (http://angband.oook.cz/forum/showthread.php?t=8271)

Gothmog February 21, 2017 12:38

If I want to add a new artefact, in what part of the artefact folder will I put it?
 
I tried to make a long sword and I made it super common to see if I implemented it successfully, but I am not finding it at all, and I want to make sure I'm doing it right before I add any others
this is it

N:85:'Elf's bane'
I:50:55:0
W:2:1:1:50000
P:1:2d5:1:0d0
F:BRAND_ELEC | SHARPNESS
D:wrought in Utumno
D: the blade is searing hot like the Black hand of
D: It's wielder Sauron

Same goes with a vault I made it super common but it is not spawning

phylyc February 21, 2017 15:33

There is no item with tval 50. The tval of edged weapons is 23 and the sval of a Longsword is 17. So, you want to change the artifact to

N:85:'Elf's bane'
I:23:17:0
W:2:1:1:50000
P:1:2d5:1:0d0
F:BRAND_ELEC | SHARPNESS
D:wrought in Utumno
D: the blade is searing hot like the Black hand of
D: It's wielder Sauron

Also make sure that you insert it after N:84 (that is Delmereth) in the artefact.txt file as all the ID's have to be ordered. That is all you have to do.

To test it you can also go into debug mode (>ctrl+a) (pw Gondolin) and create the artifact with (>ctrl+a >shift+c) and then enter the ID, which is 85 for your longsword. In my version this doesn't work though since Sil isn't taking the ID input (could be a mac problem), so I had to fix it by adding a query for additional player input at that place and recompile it. Otherwise, just go and slay monsters until it drops.

Hope this helps. :)

Gothmog February 22, 2017 11:32

It did thanks :D


All times are GMT +1. The time now is 10:38.

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