PDA

View Full Version : [KOTOR] JoFlash's Body Counter


JoFlashStudios
08-18-2011, 11:49 PM
I'd like to announce my first (release worthy) mod!

Thanks to everyone at Holowan for their help, and specifically TimBob12, ChAiNz.2da and Qui-Gon Glenn.


JoFlash's Body Counter
Author: JoFlash Studios
Type: Utility Modification
Version: 0.1 (Beta)
Date: 8/18/2011
Contact: Lucas Forums (username "JoFlash Studios")
Download: teamroberts.org/joflash/kotor/joflashbodycounter.zip (http://teamroberts.org/joflash/kotor/joflashbodycounter.zip)


-- Description --
JoFlash's Body Counter is a small modification that I created to answer a
nagging question that I've had since I first played KotOR: "how many people
die over the course of this game?"

After searching on Google and finding estimates of around 200 (yeah right) I
decided to make my own kill counter so that the question would be cleared
once and for all.

On the Ebon Hawk, you can talk to T3-M4 at any time to access the current
body count. He will print it to the feedback log, or, if you prefer, speak it
directly in the dialog! ... In a sort of awkward way.

This mod modifies the default death script to log each death
that occurs. Because the maximum size of a global number in KotOR is 127,
this mod uses three different global numbers to store the body count. As
such, it has a maximum value of 127,999. If you somehow manage to kill
130,000 creatures... congratulations... but I can't help you.


-- Installation --
Just run "JoFlash Body Count.exe" and select the game folder if prompted. The
installer will do the rest.


-- Compatibility --
Both T3-M4's Ebon Hawk dialog (k_htmd_dialog.dlg) and the default death
script (k_def_death01.ncs) are central to the functioning of this mod, so even
if they already exist in the override folder they will be OVERWRITTEN.
Therefore, this mod will conflict with any mod that alters either of those files.

Because there is no opportunity to return to the Ebon Hawk after arrival at
the Star Forge (and because we all want to log Malak's death) I've modified
Malak's Deck 4 dialog to print out the final body count (including his and the
jedi's death) to the feedback screen before the fight begins. However, this
isn't a critical feature of the mod, so if 'k_sta_darthmalak.dlg' already exists in
the override folder, it will not be overwritten, and that part of the mod simply
won't work.


-- A Few Notes --
Firstly, if anyone completes an entire playthrough with this mod installed,
please post your body count on the release thread! Also, include your
character and alignment. I'm curious to see what the actual body count of
the game is, whether you are light side or dark side.

Origonally, I was planning to have this mod include a feature that broke the
body count down into parts and allowed you to see how many hostiles,
neutrals, and friendlies have died. However, a creature's reputation is set to
50 before the death script fires, so this isn't possible (as far as I can tell.)

This mod is still in beta, so I'm sure there are still issues with it. If you find a
bug, contact me at LucasForms, username 'JoFlash Studios'.


-- Legal --
THIS MODIFICATION IS PROVIDED AS-IS AND IS NOT SUPPORTED BY
BIOWARE OR LUCASARTS OR ANY LICENSERS/SPONSORS OF THE MENTIONED
COMPANIES. USE OF THIS FILE IS AT YOUR OWN RISK AND THE ABOVE
MENTIONED COMPANIES OR THE AUTHOR IS NOT RESPONSIBLE FOR ANY
DAMAGE CAUSED TO YOUR COMPUTER BY THE USAGE OF THIS FILE.

http://www.youtube.com/watch?v=mu_is7wuZQM

Canderis
08-19-2011, 12:05 AM
Hehehe... Nice.

Qui-Gon Glenn
08-19-2011, 12:15 AM
:)

Glad I was helpful somehow! This is a novel idea, something I will gladly check out whenever I decide to play K1 again... Your ReadMe was funny, I wonder how long you would have to play to kill 130,000 creatures :?:

JoFlashStudios
08-19-2011, 02:37 PM
:)
... I wonder how long you would have to play to kill 130,000 creatures :?:
That would be rather difficult. :) I suppose you could spend the rest of your life warping to the Taris Undercity and killing rakghouls...

GeorgNihilus
08-21-2011, 11:13 AM
A real interesting way to see how much more I kill being darkside than lightsider? :nod:

Unfortunately I need editing so I'm on my way to tweak k_def_death01.ncs, k_sta_darthmalak.dlg and my globalcat.2da right now dude ... let's just hope I find your tweaking soon in those files of yours ... :compcry:

thanks for the mod :thmbup1:

JoFlashStudios
08-22-2011, 08:17 AM
In case anyone else is trying to make this mod compatible, here's the pm I sent GeorgNihilus:


From your post, I'm assuming you mean that you need to find my changes for compatibility reasons. In case you haven't already figured it out:

As far as k_def_death01, I just added "#include "jf_common"" and then put "SetBodyCount(GetBodyCount() + 1);" above the standard death processing code. This just increments the counter.

For Malak's dialog, I just added the script "jf_bcend" to fire on the first line that doesn't already have a script assigned, thus allowing me to add it without having to merge scripts. That line is, "You are stronger than I thought; stronger than you ever were during your reign as the Dark Lord. I did not think that was possible."

For GlobalCat.2da, I added five rows:
1187 BCINDEX Number
1188 BCPRINTING Boolean
1189 BODYCOUNTA Number
1190 BODYCOUNTB Number
1191 BODYCOUNTC Number

BCINDEX and BCPRINTING are used to allow T3-M4 to "say" the body count. The other three actually hold the current value.