automat.atm and status

Everything about ToME 2.x.x. No spoilers, please

Moderator: Moderator

Post Reply
Message
Author
budswell
Wyrmic
Posts: 292
Joined: Wed May 21, 2008 2:08 am

automat.atm and status

#1 Post by budswell »

Hi
I use the Automatiser and have a weapon/armour destroying rules like:

Code: Select all

<or>
    <and>
        <level min="11" max="50"></level>
        <status>average</status>
    </and>
    <and>
        <level min="21" max="50"></level>
        <status>good</status>
    </and>
    <status>very bad</status>
    <status>bad</status>
</or>
So my question is about the status. I'm playing a lev 20+ character (like my current geomancer) with poor psudeo ID, then basically all I get is {good}. i.e. No differentiation between {good} and {excellent}.
Does the automatiser drive off the psudeo status or the actual item quality? i.e. Could I inadvertadly be destroying {excellent} items once the psudeo ID says they're good?

Yottle
Reaper
Posts: 1753
Joined: Sun Jan 26, 2003 11:49 pm
Location: West Virginia

Re: automat.atm and status

#2 Post by Yottle »

budswell wrote:...
So my question is about the status. I'm playing a lev 20+ character (like my current geomancer) with poor psudeo ID, then basically all I get is {good}. i.e. No differentiation between {good} and {excellent}.
Does the automatiser drive off the psudeo status or the actual item quality? i.e. Could I inadvertadly be destroying {excellent} items once the psudeo ID says they're good?
Yes, you are losing any excellent items.

The solution is to add a term that checks to see if the item is identified, and only destroys good stuff if it is.

budswell
Wyrmic
Posts: 292
Joined: Wed May 21, 2008 2:08 am

Re: automat.atm and status

#3 Post by budswell »

OK. Thanks for that. Don't care about weapons (although the gold would be nice from arrows and the cool stuff like Aman), but I still am missing a bunch of armour slots. So I'll change it to something like this

Code: Select all

<and>
    <level min="21" max="50"></level>
    <status>good</status>
    <or>
        <skill min="11" max="50">Combat</skill>   (because 11 gives {excellent})
        (item is identified - don't know how to do this one, I'll figure it out)
</and>

Yottle
Reaper
Posts: 1753
Joined: Sun Jan 26, 2003 11:49 pm
Location: West Virginia

Re: automat.atm and status

#4 Post by Yottle »

Look at the automatizer- it is one of the flags you can add. I think that it is <state>Identified</state>, but I don't have access to the game at the moment.

madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Re: automat.atm and status

#5 Post by madmonk »

Something like this?

Code: Select all

rule "good weapons" destroy
  if (tval = TV_SWORD, TV_AXE, TV_HAFTED, TV_POLEARM, TV_MSTAFF
      or (tval = TV_DAEMON_BOOK and sval = SV_DEMONBLADE
	  and not skill "Demonology" = 1-50))
     and status = "good" and (state = identified or skill "Combat" = 11-50)
It goes on (and on and on).

This is from Zizzo's automat.atm. If you do use his atm file, you will also have to add in his autoparser stuff...
Regards

Jon.

Post Reply