Code: Select all
newEntity{ base="BASE_NPC_CRYSTAL", define_as = "SPELLBLAZE_GOLEM",
allow_infinite_dungeon = true,
unique = true,
name = "Spellblaze Golem", display = "g",
color=colors.VIOLET,
desc = [[A formation of purple crystal, but where the others could only be described as polyhedral, this construct seems to strangely resemble... you, if you were several orders of magnitude larger.]],
killer_message = "and vaporised into nothingness",
level_range = {35, nil}, exp_worth = 3,
max_life = 300, life_rating = 9, fixed_rating = true,
mana_regen = 10,
stats = { str=15, dex=15, cun=20, mag=35, con=15 },
rank = 4,
size_category = 5,
infravision = 10,
see_invisible = 10,
blind_immune = 1,
instakill_immune = 1,
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1 },
resolvers.drops{chance=100, nb=1, {defined="GOLEM_HEART", random_art_replace={chance=75}} },
resolvers.drops{chance=100, nb=3, {tome_drops="boss"} },
resolvers.talents{
[Talents.T_ARCANE_POWER]=5,
[Talents.T_FLAME]={base=3, every=7, max=5},
[Talents.T_ICE_SHARDS]={base=3, every=7, max=5},
[Talents.T_SOUL_ROT]={base=3, every=7, max=5},
[Talents.T_MANATHRUST]={base=3, every=7, max=5},
[Talents.T_LIGHTNING]={base=3, every=7, max=5},
[Talents.T_ICE_STORM]={base=3, every=7, max=5},
},
resolvers.sustains_at_birth(),
resolvers.inscriptions(4, {}),
autolevel = "caster",
ai = "tactical", ai_state = { talent_in=1, ai_move="move_astar", },
ai_tactic = resolvers.tactic"ranged",
}
Code: Select all
newEntity{ base = "BASE_GEM", define_as = "GOLEM_HEART",
power_source = {arcane=true},
unique = true,
unided_name = "coruscating crystal",
name = "Heart of the Golem", subtype = "multi-hued",
color = colors.RED, image="object/ruby.png",
level_range = {35, 45},
desc = [[This crystal is huge, easily the size of your head. It sparkles brilliantly almost of its own accord.]],
rarity = 200,
cost = 200,
material_level = 5,
max_power = 1, power_regen = 1,
use_power = { name = "combine with suit armor", power = 1, use = function(self, who, gem_inven, gem_item)
-- Body armour only, can be cloth, light, heavy, or massive though. No clue if o.slot works for this.
who:showInventory("Fuse with which armor?", who:getInven("INVEN"), function(o) return o.type == "armor" and o.slot = "BODY" and not o.egoed and not o.unique end, function(o, item)
local oldname = o:getName{do_color=true}
-- Remove the gem
who:removeObject(gem_inven, gem_item)
who:sortInven(gem_inven)
-- Change the weapon... err, armour. No, I'm not copy/pasting here, honest!
o.name = "Crystalline "..o.name:capitalize()
o.unique = o.name
o.no_unique_lore = true
-- No clue if an if statement is needed for armours, so commenting this thingy out.
--if o.combat and o.combat.dam then
-- o.combat.dam = o.combat.dam * 1.25
-- o.combat.damtype = engine.DamageType.ARCANE
--end
o.wielder = o.wielder or {}
-- This is supposed to add 1 def for crap cloth robes if for some reason you choose it instead of better robes, and then multiply by 1.25.
o.wielder.combat_def = (o.wielder.combat_def + 1) * 1.25
-- Same for armour. Yay crap cloth!
o.wielder.combat_armor = (o.wielder.combat_armor + 1) * 1.25
o.wielder.combat_spellresist = 12
o.wielder.combat_physicalresist = 12
o.wielder.inc_stats = o.wielder.inc_stats or {}
o.wielder.inc_stats[engine.interface.ActorStats.STAT_MAG] = 5
o.wielder.inc_stats[engine.interface.ActorStats.STAT_CON] = 2
o.wielder.inc_stats[engine.interface.ActorStats.STAT_LCK] = 5
-- Did I get resists right?
o.wielder.resists = o.wielder.resists or {}
o.wielder.resists = { [DamageType.ARCANE] = 20, [DamageType.PHYSICAL] = 10 },
who:sortInven()
who.changed = true
game.logPlayer(who, "You fix the crystal on the %s and create the %s.", oldname, o:getName{do_color=true})
return true
end)
end },
}
I had originally planned to have the crystalline armour use the pairing mechanism star and moon use, but I've no idea how to get it to work with crystalline weapon/armour combinations. When paired, the weapon would get arcane resistance penetration, and maybe a critical damage multiplier. Between the two of them, they'd have +5 to everything like how the eldritch pearl has +6 to everything. The weapon would get an arcane talent mastery boost, the armor would get arcane armor talent mastery boost. You'd get some stun and blindness resistance, but -12 mental saves, and -10% confusion resistance - with as much of the crystal as you have imbued your items with, some of the original intelligence is starting to form, and while for the purposes of the game at the time your goals are the same, there isn't a guarantee the two of you'd do the same thing to get that task done, and the humming isn't helping things either. (pairing message would be "As the crystalline weapon and armour are brought together, they begin to emit a constant humming.")10th Mirth, Year 122 of the Age of Ascendancy
The council has seen fit to allow me to investigate the scintillating caverns after that Rhaloren madman started raving on the streets about how someone had "befouled" them... I do not see any such befoulment, but neither do I see the moving crystals this place was rumoured to have. There are oddly misplaced crystal shards, which seem to have sheared off of something larger, but hardly anything spectacular.
2nd Summertide, Year 122 of the Age of Ascendancy
It's strange, really.. from the fragments I've been able to find, they seem to adhere to the ethereal geometry of magics - the red fragments seem to be pieces of fire magic from their geometry; the blue adheres to water, etc... there also seem to be pieces of deformed crystal, as though some terrible power warped whatever colour some of these crystals used to be into something they were never intended to be - is this the "befoulment" the madman raved about?
3rd Summertide, Year 122 of the Age of Ascendancy
Well... that was certainly unexpected. There may be some truth to the rumours that these crystals can move about, or at least that they have some will of their own - I was just about to finish my investigation of the caves, when in the very last part of the cave I hadn't yet explored, I saw what appeared to be two giant... legs, growing from the cavern. I was immediately overcome by feelings of fear and malice, and not my own - that crystal sent them to me, that I was unwelcome here, that it was not yet finished. I dare not tell the council of my cowardice, so I shall... invent a more fitting report in a much safer place. If some wayward adventurer finds these notes, it is my surmise that whomever destroyed the original crystals left such a strong impression of strength and will that the rudimentary intelligence governing them decided the form of its destroyer was stronger than the original, crystalline shapes.