View Single Post
  #10    
Old October 21st, 2012, 06:21 AM
DoesntKnowHowToPlay's Avatar
DoesntKnowHowToPlay
some loser
 
Join Date: Jan 2012
This looks like it will be very helpful for people to start learning, but I'd like to point out that that Hammer Arm script will not pierce Clear Body like in the vanilla games- you have to do a little more work. (This is actually quite important as one of the most well-known users of Hammer Arm is Metagross.)

Using JPAN's old thread on Battle Scripts, I was able to piece together one that does:

Edit: This script is old and will fail on misses/hitting immunities, look on page 4 for a better one

Spoiler:
00 01 5E 69 1D 08 00 00 02 03 04 05 06 07 09 0A 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 20 01 00 03 00 47 69 1D 08 2E DF 3F 02 02 00 48 01 08 09 2E DE 3F 02 02 93 89 C1 ED 84 1D 08 13 7C E5 3F 08 12 40 00 28 47 69 1D 08


And the decompiled logic for those wondering what I'm doing:

Spoiler:

HAMMER ARM- (after damage)
20 - Jump if stat modifier
- 01 (user)
- 00 stat equal to
- 03 speed
- 00 (-6)
- 47 69 1D 08
2E - set byte
- DF 3F 02 02
- 00
48 - Display stat mod animation
- 01
- 08
- 09
2E - set byte
- DE 3F 02 02
- 93
89 - change stats
- C1 (user, can't fail)
- ED 84 1D 08 (does this matter?)
13 - print from table
- 7C E5 3F 08
12 - wait for text
- 40 00
28 - jump
- 47 69 1D 08


Also, a bit of cautionary advice- if any of the effects you're inserting are important enough that you want the AI to use them in battle, make sure they replace appropriate effects. For example, there was a Japanese hack that replaced Nightmare's somewhat useless effect with one similar to Relic Song (10% chance to inflict Sleep), which is fun for the player, but was useless for the AI because it would only use the attack if either it was their only option or the foe was already asleep. I currently have no idea how the AI treats effects in unused slots, so be careful with those.
__________________

Yet Another Fire Red Hack

Physical/Special Split

Last edited by DoesntKnowHowToPlay; April 11th, 2013 at 08:56 PM.
Reply With Quote