The strength part in Core_h looks like this:
if (nAttribute == PROPERTY_ATTRIBUTE_STRENGTH &&
HasAbility(oCreature, ABILITY_TALENT_LETHALITY) )
{
if (GetAttributeModifier(oCreature,
nAttribute) < GetAttributeModifier(oCreature, PROPERTY_ATTRIBUTE_INTELLIGENCE))
{
nAttribute = PROPERTY_ATTRIBUTE_INTELLIGENCE;
}
}
The Attack modifier is also set in core_h:
float GetCreatureAttackRating(object oCreature)
{
return GetCreatureProperty(oCreature, PROPERTY_ATTRIBUTE_ATTACK);
}
It would be very easy to modify this. However, the Core_h header file is included in like every script in this game which makes me hesitant to modifying this header.
How would I go about tackling this problem? Changing the header and recompiling all scripts and placing them in the override directory hardly seems like an option.
The function GetCreatureAttackRating is only called in combat_h in the function Combat_GetAttackResult, which in turn is called in 5 or 6 (as far as I've found) scripts like *_single_target and other scripts that include player/creature attacks.
Would I have to modify core_h, export all the script(s) that calls the GetCreatureAttackRating function and leave it at that? Or is there a more elegant way to do this?
Modifié par Joshua Raven, 03 décembre 2009 - 10:33 .





Retour en haut






