Hey, Im considering adding additional material components into default NWN crafting. By default there is only one material component used only for scribing. (With an issue that script destroy full stack instead of 1piece - which brought me there)
So I was thinking, that it would be good feature to allow material component, possible multiple and with specified ammount of stacksize to be used for brewing for example.
Example: Im builder and I want to enhance brewing potions. I will want to use new feature from CPatch that allows me to speficy custom potion resref instead of default potion. However I want to make it harder so I will set up each spell to require one to three herbs of different stacksize.
something like
barkskin (custom potion +5) - belladona 2x
invisibile (custom potion of ii) - belladona 1x + pixie dust 1x
etc.
now, questions are:
1. allow unlimited number of material components?
- script can do it, 2DA doesnt have to contain all collumns, builder can add new collum when needed, there is probably no disadvantage
2. How to allow specify stacksize?
- new collumn or encode it into resref like "resref|2"
3. How to name the collumns?
- for backwards compatibility the collumn comp_tag used for (first) material component for scribing must stay the same
4. reuse current 2DA or create new one?
- I guess that reusing is better option from 2DA caching reasons
opinions? advices? suggestions?
EDIT: im talking about 2DA des_matcomp which looks like this by default:
2DA V2.0
Label InnateLvl comp_tag
0 Acid_Fog 6 ****
136 Harm 6 NW_IT_MSMLMISC17
Modifié par ShaDoOoW, 17 février 2012 - 02:32 .