User blog:Rasael/Scribable Scrolls, Craftable Potions & Wands

We have a new script setup to deal with this, previously it required editing up to five different 2da files to make new spells or casterlevel variations craftable.

Here are the details from the tutorial I wrote,

The updated system only relies on "iprp_spells.2da". In this 2da there are three categories: "general, potion and wand" which tell the system whether that Item spell ID entry is for scrolls and/or potions and/or wands.

When adding new entries be very carefull!

There is an ingame balance in terms of craftable consumables which means that for defensive spells we will likely not want to have them available at casterlevels 15 and up. The same may apply to other spells - when in doubt contact the DM Team and Staff. (warning by Molag Bal)

How does it work? When the module starts all entries in iprp_spells.2da are stored in local variable strings per Spell ID. When a player then wants to craft an item with a spell of that spell ID the system will go to that variable entry and see which casterlevels are available.

It will then pick the one closest to the player's casterlevel, prefering an entry that is equal to or lower than it. If there is no such entry then the highest one will be used. (which logically is the only available one then)

The crafting cost and mechant costs are not affected, they continue to use the correct casterlevel data. Even for new entries.