PDA

View Full Version : [k1]A few force power questions.


Darth Balor
04-02-2007, 08:24 PM
I have a few questions about force powers, FP scripts and granting them via completing a quest or the like for K1.

1. How when making a multiple tear power would I increase the damage dealt or health restored?

2. What would make a FP script not compile. (I would like a more experienced scripter to look at my scripts and tell me what needs fixing, I can post them here if need be.)

3. Is it possible to to grant a force power after completing a certain part of the game? And not have the power show up on the selection menu and have powers restricted to certain jedi classes?

4. Would it be illegal to use FP icons from TSL in KotOR?

RedHawke
04-02-2007, 11:38 PM
4. Would it be illegal to use FP icons from TSL in KotOR?
This one is a yes... that is porting and is verboten.

darthriddick
04-03-2007, 02:08 AM
although for something as simple as force power icons, I'm sure using a TSL icon as a "template" would be ok.
(using the TSL icon as a back, in say, photo shop, and then changing it so that it no longer resembles the original.)

stoffe
04-03-2007, 07:17 AM
1. How when making a multiple tear power would I increase the damage dealt or health restored?

Make three new force powers as usual, then set the forcefriendly column (for untargeted buff/heal powers) or the forcehostile column (for targeted offensive powers) to the same number for all three powers. Make sure that number isn't already used for other force powers. This will group them together in the same "family". Then set the forcepriority column to 0 for the first/least power in the "family", 1 for the middle one and 2 for the most powerful one. Likewise in the pips column set it to 1 for the first/least power, 2 for the middle one and 3 for the most powerful/rightmost power. Also in the prerequisites column set the value of the weakest power in the family to ****, the middle power to the line number of the weakest power, and the strongest power to the line number of the middle power.

Finally in the impactscript column set the name of three different NCS files with the impact script for your powers. You can them write this script separately for each power to make them do different things. (Technically you could use the same impact script for all three powers and check the spells.2da line number of the power used with GetSpellId() to determine what to do, but personally I think it's easier to keep things separated.)


2. What would make a FP script not compile. (I would like a more experienced scripter to look at my scripts and tell me what needs fixing, I can post them here if need be.)

Syntax errors most often, unless you've been copy&pasting snippets of different scripts without knowing how they'd fit together. Scripts are so dynamic in their structure that pretty much anything could go wrong and prevent a script from compiling, so it's hard to say what it might be without more information.


3. Is it possible to to grant a force power after completing a certain part of the game? And not have the power show up on the selection menu and have powers restricted to certain jedi classes?

As far as I am aware you can't give out Force Powers or Feats in KOTOR1, those scripting functions were added in KOTOR2:TSL. Thus the player would have to pick your new powers at level up.


4. Would it be illegal to use FP icons from TSL in KotOR?

Porting assets between different games isn't allowed in this modding community (unless those assets are from a mod created for that game, and you have the original mod author's permission to use it).

Darth Balor
04-03-2007, 07:41 AM
As far as I am aware you can't give out Force Powers or Feats in KOTOR1, those scripting functions were added in KOTOR2:TSL. Thus the player would have to pick your new powers at level up.

So I could have the power become available for selection after the choice on the temple summit?

Gargoyle King
04-06-2007, 01:03 PM
So I could have the power become available for selection after the choice on the temple summit?

Like Stoffe said:

As far as I am aware you can't give out Force Powers or Feats in KOTOR1, those scripting functions were added in KOTOR2:TSL. Thus the player would have to pick your new powers at level up.

You are essentially repeating your question; for the power to become available, you need feat points that are only given upon a level-up of a character. This would, like Stoffe mentioned be possible in Kotor 2, but in Kotor 1, powers would only become available through general levelling up of the character. Also, you can't choose which force power to be unlocked in the learning slots, the game tends to have its own order in this respect. I say 'tends' to as if you want to get force powers for your characers the easy way without scripting hassle, just use the KSE!!

Darth Balor
04-06-2007, 08:25 PM
Yuo mis-understood my quesio the second time.

stoffe
04-06-2007, 11:09 PM
So I could have the power become available for selection after the choice on the temple summit?

I don't think you can limit when a force power becomes available to pick at level up other than the level requirement of it. While you wouldn't be able to prevent the player from getting the power early if they level up quickly, you could alter its impact script to add in a condition check for the global variable set after that scene, and if it isn't set make the power fizzle.

Darth Balor
04-07-2007, 07:23 AM
ahh ok.

Gargoyle King
04-07-2007, 07:49 AM
Yuo mis-understood my quesio the second time.

Oops, my bad - it seemed i did! Just my noob tendancies getting to me! :lol: