Aller au contenu

Photo

Modifying Spells & Mana/Stamina Regeneration


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

#1
Dragoon412

Dragoon412
  • Members
  • 3 messages
I finished the game. I love it, but I'd like to make some tweaks for my second playthrough, but I'm having difficulty figuring out where to make the changes. And I'm looking to make very simple changes; tweaking spell values as they are, not completely redesigning them.

For starters, I want to improve abilities like Rejuvenation, Mass Rejuvenation, and Spellbloom so that they recover an appreciable amount of mana/stamina. I've tried poking around ABI_base.xls, but can't find out how to do this. The entry for Rejuvination (line 127) for example, references spell_singletarget.ncs. But when you look at spell_singletarget.ncs, all you have pertaining to the spell is:

        case ABILITY_SPELL_CURE:
        {
            float fRegeneration = REJUVINATION_REGEN_FACTOR;

            // remove stacking effects
            RemoveStackingEffects(stEvent.oTarget, stEvent.oCaster, stEvent.nAbility);

            eEffect = EffectModifyProperty(PROPERTY_ATTRIBUTE_REGENERATION_STAMINA, fRegeneration,
                                           PROPERTY_ATTRIBUTE_REGENERATION_STAMINA_COMBAT, fRegeneration);
            eEffect = SetEffectEngineInteger(eEffect, EFFECT_INTEGER_VFX, Ability_GetImpactObjectVfxId(stEvent.nAbility));
            ApplyEffectOnObject(EFFECT_DURATION_TYPE_TEMPORARY, eEffect, stEvent.oTarget, REJUVINATION_DURATION, stEvent.oCaster, stEvent.nAbility);

            Ability_ApplyObjectImpactVFX(stEvent.nAbility, stEvent.oTarget);

            break;
        }

I have no idea what to do with that. There's no value there for me the change, and I have no idea where or what REJUVINATION_REGEN_FACTOR is.

Second, core mechanics... I'd like to improve the base mana/stamina regeneration of everyone in the game; like a core mechanic change. I don't even know where to begin looking for that, though.

Anyone have any ideas? Thoughts?

Thanks for your time!

#2
ladydesire

ladydesire
  • Members
  • 1 928 messages

Dragoon412 wrote...

I finished the game. I love it, but I'd like to make some tweaks for my second playthrough, but I'm having difficulty figuring out where to make the changes. And I'm looking to make very simple changes; tweaking spell values as they are, not completely redesigning them.

For starters, I want to improve abilities like Rejuvenation, Mass Rejuvenation, and Spellbloom so that they recover an appreciable amount of mana/stamina. I've tried poking around ABI_base.xls, but can't find out how to do this. The entry for Rejuvination (line 127) for example, references spell_singletarget.ncs. But when you look at spell_singletarget.ncs, all you have pertaining to the spell is:

        case ABILITY_SPELL_CURE:
        {
            float fRegeneration = REJUVINATION_REGEN_FACTOR;

            // remove stacking effects
            RemoveStackingEffects(stEvent.oTarget, stEvent.oCaster, stEvent.nAbility);

            eEffect = EffectModifyProperty(PROPERTY_ATTRIBUTE_REGENERATION_STAMINA, fRegeneration,
                                           PROPERTY_ATTRIBUTE_REGENERATION_STAMINA_COMBAT, fRegeneration);
            eEffect = SetEffectEngineInteger(eEffect, EFFECT_INTEGER_VFX, Ability_GetImpactObjectVfxId(stEvent.nAbility));
            ApplyEffectOnObject(EFFECT_DURATION_TYPE_TEMPORARY, eEffect, stEvent.oTarget, REJUVINATION_DURATION, stEvent.oCaster, stEvent.nAbility);

            Ability_ApplyObjectImpactVFX(stEvent.nAbility, stEvent.oTarget);

            break;
        }

I have no idea what to do with that. There's no value there for me the change, and I have no idea where or what REJUVINATION_REGEN_FACTOR is.


It should be in one of the files listed at the top of the script; there should be at least one #include entry in the script (more likely several) and that constant should be in one of them.

Second, core mechanics... I'd like to improve the base mana/stamina regeneration of everyone in the game; like a core mechanic change. I don't even know where to begin looking for that, though.

Anyone have any ideas? Thoughts?

Thanks for your time!


This would be found in one of the core game scripts, most likely.

#3
Dragoon412

Dragoon412
  • Members
  • 3 messages
Thank you for the quick reply. I'm still digging around for the stamina/mana mechanics, but I've done some changes (and some more digging) and feel that I have a much better idea of how the spells work, now. One problem, though: I have no idea how to implement the script in the official campaign. Is that possible? Any idea where I can read up on how to do it?

The rather limited bit of modding I did in NWN was relegated to 2da files. And the wiki is a bit light on information.

EDIT: I assume it goes in a .gda file, which is then placed in the override folder. I'm just not sure what file contains the scripts.

Modifié par Dragoon412, 15 novembre 2009 - 10:42 .