Damage modifier

Started by egm, January 12, 2005, 10:11:38 PM

Previous topic - Next topic

egm

Hello all,

What I want to make is quite simple: I want to create an armor that gives resistance to damages (slashing for my example). But instead of a % value, i would like a row number: the amount of damage dealt is reduced by this number.

Is there a way to do that in BGII?

Awake

Shoot me for being lazy, but I only think that this is what you are looking for. I didn't look too hard at it(I'm doing some homework right now), but I tried nonetheless and this looks good enough to me.

I found this in the ever faithful IESDP.

Quote
#86 (0x56) Stat: Slashing Resistance Modifier [86]    Parameter #1: Statistic Modifier
    Parameter #2: Type
    Description:
    Applies the modifier value specified by the 'Statistic Modifier'
    field in the style specified by the 'Type' field.
   
    Known values for 'Type' are:
    0   Cumulative Modifier -> Damage = Damage + 'Statistic Modifier'
    value
    1   Flat Value Modifier -> Damage = 'Statistic Modifier' value
    2   Percentage Modifier -> Damage = (Damage * 'Statistic Modifier'
    value) / 100
And can we finally say that the bhaal spawn idea has had the final nail hammered in its coffin?


Member of the World Transition Project

And the raven, never flitting, still is sitting, still is sitting
On the pallid bust of Pallas just above my chamber door;
And his eyes have all the seeming of a demon's that is dreaming,
And the lamp-light o'er him streaming throws his shadow on the floor;
And my soul from out that shadow that lies floating on the floor
Shall be lifted - nevermore!


Like dealing with terrorists by giving them explosives

egm

I just test it, and the value is a % one, whatever the type. Type 3 is the increase of the current resistance of the characters.

When I set the statistic modifier to 10 and the ype to 0, it decreases the damage taken by 10%. What I want them t do is decreasing damages by 10 points

Awake

Hmmm.... in that case, I don't know what to say since what you want it to do is supposedly what the effect does...
And can we finally say that the bhaal spawn idea has had the final nail hammered in its coffin?


Member of the World Transition Project

And the raven, never flitting, still is sitting, still is sitting
On the pallid bust of Pallas just above my chamber door;
And his eyes have all the seeming of a demon's that is dreaming,
And the lamp-light o'er him streaming throws his shadow on the floor;
And my soul from out that shadow that lies floating on the floor
Shall be lifted - nevermore!


Like dealing with terrorists by giving them explosives

Galactygon

I'm sorry, but it's hardcoded in all IE except IWDII. In IWDII, however, that's the only type of resistance you can set.

-Galactygon

egm


Rabain

I guess the reason for this is that if you where damaged by 6 points then the armour would reduce this by 10 and heal you 4 points....is that what you were aiming for?  Much the same way as if you had a resistance over 100.

It probably sounded silly to the developers to have a negative damage amount.

I am just assuming this is the reason for its absence of course!

egm

Quoteis that what you were aiming for?

No. Resistances much like the IWDII ones, or just a way to simulate them.

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name:
Email:
Shortcuts: ALT+S post or ALT+P preview