• 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?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
DizzyEgg
Reaction score
482

Profile posts Latest activity Postings About

  • Sang nha Ba Kien an va xong, Chi Pheo xach mot can ruou 20 lit "chien loi pham" lac le let ve vuon chuoi
    dia chi hoc ke toan
    lop hoc ke toan thuc hanh tai hai duong
    dich vu ke toan thue tron goi
    trung tam ke toan tai dong nai
    khoa hoc ke toan thuc hanh thuc te
    dich vu bao cao tai chinh tin
    http://trungtamdaotaokthn.wordpress.com/
    - Me cha cai lao Ba Kien, ruou nang the nay ma lao ay keu ruou nhe, dinh lam minh say chet day!

    Roi han bap be danh van:
    Sang nha Ba Kien an va xong, Chi Pheo xach mot can ruou 20 lit "chien loi pham" lac le let ve vuon chuoi
    dia chi hoc ke toan
    lop hoc ke toan thuc hanh tai hai duong
    dich vu ke toan thue tron goi
    trung tam ke toan tai dong nai
    khoa hoc ke toan thuc hanh thuc te
    dich vu bao cao tai chinh tin
    http://trungtamdaotaokthn.wordpress.com/
    - Me cha cai lao Ba Kien, ruou nang the nay ma lao ay keu ruou nhe, dinh lam minh say chet day!

    Roi han bap be danh van:
    how exactly does it work, then?
    in his, he just basically calls the Script Pusher (is that what mov pc, r2 does? load the script pusher into pc, which then executes it?) loads the offset of the battle script pointer (in RAM) into r1, loads the offset of the Weakness Policy Battle Script into r0, storing r0 into r1. he then just overwrites 0x2023D68 (held_item) with the value from the held item in battle_data_t, which was previously loaded into r7.

    so, um
    i guess i'm just asking how the battle script pusher works, then
    like, is r1 sort of then a parameter or...?

    EDIT: well, obviously, but i guess um
    idk what i'm trying to say
    does the battle script pusher just execute what is inside the battle script pointer?

    EDIT2: ok, i've been screwing around with it for like years with nothing coming to fruition. i'm tempted to make my battle script something more complicated than simply "6A 00 3C" to let it handle a few more things and delete the portions of my ASM that handle the same things, but as long as i can't load the battle script it will be out-of-reach atm
    how does one then use the battle script pusher?
    kds used it like so:
    SetPolicyScript:
    ldr r2, .ScriptPusher
    bl SubRoutCall
    ldr r1, .ScriptPointer
    ldr r0, .WeaknessPolicyBS
    str r0, [r1]
    ldr r1, .ItemBuffer
    strh r7, [r1]
    ldr r2, .ReturnPass
    SubRoutCall:
    mov pc, r2
    sorry if i'm being needy ahaha
    T
    I will do the Quick Claw and Custap Berry script.
    T
    My computer internet connection just broke after saying hello. So can't talk right now (using my phone to send this VM).
    T
    Good. I noticed the bug in the color change has nothing to do with my hook. You forgot to store 0 in [sp] in your in hook in cmd48z
    T
    It doesn't mess up. The hook rotates the stack section consisting of lr, r4 in the hook and the 4th argument. To the inner function the fourth argument will appear as [sp, #0x0] only. I'll explain this in detail on IRC.
    T
    The absorb abilities work though. I'll see what is the problem.
    T
    Great. What are you going to do next?
    I finiahed magician, stench, synchronize and poison touch
  • Loading…
  • Loading…
  • Loading…
Back
Top