Hey, I have a good idea for a mod, and I am having a hard time figuring out how to do it. Basically, you activate a buff that multiplies the XP given at the cost of a damage taken multiplier, chance to block/dodge/counter debuff, and the ability has a cooldown as well. I have looked at the DredMod Wiki, and there doesn't seem to be any clear way to implement this.
I have only just begun modding for Dredmor a few days ago, but this is a possible solution that comes to mind with my limited knowledge: - In the skillDB description of the Skill that gives the buff, which we'll call "XP Multiplier Buff", add a trigger on Monster kill that casts a spell, we'll call it "XP Boost!". - In the spellDB description of "XP Boost!", add an effect that calls a spell, we'll call this one "XP Add", but add to this effect the requirebuffontrigger="1" attribute, and the requirebuffontriggername="XP Multiplier Buff" attribute, so that it requires the buff to be active for the spell "XP Add" to go through. - Then just add a description for the "XP Add" spell in the spellDB xml that adds XP, and that should work.
There is no function for multiplicative XP or damage at the moment. There is a function which ADDITIVELY grants xp, and you can give armour or resistance penalties, which will do the same for increasing incoming damage, but there is no multiplicative factor for these.
Ah, I suspected there was no multiplier variable available. Oh well. Also, lccorp2, is that Miles Edgeworth's suit from the Ace Attorney series in your avatar?