Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 03/09/08 05:03

coool
Member
From: China Haikou
Registered: 02/12/08

set charater's health

Now I add many charaters to last level,I want to play see a big fight that's TCTF vs Syndicate,
but their health is too low,dead very easy

if i use chr_set_health,their real max health can't  be changed

how could i change it?

Offline

#2 03/09/08 05:03

s10k
Member
Registered: 01/14/07
Website

Re: set charater's health

"real" health can only be changed via hex editing.

Offline

#3 03/09/08 05:03

coool
Member
From: China Haikou
Registered: 02/12/08

Re: set charater's health

Script_10k wrote:

"real" health can only be changed via hex editing.

I kown
but how should i do

Offline

#4 03/09/08 06:03

m2
Member
Registered: 01/22/07

Re: set charater's health

how could i change it?

You can increase either the basic health of a character class in the ONCC files (position: 0xC58) or every single additional health of a character in the Character.BINA files (position: 0x1C8).

Offline

#5 03/09/08 08:03

coool
Member
From: China Haikou
Registered: 02/12/08

Re: set charater's health

Oh,I fand the another convenient  way

I fand the "additional health " here:
http://wiki.oni2.net/OBD:BINA/OBJC/CHAR

0x1C8  int32  00 00 00 00  0  additional health (the basic health is stored in the ONCC file of the character)
if I change 00 00 00 00 to C8 00 00 00,the charater's health will increased 200

but FF 00 00 00 is increase 255 health,how could I increase more?if I change it to 11 10 00 00,the health will be increased by more than four  thousand= neutral|

for example,500 in hex is 1F4 ,then how should I change it?

Offline

#6 03/09/08 08:03

geyser
Member
From: beyond the veil
Registered: 01/14/07
Website

Re: set charater's health

When working with Little Endian, keep in mind that only the bytes are swapped ("little" bytes on the left), but every single byte still reads right-to-left (the higher 4 bits are 0xF0 and the lower ones are 0x0F).
As for the examples you gave, 11 10 00 00 = 0x00001011 = 4113 = "more than four thousand" = neutral  If you want 256 = 0x100, you'll write 00 01 00 00, and if you want 500 = 0x1F4, you'll write F4 01 00 00.

Last edited by geyser (03/09/08 08:03)


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

#7 03/09/08 09:03

coool
Member
From: China Haikou
Registered: 02/12/08

Re: set charater's health

thank you very much~good man :)you answer all questions here?~~

Offline

#8 03/09/08 09:03

geyser
Member
From: beyond the veil
Registered: 01/14/07
Website

Re: set charater's health

No, actually, there are a lot of helpful experts around here... Loser and m2, to name only 2.
I would hate to be the one to answer all the questions; being irreplaceable isn't always good.


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

Board footer

Powered by FluxBB