TriggerGod Posted August 26, 2008 Share Posted August 26, 2008 I decided to try my first force power. I based it off of another Force Power I found. So, I try and compile, and I have but 1 syntax error. But.. I don't know which one is which. It says I have a syntax error at effect. #include "k_inc_force" void main() { SWFP_DAMAGE_TYPE = DAMAGE_TYPE_COLD; object oCaster = OBJECT_SELF; object oTarget = GetSpellTargerObject(); SWFP_DAMAGE = 50 effect eBeam = EffectBeam(2051, oCaster, BODY_NODE_HAND_LEFT); effect eBeam1 = EffectBeam(2066, OBJECT_SELF, BODY_NODE_HAND_LEFT); effect eVFX = EffectVisualEffect(3001); effect eDamage = EffectDamage(SWFP_DAMAGE. SWFP_DAMAGE_TYPE); effect ePush = EffectForcePushTargeted(GetSpellTargetLocation()); effect eDrain = EffectVisualEffect (VFX_PRO_DRAIN); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(3009),GetSpellTargetLocation()); ApplyeffectToObject(DURATION_TYPE_INSTANT, eDamage, oTarget); ApplyEffectToObject(DURATION_TYPE_INSTANT, ePush, oTarget); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDrain, oTarger); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectStunned(), oTarger, 20.0f); ApplyEffectToObject(1, eBeam, oTarget, 1.5f); ApplyEffectToObject(1, eBeam, oTarget, 1.5f); ApplyEffectToObject(1, eVFX, oTarget, 1.5f); } That is my script. The error says: Lookup Path set to J:\Games\LucasArts\SWKOTOR2 Compiling cold.nss Loaded k_inc_force.nss via key file lookup cold.nss(11): Error: syntax error at "effect" Compilation aborted with errors. (about my Lookup Path: My C Drive is full. We're using our J drive for our games. Don't think of us as bad peoples >_<) Link to comment Share on other sites More sharing options...
Inyri Posted August 26, 2008 Share Posted August 26, 2008 effect eDamage = EffectDamage(SWFP_DAMAGE. SWFP_DAMAGE_TYPE);Should be a comma, no? Link to comment Share on other sites More sharing options...
TriggerGod Posted August 26, 2008 Author Share Posted August 26, 2008 Should be a comma, no? *twitch* Blarg, blame my KTool going wonky on me Anyways, thanks.. But, the same error occurs. (looks at the script I used as a base) EDIT: I used the Fire Power script e-varmint used for the Planet Shola mod, but, instead of eFlame, I used eDrain. That might be my problem, but I don't know. Link to comment Share on other sites More sharing options...
Inyri Posted August 26, 2008 Share Posted August 26, 2008 Does it still say it's in the same line (11)? Link to comment Share on other sites More sharing options...
TriggerGod Posted August 26, 2008 Author Share Posted August 26, 2008 Does it still say it's in the same line (11)? As a matter of fact, yes. It is the same exact error. I even checked it against the one I posted above. The only difference between the 2 errors would be the abortion time. Even then, it was only a ms or 2. Link to comment Share on other sites More sharing options...
sekan Posted August 26, 2008 Share Posted August 26, 2008 There were many errors in the script like forget to use ; behind SWFP_DAMAGE = 50 and and spelled targer at some times instead of target. The script should work now: #include "k_inc_force" void main() { SWFP_DAMAGE_TYPE = DAMAGE_TYPE_COLD; object oCaster = OBJECT_SELF; object oTarget = GetSpellTargetObject(); SWFP_DAMAGE = 50; effect eBeam = EffectBeam(2051, oCaster, BODY_NODE_HAND_LEFT); effect eBeam1 = EffectBeam(2066, OBJECT_SELF, BODY_NODE_HAND_LEFT); effect eVFX = EffectVisualEffect(3001); effect eDamage = EffectDamage(SWFP_DAMAGE, SWFP_DAMAGE_TYPE); effect ePush = EffectForcePushTargeted(GetSpellTargetLocation()); effect eDrain = EffectVisualEffect (VFX_PRO_DRAIN); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(3009),GetSpellTargetLocation()); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oTarget); ApplyEffectToObject(DURATION_TYPE_INSTANT, ePush, oTarget); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDrain, oTarget); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectStunned(), oTarget, 20.0f); ApplyEffectToObject(1, eBeam, oTarget, 1.5f); ApplyEffectToObject(1, eBeam1, oTarget, 1.5f); ApplyEffectToObject(1, eVFX, oTarget, 1.5f); } Link to comment Share on other sites More sharing options...
TriggerGod Posted August 26, 2008 Author Share Posted August 26, 2008 There were many errors in the script like forget to use ; behind SWFP_DAMAGE = 50 and and spelled targer at some times instead of target. The script should work now: {script snip} Thank you. It has compiled successfully. EDIT: I have another problem. I set all the Jedi classes and inate in spells.2da to 18. Now, that should mean that I can choose that power at level 18, right? Not for me. The only way right now is to use KSE. Is there any way I can pick the power on level up, instead of KSE? Link to comment Share on other sites More sharing options...
Istorian Posted August 27, 2008 Share Posted August 27, 2008 I think that you should edit a .2da file, though I'm not sure.... |I| Link to comment Share on other sites More sharing options...
sekan Posted August 27, 2008 Share Posted August 27, 2008 Did you set the inate row to 18? Link to comment Share on other sites More sharing options...
Exile007 Posted August 27, 2008 Share Posted August 27, 2008 Thank you. It has compiled successfully. EDIT: I have another problem. I set all the Jedi classes and inate in spells.2da to 18. Now, that should mean that I can choose that power at level 18, right? Not for me. The only way right now is to use KSE. Is there any way I can pick the power on level up, instead of KSE? Sometimes it just does that, I've usually been able to get it working after a fresh new character, so that could be the problem. And don't forget Trigger, sometimes a syntax error could be at one line, but the problem is actually in another. Link to comment Share on other sites More sharing options...
TriggerGod Posted August 27, 2008 Author Share Posted August 27, 2008 Ok, so now, the icons appear on the level up screen, and I can select them at the desired level. It was the .tlk file I had to edit. Anyways, another problem surfaces I'm testing out the files, and I notice that the names and descriptions don't match up to what I want. I look at Spells, and I have all the tlk lines matched up. But yet, I still get different names. (Freeze is now Force Sap Will, and a lightning based power (no spoilers until I release it ) is Chain Lightning, when the effect is nothing like that...) Anyways, the problem is that the name I want it to have isn't the same as the name that its given. I'm almost starting to think that there are cut force powers, such as "Force Sap Will," which I suspect you learn some time on Malachor if you Sap Sion's Will. Also, a new description for Inferno appears, which I like better, but I didn't make. Which makes me suspect there was a cut fire power. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.