Contents
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
The Slaughter Axe 'Garachoth', not available in current version
The Glaive of Pain
The Dagger 'Dethanc'
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.
- Add (+2,+1) or (+1,+1) (equal chance)
Add (+1,+0) and 1 point to an invisible counter, and with a 40% chance consider gaining a new realm
Set the pval to +1, if it is zero, or possibly (12-18% chance) gain one pval up to an absolute max of +5, and consider gaining a new power (but first gain a new realm only if you don't have any at all yet)
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
- Cost: 1
- Add to Light
- Slay Undead Brand
- Fire Brand
- Resist Fire
- Fire Aura
- Weapon undamaged by fire
Cold Realm
- Cost: 1
- Cold Brand
- Slay Dragon Brand
- Slay Demon Brand
- Resist Cold
- Invisibility
- Slow Digestion
- Weapon undamaged by cold
Lightning Realm
- Cost: 1
- Electricity Brand
- Slay Evil Brand
- Resist Electricity
- Electric Aura
- Random Teleportation
- Weapon undamaged by electricity
Poison Realm
- Cost: 2
- Add to Charisma
- Sustain Charisma
- Poison Brand
- Vampiric Brand
- Slay Animal Brand
- Resist Poison
- Drain Experience
- Sense Trolls
- Sense Giants
Acid Realm
- Cost: 3
- Add to Tunnelling
- Acid Brand
- Slay Animal Brand
- Earthquake Brand
- Resist Acid
- Weapon undamaged by acid
Air Realm
- Cost: 5
- Add to Wisdom
- Add to Stealth
- Add to Infravision
- Add to Speed
- Sustain Wisdom
- Resist Light
- Resist Dark
- Resist Blindness
- Levitation
- See Invisible
- Blessed
- Sense Good
Earth Realm
- Cost: 5
- Add to Strength
- Add to Constitution
- Add to Tunnelling
- Add to Blows
- Sustain Strength
- Sustain Constitution
- Slay Troll Brand
- Slay Giant Brand
- Earthquake Brand
- Resist Fear
- Resist Shards
- Free Action
- Regeneration
- Sense Trolls
- Sense Giants
Mind Realm
- Cost: 7
- Add to Intelligence
- Add to Searching
- Sustain Intelligence
- Resist Confusion
- Resist Fear
- Sense Orcs
- Sense Trolls
- Sense Giants
- Sense Animals
- Sense Uniques
- Sense Spiders
- Sense Demons
Shield Realm
- Cost: 7
- Add to Dexterity
- Sustain Dexterity
- Resist Sound
- Resist Nexus
- Invisibility
- Reflection
- Hold Life
- Regeneration
Chaos Realm
- Cost: 7
- Chaotic Brand
- Earthquake Brand
- Resist Chaos
- Resist Disenchantment
- Regeneration
- Telepathy
Magic Realm
- Cost: 10
- Add to Mana
- Add to Spellpower
- Cloning Brand
- Resist Chaos
- Resist Disenchantment
- Wraithform
- Precognition
- Flight
Antimagic Realm
- Cost: 10
- Add to Blows
- Add to Speed
- Add to Life
- Vampiric Brand
- Chaos Brand
- Reflection
- Free Action
- Hold Life
- No Teleportation
- See Invisible
- Anti-magic shell, as per Amulet of Anti-magic
- Antimagic field, similar to a Dark Sword's, but with maximum strength 10% at Antimagic skill level 50 (compare with 50% for normal Dark Sword). Cumulative with Dark Sword's antimagic field, and with the following power.
- Antimagic field with maximum strength 20%, as per above. Cumulative with Dark Sword's antimagic field, and with the preceding power.
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.
ZizzoTheInfinite: Is the above suitable?
FeathinSilyar: Yup, thanks Zizzo. The experience gaining is not based on code but observation. If it can better be represented by something different, go ahead.
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.
FeathinSilyar: I got the Mind realm recently, on one of the three daggers. But yeah, the higher realms are incredibly rare, and quite possibly not even possible due to the way the coding works. There were comments about that in the forum thread mentioned above that I got the coding from for this spoiler. I think we should make a subpage of this one for "bragging" about sentient weapons developped, so people can see just what sentient weapons tend to turn out like. I think earthquakes is over-feared, as I've levelled quite a few sentient weapons very high without getting that brand.
RedNaga: i've only seen the Chaos realm once (and it was on Mormegil...), and none of the other higher, but as far as earthquake goes... i've once found all three 'thanc and Mormegil with a single character, and *all four got the earthquake flag before level 30!!*
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)
FeathinSilyar: So score another level 7 realm. Apparently likelihoods of a weapon getting a higher realm isn't supposed to be influenced by which weapon it is, so Mormegil isn't any more likely to gain the higher realms than the daggers.
Garachoth is in italics there to denote that it is not in the current ToME, but will appear in 3.0. As per the main artifacts page anyway. So yeah, I think it is impossible to currently get.BadPazzword: Cleared Garachoth out in the main article.
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.
FeathinSilyar: Yeah, I'm actually sure that it varies more than stated there. Just hadn't gotten around to changing it. That's done now.
Actius: I peeked at the source, and there's only three basic possibilities (roughly even chances of each): The first possibility is as described above (+1,+1 or +2,+1). The second possibility is mostly right (+1,+0, gain a point towards buying a flag group) -- and it's only for in possibility that the weapon gains a realm. But the third possibility is totally described wrong: here the weapon gains pval (up to a limit of +5) and gains a power from a realm (if it doesn't already have a realm, it gets one). In other words, the chances of these things aren't independent.
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).
MCK: Good point. Thanks ScrawnyCat!
KhymChanur: From looking at the C code, it seems that
Set the pval to +1, if it is zero, or possibly (12-18% chance) gain one pval up to an absolute max of +5, and consider gaining a new power (but first gain a new realm only if you don't have any at all yet)
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...
ToME Wiki