Mogaminator: "destroy if value less than X"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheQuest
    Apprentice
    • Aug 2013
    • 74

    Mogaminator: "destroy if value less than X"

    Is there a way to alter this

    Code:
    ?:[GEQ $LEVEL 20]
    !average common weapons                                                                              
    !average common shooters
    !average common armors
    !cursed nameless common items
    ?:1
    so that it destroys all average items and all {good} items, that after identification have value (score) less than 1000, for example?

    P.S. In poschengband, of course.
    As kt making http://angband.live better in time to time
  • GenericPseudonym
    Apprentice
    • Jan 2016
    • 91

    #2
    The "nameless" keyword will destroy all {bad}, {average}, and {good} items (i.e., everything except egos and artifacts).

    Code:
    !nameless common weapons
    would destroy a +5,+5 longsword but not Ringil, not a longsword (nature), and not a cursed longsword of morgul

    As far as I'm aware the Mogaminator has a "More value than" option but not a "less value than" one.
    Since rules earlier in the file take precedence over ones later in the file, you could do something like this:
    Code:
    ?:[GEQ $LEVEL 20]
    ~nameless common weapons more value than 1000
    ~nameless common shooters more value than 1000
    ~nameless common armors more value than 1000
    !nameless common weapons                                                                              
    !nameless common shooters
    !nameless common armors
    !cursed nameless common items
    ?:1
    This will leave on the ground those valuable weapons/shooters/armors but destroy the less valuable ones.

    Or, if you don't want to destroy *any* valuable item, you can simply put something like

    Code:
    ~?unidentified items
    ~items more value than 1000
    in your mogaminator below all the pickup rules but above all the destruction rules.

    Comment

    • wobbly
      Prophet
      • May 2012
      • 2631

      #3
      I'd be careful with that 2nd option which is likely to destroy healing potions unless explicitly told not to.

      Comment

      • TheQuest
        Apprentice
        • Aug 2013
        • 74

        #4
        thanks guys!
        As kt making http://angband.live better in time to time

        Comment

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