Jump to content

Adjusting NPC health


Recommended Posts

Posted

Could it be possible to have a system where you can decide how much health a spawned npc could have?

 

this would be nice tool to drag out lightsaberbattles in singleplayer.  

Posted

yes, something like that. does it work on the mod?

That tool is used for developing npcs, we actually used it for our own npc's. You can use it to modify any npc's you want though.

Posted

so do i put the program in the kotf folder?

It doesn't have to be in the Kotf folder. Just put the NPCTool folder in any place you want, like the desktop.

Posted

@@gizmo94

Wait, you asked for a method to only edit the health of certain NPCs, right?

Actually, it can be done very easily without using the NPCTool. Just extract the ext_data folder from a pk3 in the KotF folder.

Once the folder is extracted, selected and go to the folder called npcs. Then select the NPC file you want and open it, either with the Editor

or with Notepad++. You should see text that looks like this:

 

BespinCop
{
playerModel bespin_cop
weapon WP_BLASTER_PISTOL
health 40
reactions 3
aim 1
move 3
aggression 3
evasion 1
intelligence 5
rank crewman
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
walkSpeed 55
runSpeed 200
yawspeed 120
dismemberProbHead 0
dismemberProbArms 10
dismemberProbLegs 0
dismemberProbHands 20
dismemberProbWaist 0
// race bespincop
class CLASS_BESPIN_COP
snd bespincop1
sndcombat bespincop1
sndextra bespincop1
}
 
Just edit the value that I marked red and add any number you like. It works with any NPC file, even the KotF ones.

 

For opening pk3 files and extracting folders from it, use 7zip: https://www.7-zip.org/

For editing the NPC files, use Notepad++ or, as mentioned, the Editor from Windows: https://notepad-plus-plus.org/download/v7.6.2.html

Posted

cant seem to get it to work, i changed the health but it was in normal notepad. 

it wont open inside notepad++

  • 2 weeks later...
Posted

@@gizmo94

 

If I understand correctly, you've managed to open the file in the notepad, but not in Notepad++?

Actually, this is not a problem at all. If you can open and edit the file with the regular notepad,

then you did it. All you have to do is create a new pk3 file and add the ext_data folder that contains your edited files.

  • 2 weeks later...
  • 1 month later...
Posted

With the npc tool you can choose the option open from pk3 and then you can find the pk3 that you would like to open for instance TSE npcs, from there you can choose the exact npc file you would like to change the value of the health and then you just need to save it. Hope this helps :) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...