Jump to content

Home

Scripting Force Power Problems


Recommended Posts

Could somebody please tell me if the script below is the reason for my new Force power not showing up in game or KSE.

 

// FP Sith Flame

 

int FORCE_POWER_Sith_Fire = 282

 

#include "k_inc_force"

 

void main()

{

SWFP_HARMFUL = TRUE;

SWFP_DAMAGE = Sp_CalcDamage( oTarget, 0, 0, (GetHitDice(OBJECT_SELF)*2);

 

SWFP_DAMAGE_TYPE = DAMAGE_TYPE_DARK_SIDE

SWFP_DAMAGE_VFX = VFX_BEAM_DRAIN_LIFE

 

eLink1 = EffectAbilityDecrease(ABILITY_WISDOM, 5);

 

effect eFlame = EffectFlame();

effect eDamage = EffectDamage(SWFP_DAMAGE, SWFP_DAMAGE_TYPE);

 

int nResist = Sp_BlockingChecks(oTarget, eChoke, eDamage, eInvalid);

int nSaves;

SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, GetSpellId(), SWFP_HARMFUL));

if(nResist == 0)

{

nSaves = Sp_MySavingThrows(oTarget);

if(nResist == 0)

{

ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_BEAM_DRAIN_LIFE), oTarget);

ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eFlame, oTarget, 3.5);

 

float fDuration = Sp_CalcDuration( 3.5."" );

ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink1, oTarget, fDuration);

int nIdx = 1

float fDelay;

SP_InteractiveDamage(eDamage, 7, oTarget);

}

}

 

}

Link to comment
Share on other sites

err...did you edited spells.2da correctly? Check this tutorial: http://www.lucasforums.com/showthread.php?s=&threadid=130898 Normally, if done correctly, the force power will show in the game and in KSE even if the script is not there ;) (of course, it makes a useless force power too)

 

There are a few minor differences with TSL's spells.2da so feel free to look at the few force powers I made for TSL.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...