I have like 60 rules for sword-types alone!
If some macro could unite all sword-types rules by tval (not all SWORDS, all RULES ABOUT SWORDS) under a single rule for "bad", a single rule for "average" and a single rule for "good" swords it would sure make things easier.
The point is a macro that standardizes rules, cleans them up, but doesn't change the effects. It would then be easier to make automatizer files I want to KEEP from one character to the next, while 60 rules just for swords I just want to delete all and start over...
In another order of grouping, the ability to save and load single rules from the game instead of swapping to a text editor
chatter
Some rule condition should be "all sword-types whose hit dice is lower than (3d?) and lower than (?d5)" This would be so much more useful than manipulating 20 sword types or so one by one as we meet them...
A "bad, average or good" category in itself would greatly reduce rule-making time.
Simon: A rule merger is within my coding capacity, but I want some kind of brainstorming before I dive in the coding...
SoulWynd: Err, you can always do this:
<rule name="Good Swords" type="pickup" module="ToME">
<and>
<or>
<tval>30</tval>
<tval>31</tval>
<tval>32</tval>
<tval>xx</tval>
<tval>xx</tval>
...
</or>
<status>good</status>
</and>
</rule>
That's all swords or anything you want to pickup... The point is that you cannot have more than one type of rule... So you need a rule for pick up and another for destroy but you can group all pickups in one rule, all destroys in one rule and so on.
Unless someone invents a new way of handling the rule type, I think that's the only way to save space and make things easier.
Simon: I fear you don't understand. I don't WANT the players to have to bother with learning rule syntax. At least for most items there should be a way to auto-destroy say all good-bad-average broken daggers without having to encounter a good, a bad, and an average broken dagger... having a hit dice based rule would also wipe weak swords right away in one very simple rule!
SoulWynd: Aha. What's there to learn? If you know logic, you know how that syntax works. I can see your point tho, but the dice based rule? Well, It will be sad if people start complaining the automatizer just destroyed some sentient daggers. Btw, you can make the rules without encountering the items but the thing I dislike is the tval. There should be a list for it instead of numbers.
Logrusmage: The automatizer can't destroy sentient daggers, as they're all artifacts.
ToME Wiki