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

[Archive] Script help thread

Status
Not open for further replies.

Surf

...
  • 1,196
    Posts
    15
    Years
    • Age 29
    • Rust
    • Seen Jul 31, 2011
    Hey guys whats wrong with this
    '-----------------------
    #org 0x2E50D7
    lock
    faceplayer
    checkflag 0x455
    if 0x1 goto 0x82D8A0C
    if 0x0 goto 0x82D8A13
    end

    '-----------------------
    #org 0x2D8A0C
    msgbox 0x82DD0F8 '"I can't let you through"
    release
    end

    '-----------------------
    #org 0x2D8A13
    msgbox 0x82D8A21 '"The Prof will see you now."
    hidesprite 0xC3
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x2DD0F8
    = I can't let you through

    #org 0x2D8A21
    = The Prof will see you now.


    When i talk to the lady nothing happens
     
  • 857
    Posts
    15
    Years
    Hey guys whats wrong with this
    '-----------------------
    #org 0x2E50D7
    lock
    faceplayer
    checkflag 0x455
    if 0x1 goto 0x82D8A0C
    if 0x0 goto 0x82D8A13
    end

    '-----------------------
    #org 0x2D8A0C
    msgbox 0x82DD0F8 '"I can't let you through"
    callstd 0x6
    release
    end

    '-----------------------
    #org 0x2D8A13
    msgbox 0x82D8A21 '"The Prof will see you now."
    callstd 0x6
    hidesprite 0xC3
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x2DD0F8
    = I can't let you through

    #org 0x2D8A21
    = The Prof will see you now.


    When i talk to the lady nothing happens
    changes in bold.(you forgot callstd...)
    Also, I recommend adding a fadescreen when the person disappears.
     

    Surf

    ...
  • 1,196
    Posts
    15
    Years
    • Age 29
    • Rust
    • Seen Jul 31, 2011
    Whats wrong with this

    '-----------------------
    #org 0x800D00
    msgbox 0x8750000 '"Gah more rain!!!"
    callstd 0x6
    setweather 0x5
    doweather
    end


    '---------
    ' Strings
    '---------
    #org 0x750000
    = Gah more rain!!!


    when i step on the tile nothing happens
     

    Thrace

    @tion
  • 1,048
    Posts
    17
    Years
    • Seen Oct 2, 2016
    Whats wrong with this

    '-----------------------
    #org 0x800D00
    msgbox 0x8750000 '"Gah more rain!!!"
    callstd 0x6
    setweather 0x5
    doweather
    end


    '---------
    ' Strings
    '---------
    #org 0x750000
    = Gah more rain!!!


    when i step on the tile nothing happens
    On the script tile in Advance Map you must set the var number to 4052 and the first unknown to 0003.
     

    2Scribble

    I post therefor I am
  • 47
    Posts
    17
    Years
    My brother and four little sisters were arguing a few nights ago about which pokemon game they liked the most. Eventually it came down to what you could CATCH and I was inspired to alter Pokemon Emerald (the going favorite) to include all 386 pokemon. So far I've had no trouble getting the pokemon to show up - gotta love AdvanceMap - but the blasted nationaldex data won't show up!

    So I go and do a little MORE research and it turns out that without the National Dex the nationaldex data will NEVER show up (I knew this about FR and LG - having been a long-time player, but I'd never bothered with Emerald before now) so I decide to try my hand at scripting.

    I've found pleanty of samples and codes to use to make the national dex turn up - but no matter how had I try it won't work. So I decided to make my job SIMPLER by replace a line of text for one character - namely the scientist in Birches lab - so that he gives me the national dex right off. Unfortunately, despite opening it from Advancemap and then attempting to edit it with XSE, no matter what changes I make - it won't let me compile the script.

    The tutorials all say, that all I need to do, is create my script, then open the rom file and then compile it - but so far, no matter what I try, it won't make the freakin changes! If I could get Birch to give me the national dex right off I'd settle for that... if I could get that stupid scientist to give me the national dex I'd be a happy camper - HELL, I'd even take it from May. I'm not experienced enough to make my own script but since it won't even save my edits I'm at my whits end...

    Could anyone here help?
     
    Last edited:

    Thrace

    @tion
  • 1,048
    Posts
    17
    Years
    • Seen Oct 2, 2016
    My brother and four little sisters were arguing a few nights ago about which pokemon game they liked the most. Eventually it came down to what you could CATCH and I was inspired to alter Pokemon Emerald (the going favorite) to include all 386 pokemon. So far I've had no trouble getting the pokemon to show up - gotta love AdvanceMap - but the blasted nationaldex data won't show up!

    So I go and do a little MORE research and it turns out that without the National Dex the nationaldex data will NEVER show up (I knew this about FR and LG - having been a long-time player, but I'd never bothered with Emerald before now) so I decide to try my hand at scripting.

    I've found pleanty of samples and codes to use to make the national dex turn up - but no matter how had I try it won't work. So I decided to make my job SIMPLER by replace a line of text for one character - namely the scientist in Birches lab - so that he gives me the national dex right off. Unfortunately, despite opening it from Advancemap and then attempting to edit it with XSE, no matter what changes I make - it won't let me compile the script.

    The tutorials all say, that all I need to do, is create my script, then open the rom file and then compile it - but so far, no matter what I try, it won't make the freakin changes! If I could get Birch to give me the national dex right off I'd settle for that... if I could get that stupid scientist to give me the national dex I'd be a happy camper - HELL, I'd even take it from May. I'm not experienced enough to make my own script but since it won't even save my edits I'm at my whits end...

    Could anyone here help?
    Theres already a hack for this. Its called Emerald 386, use google to find it. Are you able to compile, does it come up with the log or is it coming up with an error message?
     

    2Scribble

    I post therefor I am
  • 47
    Posts
    17
    Years
    I know there already is (technically speaking there are four '368' hacks for Emerald - none have what I want) I was hoping to learn how to do this myself as I've been stalking around this forum for close onto five years now and have gained a smattering of knowledge that I'd like to put to use.

    There is no error message and it comes up with a log
     

    Thrace

    @tion
  • 1,048
    Posts
    17
    Years
    • Seen Oct 2, 2016
    I know there already is (technically speaking there are four '368' hacks for Emerald - none have what I want) I was hoping to learn how to do this myself as I've been stalking around this forum for close onto five years now and have gained a smattering of knowledge that I'd like to put to use.

    There is no error message and it comes up with a log
    The professors script is quite large and there is a possibility that editing it could cause problems in the game. Why not add an NPC? It'd be a really simple script:

    Spoiler:


    If you really want to edit it make sure you change the offset of the script you are adding special 0x1f3 to. For example if you had

    #org 0x80800000
    ...
    ....
    end

    you would need to make it

    #dynamic 0x800000

    #org @new
    ...
    special 0x1f3
    ....
    end
     

    Surf

    ...
  • 1,196
    Posts
    15
    Years
    • Age 29
    • Rust
    • Seen Jul 31, 2011
    I have problems with this

    '-----------------------
    #org 0x2E50D7
    lock
    faceplayer
    checkflag 0x455
    if 0x1 goto 0x82D8A0C
    if 0x0 goto 0x82D8A13
    end

    '-----------------------
    #org 0x2D8A0C
    msgbox 0x82DD0F8 '"I can't let you through"
    callstd 0x3
    release
    end

    '-----------------------
    #org 0x2D8A13
    msgbox 0x82D8A21 '"The Prof will see you now."
    callstd 0x3
    fadescreen 0x1
    fadescreen 0x0
    hidesprite 0xCEC3
    setflag 0x456
    release
    end

    '---------
    ' Strings
    '---------
    #org 0x2DD0F8
    = I can't let you through

    #org 0x2D8A21
    = The Prof will see you now.

    but when i compile it it goes like this

    '-----------------------
    #org 0x2E50D7
    lock
    faceplayer
    checkflag 0x455
    if 0x1 goto 0x82D8A0C
    if 0x0 goto 0x82D8A13
    end

    '-----------------------
    #org 0x2D8A0C
    msgbox 0x82DD0F8 '"I can't let you through"
    callstd 0xF
    nop
    compare 0x2D8A 0x908
    return

    '-----------------------
    #org 0x2D8A13
    msgbox 0x82D8A21 '"The Prof will see you now."
    callstd 0x3
    fadescreen 0x1
    fadescreen 0x0
    hidesprite 0xCEC3


    '---------
    ' Strings
    '---------
    #org 0x2DD0F8
    = I can't let you through

    #org 0x2D8A21
    = The Prof will see you now.

    please help asap
     

    2Scribble

    I post therefor I am
  • 47
    Posts
    17
    Years
    I'll give it a try, creating scrips hasn't been my problem - its getting them to SAVE to the rom that's been difficult.

    I've done it just like I was told every time.

    1. Make sure the script you want to compile is open in XSE.

    2. Go into the "File" menu and click "Open...", select the ROM you want to compile the script into.

    3. Then click the Compile button , and that's it. Your script is comiled into your ROM.

    But - when I start the rom or look at it from AdvanceMaps - no changes have been made
     

    Thrace

    @tion
  • 1,048
    Posts
    17
    Years
    • Seen Oct 2, 2016
    I have problems with this

    '-----------------------
    #org 0x2E50D7
    lock
    faceplayer
    checkflag 0x455
    if 0x1 goto 0x82D8A0C
    checkflag 0x455
    if 0x0 goto 0x82D8A13
    end

    '-----------------------
    #org 0x2D8A0C
    msgbox 0x82DD0F8 '"I can't let you through"
    callstd 0x6
    release
    end

    '-----------------------
    #org 0x2D8A13
    msgbox 0x82D8A21 '"The Prof will see you now."
    callstd 0x6
    fadescreen 0x1
    fadescreen 0x0
    hidesprite 0xCEC3
    setflag 0x456
    release
    end

    '---------
    ' Strings
    '---------
    #org 0x2DD0F8
    = I can't let you through

    #org 0x2D8A21
    = The Prof will see you now.

    but when i compile it it goes like this

    '-----------------------
    #org 0x2E50D7
    lock
    faceplayer
    checkflag 0x455
    if 0x1 goto 0x82D8A0C
    if 0x0 goto 0x82D8A13
    end

    '-----------------------
    #org 0x2D8A0C
    msgbox 0x82DD0F8 '"I can't let you through"
    callstd 0xF
    nop
    compare 0x2D8A 0x908
    return

    '-----------------------
    #org 0x2D8A13
    msgbox 0x82D8A21 '"The Prof will see you now."
    callstd 0x3
    fadescreen 0x1
    fadescreen 0x0
    hidesprite 0xCEC3


    '---------
    ' Strings
    '---------
    #org 0x2DD0F8
    = I can't let you through

    #org 0x2D8A21
    = The Prof will see you now.

    please help asap
    You can't edit it directly. You need to change those static offsets in to dynamic ones. I've made some changes to the script as well.

    I'll give it a try, creating scrips hasn't been my problem - its getting them to SAVE to the rom that's been difficult.

    I've done it just like I was told every time.

    1. Make sure the script you want to compile is open in XSE.

    2. Go into the "File" menu and click "Open...", select the ROM you want to compile the script into.

    3. Then click the Compile button , and that's it. Your script is comiled into your ROM.

    But - when I start the rom or look at it from AdvanceMaps - no changes have been made
    Well, you have to change the script offset for that person too. If you've done that, then the problem could be that you're rom is set to read-only.
     
  • 860
    Posts
    17
    Years
    Every script that I compile comes out like this:
    [Archive] Script help thread

    Does anyone know how to fix it?
    I really need an answer to this because I really need it fixed for my hack...:(
     
  • 219
    Posts
    16
    Years
    I really need an answer to this because I really need it fixed for my hack...:(
    If your XP isn't an English one,try this before you use any script programs:
    1.open Control Panel
    2.go to the Language and Regional Options
    3.set them to English(US)
    4.maybe you should restart your XP
    5.now,start your scripting.
    By the way,you'd better turn off all the rest programs.


    This is what I did when I got that problem.
     
  • 860
    Posts
    17
    Years
    You tried it like this?

    #org $begin
    message $sign
    boxset 0x3
    end

    #org $sign
    $sign 1 = \v\h01's House
    It's not because of the scripts because I tried it in every way... But thanks anyway..

    If your XP isn't an English one,try this before you use any script programs:
    1.open Control Panel
    2.go to the Language and Regional Options
    3.set them to English(US)
    4.maybe you should restart your XP
    5.now,start your scripting.
    By the way,you'd better turn off all the rest programs.


    This is what I did when I got that problem.
    But then my clock will stand on english and I don't only use this computer so the time can't be in english :( (Isn't there any other way to fix it???)
     
    Status
    Not open for further replies.
    Back
    Top