Jump to content

Home

TSL: ForceChain FEAT support for Force Valor


WRFan

Recommended Posts

The ForceChain FEAT doesn't support Force/Knight/Master Valor, so if Kreia is more than 30 feet (metres?) away from the PC and casts Force Valor, the effects will not be applied to the PC as they should. To fix this, add ForceChain support to all 3 Valor scripts. Here's an example for Knight Valor

 

k_inc_force.nss:

 

///////////////////////////////////////// Begin insert code
//RWT-OEI 12//29/03 - Added support for the ForceChain FEAT
           //  Will add this bonus to anyone else w/Force Chain for free.


if ( GetHasFeat(FEAT_FORCE_CHAIN, OBJECT_SELF) ) {
               int index = 0;
               for ( ; index < 3; ++index ) {
                   object oCharacter = GetPartyMemberByIndex(index);


if ( oCharacter != OBJECT_SELF
&& GetHasFeat(FEAT_FORCE_CHAIN, oCharacter)
&& !Sp_BetterRelatedPowerExists( oCharacter, FORCE_POWER_KNIGHT_MIND)) 
{     


Sp_RemoveRelatedPowers( oCharacter, FORCE_POWER_KNIGHT_MIND );

DelayCommand(0.0f, Sp_ApplyForcePowerEffects(fDuration, eLink1, oCharacter));
Sp_ApplyForcePowerEffects(0.0, eLink2, oCharacter);

}
}
}

//////////////////////////////////////End insert code

       }
       break;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...