Aller au contenu

Photo

Changing spells from spellpower to use Strength


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
Sausfest

Sausfest
  • Members
  • 57 messages
Silly problem really, i'm trying to edit Flaming wepaons in 'Spell_Modal.nss'
Which is where my custom version of flaming weapons calls it's script.

I want to change:

      case ABILITY_SPELL_FLAMING_WEAPONS:
        {
            // determine power
            float fPower = MaxF(1.0,MinF((GetCreatureSpellPower(stEvent.oCaster) / 7.5f), 10.0f));
            eEffects[0] = EffectEnchantment(ENCHANTMENT_FIRE, FloatToInt(fPower));
            bPartywide = TRUE;

To a spell that uses str instead of spellpower, although i'm not sure what the word would be. Are there any other dependant scripts?