Basically this script just grabs equipment.txt and modifiers.txt and mashes them together in a map to form a map... It doesn't actually do anything in terms of your KoL character but I suppose some people might find the data they can get from it useful for some other purpose. (Yeah I know some of these things are already handled in some ASH functions)
It maps these values:
I'll leave you to decipher what they are, (If your using this chances are you know should know enough about whats stored in the datafiles to figure out what value goes with what)
Oh and it creates 3 maps's and saves them as "TempEquipMap.txt" (which is a equipment.txt in a map), "TempModsMap.txt" (a map of modifiers.txt) and then "EquipmentDataMap.txt" which is the map which is the point of the script.
Script was made in a few hours so most likely buggy and possibly some weird formatting in the datafiles which I haven't adapted the script to use.
Edit: I added a "Commented" version of the script now. I just wrote the comments in a few minutes so bear with the spelling errors but it should help you understand what section of the code does what.
It maps these values:
Code:
Record EquipmentDataRec
{
int Power;
stat EquipStat;
int MinEquipNum;
int Handedness;
float InitMod;
float MeatMod;
float ItemMod;
float StatMod;
int DamAsbMod;
int DamResMod;
int ColdResMod;
int HotResMod;
int SleazeResMod;
int SpookyResMod;
int StenchResMod;
int ManaRedMod;
int FamWeightMod;
int MonLevelMod;
int CombatFreqMod;
};
Oh and it creates 3 maps's and saves them as "TempEquipMap.txt" (which is a equipment.txt in a map), "TempModsMap.txt" (a map of modifiers.txt) and then "EquipmentDataMap.txt" which is the map which is the point of the script.
Script was made in a few hours so most likely buggy and possibly some weird formatting in the datafiles which I haven't adapted the script to use.
Edit: I added a "Commented" version of the script now. I just wrote the comments in a few minutes so bear with the spelling errors but it should help you understand what section of the code does what.