CoN 25th Anniversary: 1997-2022
HP Hacking

Posted: 28th July 2003 07:50
*
Returner
Posts: 17

Joined: 15/7/2003

Awards:
Member of more than five years. 
Hi I have a question for all of you hackers out there.  And I use the term loosely.  I am editing monsters in FF6 and distributing ips patches.  My question is:  How do I create an HP Loop in the monster script.  This is simple to some people but I can't seem to find any other way than to ask some one else.  And this is the first place I thought of to ask.  If someone can explain this, please use examples
Post #15003
Top
Posted: 28th July 2003 12:01
*
SOLDIER
Posts: 741

Joined: 5/7/2001

Awards:
Member of more than ten years. Member of more than five years. 
Ever programmed a loop in any language before?  That's pretty much the same concept here.  Here's an example using variable 00:
Code Sample
FC 12 00 00 F5 00 00 00 F8 00 81 FC 0D 00 ?? F5 0C 01 FF FE

Where...

FC 12 00 00: If self is dead...
F5 00 00 00: Revive and restore HP of self (no animation)
F8 00 81:    Add 1 to variable 00
FC 0D 00 ??: If variable 00 is more than or equal to ??...
F5 0C 01 FF: Kill all monsters (boss death animation)
FE:          End if

The reason I used 00 is because it serves no specific purpose and can be used freely without affecting the game.  Terii's command doc will obviously help a great deal on this subject as it will tell you how the commands work, but as of this moment the variable info is missing.  Here's the info from the previous .txt version of the doc:
Quote
Variable     Use
00 - 03      Unused
04 - 08      ???
09           ???
0A           Used to change SrBehemoth to Undead SrBehemoth (If bit 7 is set)
0B           If bit 1 set, Morph lasts half as long, If bit 2 set, Morph is unusable, Other bits ???
0C           ???
0D           ???
0E - 0F      Doom Gaze's HP
10 - 17      ???
18           Elements nullified by forcefield
19           Number of targets for last attack
1A           Number of types of monsters active in combat
1B - 23      ???
24           Battle formation (low byte)

Variables 04 - 17 retain their values at end of combat.

As far as actually programming, there are only examples (unless you read the tutorial at my site, though I have no idea whether it will be helpful).  My monsters could also double as examples if you can read their scripts (some HP loop examples are Kimerus 2 (Heaven & Hell patch), Golbeze, and Image), but Square's monsters should help you plenty on their own.

--------------------
Post #15006
Top
Posted: 29th July 2003 04:04
*
Returner
Posts: 17

Joined: 15/7/2003

Awards:
Member of more than five years. 
Thanx, Thanx, and thanx again!!!  I cannot emphasize the help you have been.  Looping was one thing I always had trouble with in programming, but since you made it so simple, I can finally hack more than monsters in roms.  If I ever become a famous programmer, I will mention you.
Post #15037
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: