The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > kj3400
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices


Conversation Between kj3400 and karatekid552
Showing Visitor Messages 1 to 10 of 11
  1. karatekid552
    April 10th, 2013 09:11 AM
    karatekid552
    Yeah, your scripts look good:p You even remembered the +1 for the ASM:D

  2. kj3400
    April 10th, 2013 08:55 AM
    kj3400
    ok, I'll redo the routine. I should have known it wasn't my scripting, I think I do pretty good scripting

  3. karatekid552
    April 9th, 2013 03:35 PM
    karatekid552
    Here is what you missed:

    .align 2
    .thumb
    main:
    push {r0,r1,LR}
    ldr r0, status_byte
    sub r1, r1, r1 or lsl r1, #0x20 (i don't know why you were using r0 which already has data in it, just subtract from itself.)
    strb r0, [r1] (we have to change the byte at the offset, right?:p)
    pop {r0,r1,PC}
    .align 2
    status_byte:
    .word 0x020242D4

    I don't know if you read my section in the ASM tut about using the LR and PC to return to a script after completion. That part is on me, I forgot to tell you. Since the routine did not know to return, it got stuck, tried to run the pointers as code and froze the game.

  4. kj3400
    April 9th, 2013 03:14 PM
    kj3400
    sorry that was extremely long...

  5. kj3400
    April 9th, 2013 03:14 PM
    kj3400
    ok....

    these are the first two scripts:

    #dynamic 0x800000
    #org @start
    givepokemon 0x196 0x32 0x0 0x0 0x0 0x0
    msgbox @confirm 0x6
    fanfare 0x10C
    setflag 0x828
    hidesprite 0x01
    setflag 0x28
    end
    #org @confirm
    = You got Rayquaza...somehow.

    #dynamic 0x800000
    #org @start
    setvar 0x8004 0x1
    setvar 0x8005 0x5
    special 0x64
    msgbox @ohnoes 0x6
    hidesprite 0x2
    setflag 0x30
    end
    #org @ohnoes
    = Oh no! Rayquaza was frozen! No\nclue how though...

    and the script to heal it:

    #dynamic 0x800000
    #org @start
    callasm 0x071D831
    msgbox @yay 0x6
    hidesprite 0x3
    setflag 0x29
    end
    #org @yay
    = Looks like Rayquaza was unfrozen.


    here's the routine:

    .align 2
    .thumb
    main:
    push {r0, r1}
    ldr r0, status_byte
    sub r1, r1, r0
    pop {r0-r1}
    .align 2
    status_byte:
    .word 0x020242D4

  6. karatekid552
    April 8th, 2013 04:12 PM
    karatekid552
    It shouldn't reset the game even without that. Can I see the script and the routine?

  7. kj3400
    April 8th, 2013 09:12 AM
    kj3400
    It, err....reset the game. I think maybe because there was no status to heal, I'll have to look at my script again.

  8. karatekid552
    April 5th, 2013 07:07 AM
    karatekid552
    So, howd it go?

  9. karatekid552
    April 1st, 2013 03:41 PM
    karatekid552
    Okay.

  10. kj3400
    April 1st, 2013 10:25 AM
    kj3400
    I haven't had time to put it in the game, but I will try it tonight and tell you what happens.


All times are UTC -8. The time now is 01:07 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.