Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Sorcerer kits - custom spellbook

AionZAionZ Member Posts: 3,034
I've been experimenting with a sorcerer that can't gain regular spells and gains custom spells naturally per level. To prevent the sorcerer from getting normal spells, I created an effect that applies every level and removes all vanilla mage spells from the caster's spellbook after a delay of 2 seconds (without the delay it doesn't work). So the way it works now is that you *can* select spells but they're gone as soon as you finish levelling up.

Does anyone know of a less messy way of implementing this? Sorcerer spell selection seems to be hard coded.

Comments

  • subtledoctorsubtledoctor Member Posts: 11,466
    Take a look at the Tome and Blood mod. They short-circuit the normal selection process and instead grant spells by a dialog. That lets them (iirc) have different spell sets for different kits.

    Maybe you could just make a kit that fits their system and just REQUIRE_PREDICATE that TnB already be installed. Or maybe you could just convince those guys to include your kit in TnB.

    Grammarsalad
  • GrammarsaladGrammarsalad Member Posts: 2,510
    I can't give you permission to use the code, as this is @Aquadrizzt 's baby. It is less messy in that players aren't selecting spells that are subsequently erased. On the other hand, you will have to recreate spell selection for sorcerers that do not have your kit, so it goes a bit farther than a simple kit mod.

    You could give the choice to the player. Create the kit your original way, but, if the player has the TnB component installed, use a spell selection dialog.

  • AquadrizztAquadrizzt Member Posts: 958
    @Artemius_I , if you would be interested in having a completely custom spell list, I can help with some code for a spell selection dialog. All you have to do is feed it an associative array with spell codes and levels and it will do the rest. Let me know.

Sign In or Register to comment.