The Cathedral of Attnam ()
-   Programming (/forums/13/Programming)
-   -   Chain whips (/topics/666/Chain_whips)

Iankill

Jul 20, 2009, 10:16 pm
I was thinking about adding chain whips to the game and I found two ways of doing it and would like to know which one you guys would find easier.
First would be adding a Chain material like iron chain, steel chain, mithril chain ect. in the material file and just use the normal whip class but adding a few more materials.
Or making a special whip item that has the flexibility multiplier changed by a lot so metal will actually work with them besides them just being impossible to use sticks of metal. also eventually adding flaming chain whips.

4zb4

Jul 20, 2009, 10:32 pm
Why don\'t you make a chain, which has metal under it\'s possible materials and give it the whip class?

Comrade

Jul 21, 2009, 4:35 am
I don\'t understand, are you going to create this \"chain whip\" and then upload it to the site and we just download and unzip?

4zb4

Jul 21, 2009, 4:45 am
I believe you are looking for something like this?

Quote


chain /* meleeweapon-> */
{
DefaultSize = 230;
Possibility = 20;
WeaponCategory = WHIPS;
DefaultMainVolume = 500;
DefaultSecondaryVolume = 20;
StrengthModifier = 15;
BitmapPos = 120, 0;
NameSingular = \"chain\";
MainMaterialConfig = { 4, BRONZE; IRON, STEEL, METEORIC_STEEL; }
SecondaryMaterialConfig == STEEL;
MaterialConfigChances = { 4, 75, 50, 25, 10; }
Roundness = 3;
CanBeBroken = false;
AttachedGod = NEFAS;
WieldedBitmapPos = 200, 224;
EnchantmentPlusChance = 30;
DamageFlags = SLASH;
}

Iankill

Jul 21, 2009, 12:01 pm
Well i figured it out its just a config under the main whip with its default size volume and form modifier because with the original volume you needed close to 200 strength to use them and they did 12-17 damage.
Quote


whip /* meleeweapon-> */
{
DefaultSize = 210;
Possibility = 50;
WeaponCategory = WHIPS;
DefaultMainVolume = 500;
DefaultSecondaryVolume = 20;
StrengthModifier = 10;
BitmapPos = 32, 0;
NameSingular = \"whip\";
MainMaterialConfig = { 4, LEATHER, HARDENED_LEATHER, NYMPH_HAIR, OMMEL_HAIR; }
SecondaryMaterialConfig == EBONY_WOOD;
MaterialConfigChances = { 4, 75, 50, 25, 10; }
Roundness = 2;
FormModifier = 10; /* this is multiplied by MainMaterial\'s flexibility */
CanBeBroken = false;
AttachedGod = NEFAS;
WieldedBitmapPos = 160, 224;
EnchantmentPlusChance = 30;
FlexibilityIsEssential = true;
DamageFlags = SLASH;

Config RUNED_WHIP;
{
DefaultSize = 230;
Possibility = 25;
DefaultMainVolume = 750;
DefaultSecondaryVolume = 50;
StrengthModifier = 20;
Adjective = \"runed\";
FormModifier = 20;
EnchantmentPlusChance = 20;
}
Config CHAIN_WHIP;
{
DefaultSize = 150;
Possibility = 25;
DefaultMainVolume = 200;
DefaultSecondaryVolume = 50;
StrengthModifier = 20;
MainMaterialConfig = { 4,BRONZE, IRON, STEEL, METEORIC_STEEL; }
MaterialConfigChances = { 4, 75, 50, 25, 10; }
Adjective = \"chain\";
FormModifier = 200;
EnchantmentPlusChance = 20;
}
}

4zb4

Jul 21, 2009, 10:27 pm
Can you start putting code in quotes?
And oops, forgive me for not testing it. I can\'t save .dat files for some reason on my PC. An issue yet to be solved.