Jump to content

Arcane Warrior: Spellpower as Attack


ShadowDragyn

Recommended Posts

I'm working on an Arcane Warrior overhaul mod, and since you cannot see the attack value for mages, I would like to change Combat Magic to make the character use Spellpower+50 to determine chance to hit instead of Attack.

Does anyone know if this is possible, and how I would go about doing it?

 

If it's not possible to make the hit chance actually mechanically function that way, I would think it should at least be possible to always make the character's invisible Attack value equal to Spellpower+50, but I don't know if that would get screwed up by +Attack from spells and items and such; I've never scripted for this game before, only Oblivion.

Link to comment
Share on other sites

A mod like that wouldn't actually be that hard to do.

 

The script that governs combat magic is spell_modal.

 

in the combat magic section, you could modify the line

 

eEffects[1] = EffectModifyProperty(PROPERTY_ATTRIBUTE_ATTACK, AURA_OF_MAGIC_COMBAT_MAGIC_ATTACK_BONUS,

(leave the rest of the line following the comma alone)

 

to be

 

eEffects[1] = EffectModifyProperty(PROPERTY_ATTRIBUTE_ATTACK, GetCreatureSpellPower(stEvent.oCaster) +50.0f,

 

(leave the rest of the line following the comma alone)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...