• 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.

Research: Special Message codes..

cooley

///Keepin' it simple
1,148
Posts
17
Years
  • How can I change font once and all text in game will change?
    What you're talking about is not a message code
    You would have to edit the font, I don't know how, but there is a patch on PHO to change RUBY font into FireRed, and a patch to change Ruby Font into Diamond, etc.
     

    Ninja Caterpie

    AAAAAAAAAAAAA
    5,979
    Posts
    16
    Years
  • Hey, nice tut Cooley...You got more things to be credited for... >.>
    Anyway, is there a way to show an arrow?
    Like -> or <-
    Can you finish it? Or are you too lazy? Or busy? xD
     

    cooley

    ///Keepin' it simple
    1,148
    Posts
    17
    Years
  • Hey, nice tut Cooley...You got more things to be credited for... >.>
    Anyway, is there a way to show an arrow?
    Like -> or <-
    Can you finish it? Or are you too lazy? Or busy? xD
    It depends if you're using XSE or not...
    If you are then just write [R] for the right arrow, for the up arrow, etc. And it has to be in caps.

    If you're using anything else, I suggest you decompile it with something else, and see how they do it in-game...
     

    Ninja Caterpie

    AAAAAAAAAAAAA
    5,979
    Posts
    16
    Years
  • Oh? Awesome!
    ...Can it be done on A Text cos I edit texts with it. Easier cos of auto-repoint and stuff telling size of...etc. I screwed up half the signs in Pallet when I script edited. xD
     

    cooley

    ///Keepin' it simple
    1,148
    Posts
    17
    Years
  • Oh? Awesome!
    ...Can it be done on A Text cos I edit texts with it. Easier cos of auto-repoint and stuff telling size of...etc. I screwed up half the signs in Pallet when I script edited. xD
    Well yes, and you can always decompile the script, and use one of XSE's not appreciated functions...

    Which is mixed offsets. You decompile a script:


    Code:
    '---------------
    #org 0x1637B8
    special 0x187
    compare LASTRESULT 0x2
    if 0x1 goto 0x81A7AE0
    special 0x188
    lock
    faceplayer
    startwildbattle 0x91 0x32 0x0
    checksound
    cry 0x91 0x2
    msgbox2 0x81A6448 '"Gyaoo!"
    waitmsgbox
    waitcry
    pause 0xA
    playsong 0x156 0x0
    waitkeypress
    setflag 0x807
    special 0x138
    waitstate
    clearflag 0x807
    special2 LASTRESULT 0xB4
    compare LASTRESULT 0x1
    if 0x1 goto 0x816381B
    compare LASTRESULT 0x4
    if 0x1 goto 0x8163824
    compare LASTRESULT 0x5
    if 0x1 goto 0x8163824
    setflag 0x2BF
    release
    end
    
    '---------------
    #org 0x1A7AE0
    release
    end
    
    '---------------
    #org 0x16381B
    setflag 0x2BF
    goto 0x81A922D
    end
    
    '---------------
    #org 0x163824
    setvar 0x8004 0x91
    goto 0x81A9236
    end
    
    '---------------
    #org 0x1A922D
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    release
    end
    
    '---------------
    #org 0x1A9236
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    bufferpokemon 0x0 0x8004
    msgbox 0x81A63C4 '"The [buffer1] flew away!"
    callstd 0x4
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x1A6448
    = Gyaoo!
    
    #org 0x1A63C4
    = The [buffer1] flew away!
    Find the offset you want to repoint, or add more text to.

    Code:
    [B]#dynamic 0x800000 [/B]'Add a dynamic 0xOffset, so XSE can search from there
    '---------------
    #org 0x1637B8
    special 0x187
    compare LASTRESULT 0x2
    if 0x1 goto 0x81A7AE0
    special 0x188
    lock
    faceplayer
    startwildbattle 0x91 0x32 0x0
    checksound
    cry 0x91 0x2
    msgbox2 [B]0x81A6448[/B] - @Pokemon              'Make the offset Dynamic
    waitmsgbox
    waitcry
    pause 0xA
    playsong 0x156 0x0
    waitkeypress
    setflag 0x807
    special 0x138
    waitstate
    clearflag 0x807
    special2 LASTRESULT 0xB4
    compare LASTRESULT 0x1
    if 0x1 goto 0x816381B
    compare LASTRESULT 0x4
    if 0x1 goto 0x8163824
    compare LASTRESULT 0x5
    if 0x1 goto 0x8163824
    setflag 0x2BF
    release
    end
    
    '---------------
    #org 0x1A7AE0
    release
    end
    
    '---------------
    #org 0x16381B
    setflag 0x2BF
    goto 0x81A922D
    end
    
    '---------------
    #org 0x163824
    setvar 0x8004 0x91
    goto 0x81A9236
    end
    
    '---------------
    #org 0x1A922D
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    release
    end
    
    '---------------
    #org 0x1A9236
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    bufferpokemon 0x0 0x8004
    msgbox 0x81A63C4 '"The [buffer1] flew away!"
    callstd 0x4
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org [B]0x1A6448[/B] - @Pokemon
    = Gyaoo! Extra text, A-text can't do!
    
    #org 0x1A63C4
    = The [buffer1] flew away!
    Here is the result:
    Code:
    '---------------
    #org 0x1637B8
    special 0x187
    compare LASTRESULT 0x2
    if 0x1 goto 0x81A7AE0
    special 0x188
    lock
    faceplayer
    startwildbattle 0x91 0x32 0x0
    checksound
    cry 0x91 0x2
    msgbox2 [B]0x880B566 '"Gyaoo! Extra text, A-text can't do!"[/B]       'Everything else stays the same without any problems.
    waitmsgbox
    waitcry
    pause 0xA
    playsong 0x156 0x0
    waitkeypress
    setflag 0x807
    special 0x138
    waitstate
    clearflag 0x807
    special2 LASTRESULT 0xB4
    compare LASTRESULT 0x1
    if 0x1 goto 0x816381B
    compare LASTRESULT 0x4
    if 0x1 goto 0x8163824
    compare LASTRESULT 0x5
    if 0x1 goto 0x8163824
    setflag 0x2BF
    release
    end
    
    '---------------
    #org 0x1A7AE0
    release
    end
    
    '---------------
    #org 0x16381B
    setflag 0x2BF
    goto 0x81A922D
    end
    
    '---------------
    #org 0x163824
    setvar 0x8004 0x91
    goto 0x81A9236
    end
    
    '---------------
    #org 0x1A922D
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    release
    end
    
    '---------------
    #org 0x1A9236
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    bufferpokemon 0x0 0x8004
    msgbox 0x81A63C4 '"The [buffer1] flew away!"
    callstd 0x4
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org [B]0x80B566[/B]                    'Next offset available in XSE at 0x800000(I used my hack for the example, xD)
    = Gyaoo! Extra text, A-text can't do!
    
    #org 0x1A63C4
    = The [buffer1] flew away!
     
    Back
    Top