A handful of artifacts have the sentient flag, and ego-weapons may be given the flag as well though no sentient ego-weapons exist in ToME (some modules have sentient ego-weapons).

Sentient Artifacts

Gaining Experience

Sentient weapons gain experience when a kill is made with them in melee. They gain half the amount that the player does from the kill, and the player still gains the full amount (this is different from alchemy's artifact "training".) Since the amount of experience gained is dependent on the player, there is no huge bonus for making the first kill a high-experience kill.

Gaining Levels

As the weapon accumulates experience it gains levels, maxing out at level 50.

When a sentient weapon gains a level, it may do one of three things, with chances 33%, 33% and 34% respectively.

Consider gaining a new realm means pick a realm at random, and see if we have enough points in the invisible counter. If we do, then buy it, otherwise try again quite a lot of times. You are effectively guaranteed to get a realm if there is one you can afford.

Consider gaining a new power means pick at random one of the realms you have, then keep picking powers from that realm until you find one you don't have. If that fails (i.e. you have them all) then try a different realm.

(By at random I mean with equal chances for all possibilities)

The probability of getting a specific 10 point realm is approximately 100% * ((.6)9) * (1 - (.6(6-p))) / (12 - r), where r is the number of realms the weapon already has and p is the number of points used for those initial realms. For a sentient weapon with 3 low realms already, that's about 1 in 1400.

The chance of getting a 7 point realm is approximately 100% * ((.6)6) * (1 - (.6(9-p))) * (3/(12-r)). That's about 1 in 70 for r=3, p=4.

Realms

Fire Realm

Cold Realm

Lightning Realm

Poison Realm

Acid Realm

Air Realm

Earth Realm

Mind Realm

Shield Realm

Chaos Realm

Magic Realm

Antimagic Realm

Statistics

Some /Statistics about how many, and which, points and realms are gained.

Chatter

FeathinSilyar: First off, credit to Lord Dimwit for posting the realms code, and Ornedan for posting power gaining code, both in this thread.

Whoever knows exactly what those last three flags in Antimagic Realm are, please go ahead and translate them.

ElIott: Wow. I don't think I've ever even seen a weapon get any of the Realms above Earth, though the fact that the weapon's Realm's don't show up in the dump doesn't help. Having a weapon get Precognition would be, umm... useful.

The discussion thread about the levelling of sentient weapons seem like a nice idea - oh and - it is really possible to find Garachoth? It has the SPECIAL_GENE flag and i've never seen it in any special level or guardian (unless it appear in the Void, where i never dared to try)

RedNaga: just on a chatter basis, but which good would ever come to a weapon from the 'unaffected by cold/electricity' flags? AFAIK no weapon is even checked for destruction by those two damage types.

Limpy: are you sure that you get (+2,+1) when the weapon level's up? im currently using Narthanc and it just got (+1,+1), dunno if its with the counter or without though.

Eric Xanthus: I've posted this in the forum spoilers and oook, but it bears mentioning here too. I got Antimagic realm on Mormegil today (7-22-05).

MCK (09-01-05): Don't know if it's worth asking here, but I've noticed that both Air and Antimagic realms give access to "add to speed" powers. If the RNG blesses you and grants you this power from both realms, is it cumulative? For that matter, is it even possible to get both of them?

ScrawnyCat: Not cumulative. It's the same power, only in multiple realms. You can't get it more than once. I'd be more happy to get extra blows twice if it was possible, by the way (from antimagic and earth).

KhymChanur: From looking at the C code, it seems that

isn't quite right, because all sentient items start off with a pval of 1. From object_prep() in object2.c:

        /* Hack give a basic exp/exp level to an object that needs it */
        if (k_ptr->flags4 & TR4_LEVELS)
        {
                o_ptr->elevel = (k_ptr->level / 10) + 1;
                o_ptr->exp = player_exp[o_ptr->elevel - 1];
                o_ptr->pval2 = 1;        /* Start with one point */
                o_ptr->pval3 = 0;        /* No flags groups */
        }

DanielFishman: Is there something that says certain artifacts can't get certain realms? Because my Nimthanc (cold 'thanc) has Fire, Acid, Lightning, Poison and Earth realms, but not Cold, which would be an unlikely coincidence.

AnonymousHero: No.

Sirrocco: I'm a tch confused. Why are the "weapon unharmed by foo" flags there? Aren't they all artifacts? Aren't they all immune to such things anyway?

AnonymousHero: Some modules have non-artifact sentient weapons...

Spoilers/Sentient Weapons (last edited 2007-12-13 19:47:08 by UserPageKernigh)