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

Facing problem with a script.

Status
Not open for further replies.

Attilas

Anime-paradise.info Owner.
19
Posts
15
Years
    • Seen Jun 1, 2011
    First of all i would like to say hi.This is my debut to rom hacking :) i've been watching tutorials today about scripting and i know this is kinda advanced for me >< oh well i tried to figure out some things and ended up here. any help would be accepted and appreciated.


    Code:
    '-----------------------
    #org 0x800315
    lock
    faceplayer
    checkflag 0x258
    if 0x1 goto 0x880032A
    msgbox 0x880038E '"[player], Oak is looking for you."
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x80032A
    checkflag 0x3200
    if 0x1 goto 0x8800384
    msgbox 0x88003AB '"I see you got your first pokemon.\n..."
    callstd 0x5
    compare LASTRESULT 0x1
    if 0x1 goto 0x8800350
    msgbox 0x88003E9 '"Alright then, see ya later!"
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x800384
    msgbox 0x8800432 '""
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x800350
    msgbox 0x8800405 '"Alright here you go!"
    callstd 0x6
    copyvar 0x8004 LASTRESULT
    givepokemon 0x9B 0x5 0x8B 0x0 0x0 0x7D
    msgbox 0x880041A '"[player] received a Cyndaquil!"
    callstd 0x6
    setflag 0x3200
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x80038E
    = [player], Oak is looking for you.
    
    #org 0x8003AB
    = I see you got your first pokemon.\nWould you like another one?
    
    #org 0x8003E9
    = Alright then, see ya later!
    
    #org 0x800432
    = 
    
    #org 0x800405
    = Alright here you go!
    
    #org 0x80041A
    = [player] received a Cyndaquil!
    well that's the code and i am trying to put a text on #org 0x800432
    i type it compile but when i finish compiling and close the editor and save the rom and reopen the editor and the script there is no text there. :/
    P.S. maybe the script is wrong somewhere.
     

    Penumbra

    Do you enjoy reading this?
    373
    Posts
    15
    Years
  • First of all i would like to say hi.This is my debut to rom hacking :) i've been watching tutorials today about scripting and i know this is kinda advanced for me >< oh well i tried to figure out some things and ended up here. any help would be accepted and appreciated.


    Code:
    '-----------------------
    #org 0x800315
    lock
    faceplayer
    checkflag 0x258
    if 0x1 goto 0x880032A
    msgbox 0x880038E '"[player], Oak is looking for you."
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x80032A
    checkflag 0x3200
    if 0x1 goto 0x8800384
    msgbox 0x88003AB '"I see you got your first pokemon.\n..."
    callstd 0x5
    compare LASTRESULT 0x1
    if 0x1 goto 0x8800350
    msgbox 0x88003E9 '"Alright then, see ya later!"
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x800384
    msgbox 0x8800432 '""
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x800350
    msgbox 0x8800405 '"Alright here you go!"
    callstd 0x6
    copyvar 0x8004 LASTRESULT
    givepokemon 0x9B 0x5 0x8B 0x0 0x0 0x7D
    msgbox 0x880041A '"[player] received a Cyndaquil!"
    callstd 0x6
    setflag 0x3200
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x80038E
    = [player], Oak is looking for you.
    
    #org 0x8003AB
    = I see you got your first pokemon.\nWould you like another one?
    
    #org 0x8003E9
    = Alright then, see ya later!
    
    #org 0x800432
    = 
    
    #org 0x800405
    = Alright here you go!
    
    #org 0x80041A
    = [player] received a Cyndaquil!
    well that's the code and i am trying to put a text on #org 0x800432
    i type it compile but when i finish compiling and close the editor and save the rom and reopen the editor and the script there is no text there. :/
    P.S. maybe the script is wrong somewhere.

    Holy mother! When did you start reading up scripting tutorials,
    last year!? O_O' I've studied tutorials countless times and it never sunk in.
    I was just reading it, but had no idea what was happening.

    Anyway, I do have some knowledge of small scripting, but I doubt your problem
    is within the scripting. maybe there's a few errors, but it's not the cause. This type
    of problem is usually related to offsets and the variable number in A-Map. This is
    XSE right? Anyway, I've encountered the same problems, and using FSF to find
    a new offset and making a new variable number worked out for me.

    Good luck and I hope I helped.
    (doubt it, since I know nothing about scripting..)
     

    PokettoMonsuta

    Cut the subsplicity
    49
    Posts
    15
    Years
  • Code:
    '-----------------------
    #org 0x800315
    lock
    faceplayer
    checkflag 0x258
    if 0x1 goto 0x880032A
    msgbox 0x880038E 0x2 '"[player], Oak is looking for you."
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x80032A
    checkflag 0x3200
    if 0x1 goto 0x8800384
    msgbox 0x88003AB 0x2 '"I see you got your first pokemon.\n..."
    callstd 0x5
    compare LASTRESULT 0x1
    if 0x1 goto 0x8800350
    msgbox 0x88003E9 0x2 '"Alright then, see ya later!"
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x800384
    msgbox 0x8800432 0x2 '""
    callstd 0x6
    release
    end
    
    '-----------------------
    #org 0x800350
    msgbox 0x8800405 '"Alright here you go!"
    callstd 0x6
    copyvar 0x8004 LASTRESULT
    givepokemon 0x9B 0x5 0x8B 0x0 0x0 0x7D
    msgbox 0x880041A 0x2'"[player] received a Cyndaquil!"
    callstd 0x6
    setflag 0x3200
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x80038E
    = [player], Oak is looking for you.
    
    #org 0x8003AB
    = I see you got your first pokemon.\nWould you like another one?
    
    #org 0x8003E9
    = Alright then, see ya later!
    
    #org 0x800432
    = 
    
    #org 0x800405
    = Alright here you go!
    
    #org 0x80041A
    = [player] received a Cyndaquil!
    Hope it works.
     

    Attilas

    Anime-paradise.info Owner.
    19
    Posts
    15
    Years
    • Seen Jun 1, 2011
    Holy mother! When did you start reading up scripting tutorials,
    last year!? O_O' I've studied tutorials countless times and it never sunk in.
    I was just reading it, but had no idea what was happening.

    Anyway, I do have some knowledge of small scripting, but I doubt your problem
    is within the scripting. maybe there's a few errors, but it's not the cause. This type
    of problem is usually related to offsets and the variable number in A-Map. This is
    XSE right? Anyway, I've encountered the same problems, and using FSF to find
    a new offset and making a new variable number worked out for me.

    Good luck and I hope I helped.
    (doubt it, since I know nothing about scripting..)

    Well is FSF a programm?and btw i am interested in joining your group.I am a scripter in studies haha i was hoping to learn some things from the more experienced ones ;)
    if possible could you send me your messenger if you have one so i can freely talk with you?Anyway if anyone can tell me what is FSF i will be glad ;) now i am going next door for some meat :) it's Easter after all here in my country bye bye guys

    edit : the script works properly in game i just can't get the final dialogue to work properly.just a blank text box appears.
    edit 2 : yes i am using XSE :P
     

    ~Poke~

    Hasn't played 5th gen yet.
    331
    Posts
    16
    Years
  • FSF is Free Space Finder by Hackmew. You can just use a Hex Editor, or in XSE use Dynamic scripts, but if you want FSF it's in Hackmew's toolbox.
     

    Attilas

    Anime-paradise.info Owner.
    19
    Posts
    15
    Years
    • Seen Jun 1, 2011
    are dynamic scripts difficult? and are they better for rom scripting?
     
    Status
    Not open for further replies.
    Back
    Top