Page 1 of 1

Not killable shadow editing

Posted: May 14th, 2020, 5:10 am
by Emiliano
Hi everyone, I tried to modify one of the shadows, but the options are not displayed in CusPoP
I want to set skill 9 and 10 hit points to this shadow, I guess it depends directly from Kid.dat

Re: Not killable shadow editing

Posted: May 14th, 2020, 8:34 am
by atrueprincefanfrom18
Emiliano Fierro wrote: May 14th, 2020, 5:10 am Hi everyone, I tried to modify one of the shadows, but the options are not displayed in CusPoP
I want to set skill 9 and 10 hit points to this shadow, I guess it depends directly from Kid.dat
I don't know about skill, but I think the hit points can be altered using F2 of Apoplexy or CusPoP. Maybe David can help changing skill Level? :P

Re: Not killable shadow editing

Posted: May 16th, 2020, 1:28 pm
by David
Emiliano Fierro wrote: May 14th, 2020, 5:10 am Hi everyone, I tried to modify one of the shadows, but the options are not displayed in CusPoP
Indeed, CusPoP has no options related to the shadow at all, except for the guard types and the DAT file names.
It's strange how they were left out, and how I haven't noticed that before.
Emiliano Fierro wrote: May 14th, 2020, 5:10 am I want to set skill 9 and 10 hit points to this shadow, I guess it depends directly from Kid.dat
You need to hex-edit PRINCE.EXE.

For PoP v1.0, the codes are:
Search: C7 06 68 43 03 00 B8 04 00
Change: 03 to new skill, 04 to new hitpoints (both in hex).

The relevant part of the disassembly:

Code: Select all

seg002:0029 C7 06 68 43 03 00          mov  guard_skill, 3
seg002:002F B8 04 00                   mov  ax, 4
seg002:0032 A3 58 4C                   mov  guardhp_max, ax
seg002:0035 A3 6A 59                   mov  guardhp_curr, ax
seg002:0038 A3 4A 4C                   mov  guardhp_delta, ax

Re: Not killable shadow editing

Posted: May 16th, 2020, 2:51 pm
by Emiliano
Thanks David, I will edit it