PDA

View Full Version : Scripting Question ...(I think)


Keiko
09-11-2005, 02:22 PM
Hello again! :D

I was wondering, Is it possible to edit a script to all your force powers hit? So the other people dont *save* from them?

I hope that makes sence, hehe

-Smallz :)

stoffe
09-11-2005, 02:33 PM
Hello again! :D

I was wondering, Is it possible to edit a script to all your force powers hit? So the other people dont *save* from them?


If you want to do it in a fair way (ie you won't get any saves when enemies use force powers against you either), just edit the Sp_MySavingThrows() function in the k_inc_force include file to always return 0. Then save and recompile the file k_sp1_generic.nss with the modified include file in the same folder as the compiler.

Just change the function to look like:

int Sp_MySavingThrows(object oTarget, int iSpellDC = 0) {
return 0;
}


If you instead feel like cheating and making the game even easier by keeping your saving throws but denying the enemy theirs, add this right at the top in the standard function, keeping the rest of it intact:

if (!IsObjectPartyMember(oTarget))
return 0;

oldflash
09-11-2005, 03:04 PM
It will be nice to have more effect when use force power against common human and near useless against jedi or sith. That including pc and npc's. Just like fight between Yoda and Dooku. In that way will be more difficult on the end of the game.
But that means to edit saving throw chart and every single power because are some fp which make a lot of damage even if enemy make saves (1-2% instead of half).

Keiko
09-11-2005, 03:43 PM
Doesnt seem to work for mw, do you think you could make the file, and put it as an attachment on thisthread? I am having problems with something