Leoric's life steal...
#8
Quote:The value should be stored as a signed int.

I set the sign bit of both hit-point variables to 1... in theory, this should mean that the monsters had negative hit points (if the value is signed). However, they had extemely high hit points, indicating that the bit is not being used to store the sign.

The .dat segment I used to set monster HP to -1 (if the value IS signed):


Code:
start 1.09 Change Dlvl 1 Monster HP
497e60 0400000007000000 0100001001000010
498060 0100000004000000 0100001001000010
498260 0200000004000000 0100001001000010
498460 0200000005000000 0100001001000010
498660 0300000006000000 0100001001000010
498a60 0300000006000000 0100001001000010
end

And the result:

[Image: diablo.gif]
"What contemptible scoundrel stole the cork from my lunch?"

-W.C. Fields
Reply


Messages In This Thread
Leoric's life steal... - by Daemon - 09-15-2003, 02:06 AM
Leoric's life steal... - by Daemon - 09-15-2003, 03:21 AM
Leoric's life steal... - by LemmingofGlory - 09-15-2003, 03:45 AM
Leoric's life steal... - by Draconis - 09-15-2003, 04:09 AM
Leoric's life steal... - by Daemon - 09-15-2003, 04:12 AM
Leoric's life steal... - by LennyLen - 09-15-2003, 06:25 AM
Leoric's life steal... - by Jarulf - 09-15-2003, 04:27 PM
Leoric's life steal... - by LennyLen - 09-15-2003, 04:42 PM
Leoric's life steal... - by the Langolier - 09-15-2003, 08:46 PM
Leoric's life steal... - by Daemon - 09-15-2003, 10:34 PM
Leoric's life steal... - by Draconis - 09-16-2003, 01:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)