lfnetwork.com mark read register faq members calendar

Thread: Force Buff help
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 09-06-2009, 08:46 AM   #1
Agamo
Rookie
 
Agamo's Avatar
 
Join Date: May 2009
Posts: 16
Force Buff help

Right I've got a 4 day weekend and all so I tried to make a force power edit the spells 2da write the script in KotOR Tool and hit compile but every time it says error at main line 5 and int line 14 here's the script
Code:
#include "k_inc_force"

int FORCE_POWER_WARRIOR_RAGE = 311

void main()
{

   object oTarget = GetSpellTargetObject();

   effect eTargetVisual;

   effect eBuff

   int CasterLevel = GetHitDice(OBJECT_SELF);

   SWFP HARMFUL = FALSE

   if(GetHasSpellEffect(FORCE_POWER_WARRIOR_RAGE)
   {
        Sp_RemoveSpellEffectsGeneral(FORCE_POWER_WARRIOR_RAGE, oTarget);


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





       eBuff = SetEffectIcon(eBuff, 7);

       eTargetVisual = EffectVisualEffect(VFX_PRO_FORCE_ARMOUR);
       
       eTargetVisual = EffectLinkEffects(eTargetVisual,
EffectVisualEffect(VFX_PRO_FORCE_SHILD));

            if(CasterLevel < 6)
     {
          eBuff = EffectLinkEffects(eBuff, EffectAbilityIncrease(ABILITY_STRENGTH, 3));
          eBuff = EffectLinkEffects(eBuff, EffectACDecrease(4, AC_DODGE_BONUS, AC_VS_DAMAGE_TYPE_ALL));
     }
     
     else if(CasterLevel < 12)
     {
          eBuff = EffectLinkEffects(eBuff, EffectAbilityIncrease(ABILITY_STRENGTH, 3));
          eBuff = EffectLinkEffects(eBuff, EffectACDecrease(3, AC_DODGE_BONUS, AC_VS_DAMAGE_TYPE_ALL));
     }
     else //  This effect will be applied if the caster is level 12 and up
     {
          eBuff = EffectLinkEffects(eBuff, EffectAbilityIncrease(ABILITY_STRENGTH, 15));
          eBuff = EffectLinkEffects(eBuff, EffectAbilityIncrease(ABILITY_DEXTERITY, 5));
      }


      ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eTargetVisual, 
oTarget, 3.0);

      ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBuff, oTarget,
90.0);
}
could anyone tell me what's wrong with it


"If at first you don't succed redefine succes"~ GoGoInaro
"Hey! Don't slobber on my vest"~Kakashi Hatake
Agamo is offline   you may: quote & reply,
Old 09-06-2009, 10:30 AM   #2
Achilles
Dapper Chimp
 
Achilles's Avatar
 
Join Date: May 2004
Posts: 8,204
Helpful! Veteran Modder Forum Veteran 
Looking at line 5, it would appear that you might be missing a semi-colon.
Achilles is offline   you may: quote & reply,
Old 09-06-2009, 08:30 PM   #3
Agamo
Rookie
 
Agamo's Avatar
 
Join Date: May 2009
Posts: 16
Quote:
Originally Posted by Achilles View Post
Looking at line 5, it would appear that you might be missing a semi-colon.
Huh? Not again.. I'll go try that

EDIT: That worked but... now there's more errors
1: Syntax error at HARMFUL line 16
2: Unexpected end of the file line 61

Code:
#include "k_inc_force"

int FORCE_POWER_WARRIOR_RAGE = 311;

void main()
{

   object oTarget = GetSpellTargetObject();

   effect eTargetVisual;

   effect eBuff;

   int CasterLevel = GetHitDice(OBJECT_SELF);

   SWFP HARMFUL = FALSE;

   if(GetHasSpellEffect(FORCE_POWER_WARRIOR_RAGE))
   {
        Sp_RemoveSpellEffectsGeneral(FORCE_POWER_WARRIOR_RAGE, oTarget);


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





       eBuff = SetEffectIcon(eBuff, 7);

       eTargetVisual = EffectVisualEffect(VFX_PRO_FORCE_ARMOUR);
       
       eTargetVisual = EffectLinkEffects(eTargetVisual,
EffectVisualEffect(VFX_PRO_FORCE_SHIELD));

            if(CasterLevel < 6)
     {
          eBuff = EffectLinkEffects(eBuff, EffectAbilityIncrease(ABILITY_STRENGTH, 3));
          eBuff = EffectLinkEffects(eBuff, EffectACDecrease(4, AC_DODGE_BONUS, AC_VS_DAMAGE_TYPE_ALL));
     }
     
     else if(CasterLevel < 12)
     {
          eBuff = EffectLinkEffects(eBuff, EffectAbilityIncrease(ABILITY_STRENGTH, 3));
          eBuff = EffectLinkEffects(eBuff, EffectACDecrease(3, AC_DODGE_BONUS, AC_VS_DAMAGE_TYPE_ALL));
     }
     else //  This effect will be applied if the caster is level 12 and up
     {
          eBuff = EffectLinkEffects(eBuff, EffectAbilityIncrease(ABILITY_STRENGTH, 15));
          eBuff = EffectLinkEffects(eBuff, EffectAbilityIncrease(ABILITY_DEXTERITY, 5));
      }


      ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eTargetVisual, 
oTarget, 3.0);

      ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBuff, oTarget,
90.0);
}
any ideas?


"If at first you don't succed redefine succes"~ GoGoInaro
"Hey! Don't slobber on my vest"~Kakashi Hatake

Last edited by Agamo; 09-07-2009 at 07:12 AM.
Agamo is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Force Buff help

Tags
buff, force, scripts

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:05 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.