Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old September 21, 2017, 08:09   #1
TheQuest
Apprentice
 
Join Date: Aug 2013
Posts: 55
TheQuest is on a distinguished road
Question 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.
TheQuest is offline   Reply With Quote
Old September 21, 2017, 10:57   #2
GenericPseudonym
Apprentice
 
Join Date: Jan 2016
Posts: 81
GenericPseudonym is on a distinguished road
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.
GenericPseudonym is offline   Reply With Quote
Old September 21, 2017, 11:36   #3
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 1,131
wobbly is on a distinguished road
I'd be careful with that 2nd option which is likely to destroy healing potions unless explicitly told not to.
wobbly is offline   Reply With Quote
Old September 22, 2017, 13:45   #4
TheQuest
Apprentice
 
Join Date: Aug 2013
Posts: 55
TheQuest is on a distinguished road
thanks guys!
TheQuest is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug: "n" not counted as a non-"ESC" key chikinn Vanilla 3 November 8, 2014 23:34
Bug with "Turn" in the "Player History" dump bron Vanilla 3 January 17, 2014 17:35
Undoing "destroy item" fph Vanilla 3 May 8, 2011 03:52
"Great" drops replaced by "good" drops in vaults: bug or feature? PowerWyrm Vanilla 14 February 27, 2010 16:54
"repeat" Command just little bit "smarter" ClaytonAguiar Vanilla 8 June 17, 2009 16:01


All times are GMT +1. The time now is 11:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.