Changing how some mage spells calculate...
#1
Posté 09 juillet 2010 - 09:56
For example, the spell Rock Armor calculates it's bonus based on Spellpower/4.0, but I want to try something like Cunning-10/4.0 in a modified form of the ability...is this done through the ABI_base.gda, or is this more of a script thing added via the toolset? How do I go about this?
#2
Posté 10 juillet 2010 - 01:37
case ABILITY_ITEM_LESSER_HEALTH_POULTICE:
{
float fHeal = (HEALTH_SALVE_BASE + GetCreatureSpellPower(stEvent.oCaster)) * LESSER_HEALTH_SALVE_FACTOR;
eEffect = EffectHeal(fHeal);
ApplyEffectOnObject(EFFECT_DURATION_TYPE_INSTANT, eEffect, stEvent.oTarget, 0.0f, stEvent.oCaster, stEvent.nAbility);
break;
}
This is also how the Item Property +% healing received works, and why that appears to be bugged to those that feel it should work differently than how Bioware designed it.
#3
Posté 10 juillet 2010 - 01:57
ladydesire wrote...
The following is a case statement from the item_singletarget.nss script that handles the Lesser Health Poultice. As you can see, it indicates that the effectiveness of the health poultice is affected by Spellpower, which is governed by the Magic Stat.
case ABILITY_ITEM_LESSER_HEALTH_POULTICE:
{
float fHeal = (HEALTH_SALVE_BASE + GetCreatureSpellPower(stEvent.oCaster)) * LESSER_HEALTH_SALVE_FACTOR;
eEffect = EffectHeal(fHeal);
ApplyEffectOnObject(EFFECT_DURATION_TYPE_INSTANT, eEffect, stEvent.oTarget, 0.0f, stEvent.oCaster, stEvent.nAbility);
break;
}
This is also how the Item Property +% healing received works, and why that appears to be bugged to those that feel it should work differently than how Bioware designed it.
Alright, you'll have to forgive me, because I am like a toddler still learning to walk here, but if I take your meaning correctly, this is going to be an issue, where much like the heal spell from this link:
http://social.biowar..._Spell_Tutorial
I'll need a custom script, or copy and alter the script for the original spell. How do I open an .nss file in the toolset so I can view the scripts for spells/talents/skills? And, for using something like Cunning-10 instead of Spellpower, any idea on how that would be worded in something like this (from the bit above): GetCreatureSpellPower
#4
Posté 10 juillet 2010 - 01:52
GetCreatureSpellPower
What is the wording needed to put in place of "SpellPower" to get it to calculate based off of an attribute -10? (IE - Strength-10, Cunning-10, Willpower-10, etc, etc)
#5
Posté 11 juillet 2010 - 01:14
#6
Posté 11 juillet 2010 - 10:13
GetCreatureProperty(oCreature,PROPERTY_ATTRIBUTE_CUNNING,PROPERTY_VALUE_TOTAL) - 10
#7
Posté 11 juillet 2010 - 03:19
#8
Posté 11 juillet 2010 - 09:15
GetAttributeModifier(stEvent.oCaster, PROPERTY_ATTRIBUTE_WILLPOWER) - 10
And it seems to be working. It was the first of three I tried, so I ran with it since it worked right off the bat.





Retour en haut







