egocarib / EnchantingAwakened

Enchantment Overhaul Mod for Skyrim
5 stars 2 forks source link

Tracking Weapon Enchant Learning #2

Open egocarib opened 10 years ago

egocarib commented 10 years ago

Need to develop an internal method of tracking weapon enchantment learning, so that I can more easily track when the player hits other actors with an enchantment without the kind of massive script overhead this would introduce using papyrus methods.

The internal TESHitEvent essentially lets me have an "OnHitAnotherActor" event which I can use for this purpose.

egocarib commented 10 years ago

So I got extremely sidetracked following up on this. I realized that there was a central problem with player-crafted enchanted items -- it was impossible to know what base enchantments had been combined to make them, and as such, it would be impossible to appropriately award learning experience when players were using custom enchanted weapons (since I wouldn't know what base enchantments to improve).

I ended up building an entirely new framework for tracking and recording enchantments crafted by the player, and I hooked into the CreateEnchantment method to figure out exactly what base enchantments were used to create them. I built this framework up from the old Enchant Reload Fix repository, which hardly resembles its old version anymore, and is far better designed than it used to be. This will serve as a new foundational plugin for Enchanting Awakened, and the weapon learning system.