• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
L
Reaction score
45

Profile posts Latest activity Postings About

  • I'm not too sure what to do here, I'm afraid. Have you checked to make sure it's not the battle script itself or something like that?
    Hi! Sorry I took so long!

    What exactly is the routine supposed to do? (In other words, where are you hooking from?)

    I checked Mr. Doll Steak's routine for Snow Warning that I had. It said this:


    ldr r0, .SnowWarningBS /*909AD0 in MrDS*/
    bl PlayScript
    ldr r0, .RAMOffset
    mov r1, r10
    strb r1, [r0, #0x17]
    bl OtherBL

    EndScript:
    ldr r4, .EndScriptBL
    bx r4

    PlayScript:
    ldr r2, .PlayScriptBL
    bx r2

    OtherBL:
    ldr r0, .OtherBL
    bx r0

    .align 2
    .SnowWarningBS: .word 0x08190584
    .RAMOffset: .word 0x02023FC4
    .EndScriptBL: .word 0x0801BBAB
    .PlayScriptBL: .word 0x0801BC25
    .OtherBL: .word 0x0801BB5B


    But ChaCha Dinosaur's Flame Orb routine sets it up like this:

    ldr r0, =0x02023D6E
    mov r2, #0x0
    strb r2, [r0]
    ldr r0, =0x08EEEEEE
    ldr r2, =0x08018C05
    bx r2

    Exit:
    ldr r2, =0x08018C13
    bx r2

    I tried looking this up too and the best I got was a thread conversation that went like this:

    A: How do you call a Battle Script from a routine?
    B: You use the Battle Script loader like OMG DUH
    A: Okay how do you do that?
    B: *crickets*

    So yeah, it wasn't very helpful.
    I would assume it's mostly in the damage calculation, yes (calculatedamage isn't an actual command, it's shorthand in BSP for several of the damage calculation commands), but I've also seen it in datahpupdate and graphicalhpupdate. I recommend patching a game with the Physical/Special split patch and see what bytes it modifies.
    There isn't one, unfortunately. If you want to change the physicality of a move, you'll need to hook a ton of routines in.
  • Loading…
  • Loading…
  • Loading…
Back
Top