In FR, the battle script pointer table is at 0x1D6926. If you want to add a new move effect, you'll need to repoint one of the pointers there to your new battle script, and make sure your new moves are using that effect. There are a number of "holes" in the table, such as at #12 (which would be, going by the pattern, an effect that gives +1 to the user's speed), but if you use those the AI probably won't interpret them correctly (or at all).
Also, thank you very much for that very helpful post Jambo. I wouldn't have been able to find the table at all without your attack script.
i think in this script it also need something to do when the opponent use "protect"
Also, thank you very much for that very helpful post Jambo. I wouldn't have been able to find the table at all without your attack script.
Haha, this is amazing.
It's like playing legos with attacks.
But is it possible to expand the battle script pointer table as well? For instance, it only goes up to 213 right now, surely it can go to 255?
Where's a compilation of your findings? Just asking.
But anyways, if I'm not mistaken, there's a lot of differences between the games, right?I'm sorry if I'm so stupid sometimes.Spoiler:Oh and btw in Emerald 0xC is "set-transparency" or something. It takes two parameters, usually 0xC and 0x8, as front-transparency (the yellow part), and the back-transparency (the black part). How the yellow-and-black got there, however, I don't know.
Also, 0x8 is "end", and takes no arguments.
Many apologies, I'm only 15.
I believe Overheat lowers your Sp. Atk. by two levels, you could probably look over on that.OK, I'm either crazy, or just not seeing it...there aren't any existing effect bytes that lower the users stats? That seems crazy...surely there was one move out of the 354 introduced that would lower the users something >.>
If I can't lower my own stats, It seems like alot of Gen IV and Gen V moves are undoable!
Edit: I'm trying to reproduce Hammer Arm, so it needs to do damage as well...It's this "lowering stats" bit that's making me hit a road block.
2E 85 3E 02 02 E6 15
about the "E6"
i think the highest bit means whether the effect depends on the effect accuracy
1 means the effect always occurs,
0 means the effect only has x%(effect accuracy) chance to occur.
so "E6" always causes recoil , while "66" dpends on the effect accuracy
Is it possible to make new command for battle script? For example attack and lowering user's defense and special defense by one stage (like close combat)
Hmm, that could be a really good shout. The game definitely does check this highest bit on reading it to execute effects.
It's possible, but pointless. I explicitly explained how to use existing commands in a combination to produce effects like close combat. For creating NEW effects, I wrote a "callasm" command.
Hm...Have you tried looking into the script for AincentPower? Although that raises your stats, not decrease it, I think it could be the same process for the opposite...I tried to make a close combat that works, but it kept freezing up after the animation for the defense drop. I guess it's just bad programming...but I have a small annoyance. I wrote the following script for Hammer Arm:
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 2E 85 3E 02 02 E6 15 2E 85 3E 02 02 03 15 28 47 69 1D 08
And while the speed drop does occur, it doesn't say so. How do I make it say that _____s speed dropped?
I know this seems like its turning into a question thread, but can someone maybe explain how to make multiple stats drop without freezing up?
Could you share your code? and i'm curious what effects you did?For creating NEW effects, I wrote a "callasm" command.