Almost Random Artifacts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Malatar
    Scout
    • Dec 2009
    • 25

    Almost Random Artifacts

    Is there a way to keep one artifact from randomizing with randart at birth? I'm trying to prevent randomizing Sting but I want all the others to be new...
  • Antoine
    Ironband/Quickband Maintainer
    • Nov 2007
    • 1010

    #2
    Originally posted by Malatar
    Is there a way to keep one artifact from randomizing with randart at birth? I'm trying to prevent randomizing Sting but I want all the others to be new...
    You know, it would also be nice if there was an option to 'slightly randomise' artefacts, so you could say 'ooh! this game Ringil has 4d6 base damage and +12 speed. thats a good one'.

    A.
    Ironband - http://angband.oook.cz/ironband/

    Comment

    • Sky
      Veteran
      • Oct 2016
      • 2321

      #3
      It's everyone's dream to couple the Glaive Of Pain with a cloak of +AcidBrand.
      "i can take this dracolich"

      Comment

      • Malatar
        Scout
        • Dec 2009
        • 25

        #4
        Wouldn't it be pretty easy to just have the rand art code ignore and pass through artifacts whose names start with ! or some other "skip me" character in artifact.txt?

        Comment

        • Derakon
          Prophet
          • Dec 2009
          • 9022

          #5
          It's not quite that straightforward. The game analyzes artifact.txt to get an understanding of what kinds of power levels are appropriate, and then uses that analysis to guide generation of new artifacts. It doesn't mutate artifacts in-place, in other words. You'd need to add additional logic to do something like "if you encounter an artifact with this special flag, don't analyze its power, but do record it in this data structure over here", and then in the randart generation, say "take this data structure and add artifacts from the data in it, before doing the usual randart generation process." And that still wouldn't let you do things like Antoine was suggesting.

          Comment

          • Antoine
            Ironband/Quickband Maintainer
            • Nov 2007
            • 1010

            #6
            Originally posted by Derakon
            And that still wouldn't let you do things like Antoine was suggesting.
            I suspect mine is quite easy (but completely orthogonal to the existing randart code)

            A.
            Ironband - http://angband.oook.cz/ironband/

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9647

              #7
              Originally posted by Antoine
              I suspect mine is quite easy (but completely orthogonal to the existing randart code)

              A.
              If you want changes, make your own variant. I mean, another one. I mean, another other one. I mean...
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

              • Werbaer
                Adept
                • Aug 2014
                • 182

                #8
                Originally posted by Derakon
                You'd need to add additional logic to do something like "if you encounter an artifact with this special flag, don't analyze its power, but do record it in this data structure over here", and then in the randart generation, say "take this data structure and add artifacts from the data in it, before doing the usual randart generation process."
                Isn't it currently the case that The One and the special Morgoth artifacts don't get randomized?

                I assume excluding these artfacts is hard-coded in the randart code. Instead a new flag could be introduced that controls this behaviour.

                Comment

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