It's been discussed a lot on and off around the PRC, I know. Well, after a long talk with fluffyamoeba and dsabrae last night, I'm happy to say there is actually a system for material components in the PRC. It's 2da based, and will ship in 3.3G. Right now, we're letting dsabrae's PW test the system and fill out the 2da and create the items, and then we'll turn it round and ship it out to everyone. It's very simple to tweak, just editing values in a 2da and no need to alter the scripting at all.
Surprisingly, coding it only took about an hour, although I had figured it would be a lot more difficult to create. Just had to have the right idea about how to do it, I guess.
Below is the comment above the switch.
/** Material Components
* Set switch to 1 to activate this
* This allows material components in NWN through the materialcomp.2da
* Just put the SpellID and UTC resref in, MINUS the .utc on the end.
* This also requires the names of the items, formatted like so ("" included): "Object Name"
*
* Set switch to 2 to activate this
* Deducts gold instead of requiring material components
* Put the gold value in the Cost column
* Set switch to 3 to activate both at the same time
* WARNING: This will slow spellcasting down due to 2da reads and inventory loops
*/
const string PRC_MATERIAL_COMPONENTS = "PRC_MATERIAL_COMPONENTS";