Page 1 of 1

How do I set AR mods for the different ores?

PostPosted: Mon Oct 28, 2002 5:23 am
by nemirios
i noticed in the WOD scripts, that regardless of what type of ingot is used, the AR of teh armor is the same. How do I change it so that the harder to get ores give better AR?
In normal POL i can do it, but not with these scripts. They are very different scripts it seems.

hmm

PostPosted: Tue Oct 29, 2002 5:03 pm
by nemirios
I guess noone knows how :( ah well, i figured it out on POL, i'll figure it out on this one

PostPosted: Wed Oct 30, 2002 5:25 am
by Tel'Imoen
Um... this is POL. Scripting is the same, just some scripts are different, the way you did it previously might actually work on WoD scripts.

PostPosted: Fri Nov 08, 2002 9:10 am
by ThE_GuN
Should work with WoD scripts too... *looking*

PostPosted: Fri Nov 08, 2002 9:28 am
by ThE_GuN
edit blacksmity.cfg

PostPosted: Mon Jan 06, 2003 6:36 am
by Kardall
What I did, is figure out what kind of Ore was used to make the item, and read a config file which lists ar mods and dmg mods, that the ore will give when crafted into armor or weapon.

Go in the make_blacksmithy_items.src file in pol\pkg\skills\craftingskills\blacksmithy

look for the following code:

Code: Select all
//set the color
if (material.color)
  created_item.color := material.color;
endif


after that, and before the SubtractAmount(..... line, put the following:

Code: Select all
var bscfg := readconfigfile("ore");
var bselem := bscfg[material.objtype];
var armod := bselem.armod;
var dmgmod := bselem.dmgmod;

if(created_item.isa(POLCLASS_ARMOR))
  created_item.ar_mod := cint(armod);
elseif(created_item.isa(POLCLASS_WEAPON))
  created_item.dmg_mod := cint(dmgmod);
endif


Your cfg file should look like this (approx.):

Code: Select all
ore 0x6011 //iron ingot
{
armod 2
dmgmod 2
}
ore 0x6012 // bronze ingot
{
armod 3
dmgmod 3
}
...
...
...


format:

ore <ore objtype for that ore>
{
armod <value>
dmgmod <value>
}

and repeat for all. save as ore.cfg in the blacksmithy folder, and you'll be set.... adjust as needed...