Agamo Posted September 6, 2009 Share Posted September 6, 2009 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 #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 Link to comment Share on other sites More sharing options...
Achilles Posted September 6, 2009 Share Posted September 6, 2009 Looking at line 5, it would appear that you might be missing a semi-colon. Link to comment Share on other sites More sharing options...
Agamo Posted September 7, 2009 Author Share Posted September 7, 2009 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 #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? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.