Is it possible to add artefacts through the artefact .txt file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    Is it possible to add artefacts through the artefact .txt file

    I'm attemptihg to add a new sword but I keep getting parsing errors when I'm sure it is correct

    Could someone put an example as to how to do it
  • T-Mick
    Adept
    • Mar 2012
    • 120

    #2
    I know I've added a lot of regular items, and modified artifacts, but I don't remember adding artifacts.

    Make sure you increase the number of artifacts the game expects to find when it reads that text file. That number is in one of those files somewhere. Artifact.txt? Maybe, I forget.

    Comment

    • protopulse
      Apprentice
      • Dec 2016
      • 63

      #3
      @T-Mick Do you know of a way to guarantee that your modified artefact drops? Say at 100 feet?

      Comment

      • Derakon
        Prophet
        • Dec 2009
        • 9022

        #4
        Originally posted by protopulse
        @T-Mick Do you know of a way to guarantee that your modified artefact drops? Say at 100 feet?
        Nothing is guaranteed, but you can set the rarity to super-common and make sure the base item is also super-common. That helps.

        If I recall correctly, artifacts cannot drop in the town, incidentally. But you could e.g. move Farmer Maggot to 50', then he'd have a chance of dropping an artifact (and a higher chance than normal enemies would, because he's unique). You could also give item drops to his dogs.

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9634

          #5
          Originally posted by Derakon
          If I recall correctly, artifacts cannot drop in the town, incidentally. But you could e.g. move Farmer Maggot to 50', then he'd have a chance of dropping an artifact (and a higher chance than normal enemies would, because he's unique). You could also give item drops to his dogs.
          ...once you had added Farmer Maggot, his dogs and a town to Sil
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • protopulse
            Apprentice
            • Dec 2016
            • 63

            #6
            I had to double check to see if I was on the right forum...Town? Farmer Maggot?

            Comment

            • Pete Mack
              Prophet
              • Apr 2007
              • 6883

              #7
              You need to add a value to the limits file too. Are you adding a new type like 'a Phial', or just another artifact with an existing object type. There's a big difference.

              Comment

              • Derakon
                Prophet
                • Dec 2009
                • 9022

                #8
                Originally posted by Nick
                ...once you had added Farmer Maggot, his dogs and a town to Sil
                ...right, yes. A certain minor detail that inexplicably escaped my attention. Apologies all, carry on!

                Comment

                • Guest

                  #9
                  It is either the limits or object file I edit to compensate for the new artefact but I'm not too sure what to add in each of those files

                  I do not get how the tval and sval functions and how I should chamge it

                  Comment

                  • Guest

                    #10
                    Originally posted by Pete Mack
                    You need to add a value to the limits file too. Are you adding a new type like 'a Phial', or just another artifact with an existing object type. There's a big difference.
                    I'm adding a sword, what I tried to do was copy and past the text for one sword and change the number and name of it (I thought that would suffice to make a new entity)

                    As a matter of interest what is the difference between a phial or another existing object type

                    Comment

                    • Derakon
                      Prophet
                      • Dec 2009
                      • 9022

                      #11
                      Originally posted by Gothmog
                      I do not get how the tval and sval functions and how I should chamge it
                      tval is "type" and sval is "subtype"; together they identify the specific item like Dagger, Lembas, etc. Examples of types are edged weapons, food, staves (they generally correspond to a graphic).

                      Comment

                      • Guest

                        #12
                        I want to put a sword (that I added) that is an artefact in my start inventory to make sure it is the way I want it, but I keep getting an ordinary mithril sword, why?

                        Comment

                        • Pete Mack
                          Prophet
                          • Apr 2007
                          • 6883

                          #13
                          No idea. Try using debug option "easy knowledge" instead. It should show up in "artifact knowledge"

                          Comment

                          • Nick
                            Vanilla maintainer
                            • Apr 2007
                            • 9634

                            #14
                            Originally posted by Gothmog
                            I want to put a sword (that I added) that is an artefact in my start inventory to make sure it is the way I want it, but I keep getting an ordinary mithril sword, why?
                            My guess is that the code that makes the player starting inventory just grabs the base item, and has no capacity for adding the artifact information.
                            One for the Dark Lord on his dark throne
                            In the Land of Mordor where the Shadows lie.

                            Comment

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