Aller au contenu

Photo

combat magic modding


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
sneakow

sneakow
  • Members
  • 3 messages
I was wondering if it is possible to change combat magic to instead use attack instead of spellpower. Initially I have tried this...

eEffects[0] = EffectModifyProperty(PROPERTY_ATTRIBUTE_ATTACK, COMBAT_MAGIC_ATTACK_BONUS + MaxF(GetCreatureSpellPower(stEvent.oCaster)/5.0,0.0)

to

eEffects[0] = EffectModifyProperty(PROPERTY_ATTRIBUTE_SPELLPOWER, COMBAT_MAGIC_ATTACK_BONUS + MaxF(GetCreatureAttack(stEvent.oCaster)/5.0,0.0)

in the spell_modal.nss, but when compiling I get the error, "E: 13:03:41 - spell_modal.nss - spell_modal.nss(80): Undefined identifier (GetCreatureAttack)"

Where would I go to create GetCreatureAttack, or is this the total wrong way to go about it? Any help would be much appreciated, thanks.

#2
jsd313

jsd313
  • Members
  • 184 messages
GetCreatureAttackRating

#3
sneakow

sneakow
  • Members
  • 3 messages
thanks