07-10-2016, 08:30 AM
It depends of a few things. If your weapon upgrades are done in the same way as the paladin shield (weapon X become weapon Y at the end of battle) then it's easy too add a specific lore learning when the weapon is upgraded on a certain character.
If all weapons are found in chests or obtained as loots, then you need too hook up custom code in the equip routine that will set the lore(s) learned for the character (for de-equip also if you plan to unlearn spells when weapon is removed).
An event command is not really suitable for this since it involve an event (opening a chest is done through ASM). If you have a special event where an NPC gives you a weapon, you could also call right away a custom command that teach lore X.
Unless I'm mistaken, only Strago has a lore SRAM block, you'd need to reorganize some SRAM to allow more lore learning characters and tweak the code that calls the lore menu entries for your characters.
It's not insanely difficult and I'd consider this a good first ASM project for someone who never coded
If all weapons are found in chests or obtained as loots, then you need too hook up custom code in the equip routine that will set the lore(s) learned for the character (for de-equip also if you plan to unlearn spells when weapon is removed).
An event command is not really suitable for this since it involve an event (opening a chest is done through ASM). If you have a special event where an NPC gives you a weapon, you could also call right away a custom command that teach lore X.
Unless I'm mistaken, only Strago has a lore SRAM block, you'd need to reorganize some SRAM to allow more lore learning characters and tweak the code that calls the lore menu entries for your characters.
It's not insanely difficult and I'd consider this a good first ASM project for someone who never coded