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

Script Requests/Sharing/Discussion

Status
Not open for further replies.

Hyunbin

w00t!~
166
Posts
17
Years
  • this is the first script in my game
    but every time i compile it to the rom
    i can't open it in elitemap (not a supported rom) or advance map (I/O error 87)
    butttt i can still play it in vba
    either way i know it's screwed up
    can someone tell me what's wrong with this
    i'm having trouble with one #org thing going to the next, so maybe that's it?

    it's supposed to:
    01 joy calls to player
    02 player walks three tiles down and four tiles left
    03 joy talks again

    Spoiler:
     

    Irish Witch

    Office Jenny
    147
    Posts
    17
    Years
  • Hyunbin said:
    this is the first script in my game
    but every time i compile it to the rom
    i can't open it in elitemap (not a supported rom) or advance map (I/O error 87)
    butttt i can still play it in vba
    either way i know it's screwed up
    can someone tell me what's wrong with this
    i'm having trouble with one #org thing going to the next, so maybe that's it?

    it's supposed to:
    01 joy calls to player
    02 player walks three tiles down and four tiles left
    03 joy talks again

    The script looks sorta ok (I don't get why you're using goto's so much in it.) but what your describing sounds like one of the scripts you insterted stuffed the rom up by writing to the wrong location.
    This is often caused by mistyping 0x as ox on one of your offsets.
     
    Last edited by a moderator:

    zel 2.0

    Gold Remaker
    1,955
    Posts
    17
    Years
  • Can I have a sample of an applymovement script for Firered? Not a full script, just for where the movement data is stored. I have an applymovement script already but I don't know how to insert the actual movements that should be carried out. Any help would be appreciated.

    Just look at the answer for the next post... It calls the applymovement command, which has the movement stored at another #org, the "movement orgs" are always finished with a #raw FE, instead of the usual "end"

    this is the first script in my game
    but every time i compile it to the rom
    i can't open it in elitemap (not a supported rom) or advance map (I/O error 87)
    butttt i can still play it in vba
    either way i know it's screwed up
    can someone tell me what's wrong with this
    i'm having trouble with one #org thing going to the next, so maybe that's it?

    it's supposed to:
    01 joy calls to player
    02 player walks three tiles down and four tiles left
    03 joy talks again

    Spoiler:

    Well, first, just to have the script fixed (with all the "end" you've been missing, I suppose the compiler would not understand that script correctly) Anyway, the script was almost ok...

    Spoiler:


    That fixes the script... But the deal with both EMap & AMap is related (I think) with the rom not having a name recognizable by the inis in EMap and AMap... By name I mean the name in the hex of the rom...

    image1lj5.png


    (I think other user may explain better... Christos? :D)
     

    Hyunbin

    w00t!~
    166
    Posts
    17
    Years
  • i think you're right
    after i compile it, when i go to the hex editor i don't see the LEAFGREEN part anymore o_O
    weird.... i guess it compiles to 0x000000.. even though it says it compiled to 799800 like in the script

    (I don't get why you're using goto's so much in it.)

    well, i thought that one offset wouldn't flow into the next if i didn't put it in [just a beginner ^^;]
    so it's alright to leave them out in this script?
    thanks to both u and zel for help btw
     
    Last edited:

    Irish Witch

    Office Jenny
    147
    Posts
    17
    Years
  • It may have been messed up by a past script, not necessarily this script.

    Also 1: Applymorement 0xff does not refer to the character executing the script, and there are ways to wait till movements are over so you could just have written it like this:

    Spoiler:


    2: if nurse joy doesn't have a 'movement type' set in elitemap than you didn't need to use lock or release. (doesn't really matter that you did)
    3: I used pause here but you could also use the command wait 0 (or pausemove 0.. Dependant on the version of scripted) to wait for movement scripts!
     
    91
    Posts
    17
    Years
    • Seen Nov 1, 2010
    I've heard (and have seen) about the command 'pokemart', one question, where can you see which offset is which list, and if you can see them, how to edit them? Thanks.
     
    6,355
    Posts
    18
    Years
    • Seen Apr 16, 2020
    Irish witch, posting links to pornographic content is against the rules.
    You're getting a warning, please don't do it again.
     

    Irish Witch

    Office Jenny
    147
    Posts
    17
    Years
  • Sorry. I figured putting the massive warning would be nuff.
    If anybody wants to see the picture my avatar is cut from that - I'm not allowed to post then they can ask me by PM or something.

    I'm not a rule-braker by nature Christos, but I am a security guard by trade so you neen't worry, I'll behave!
     
    91
    Posts
    17
    Years
    • Seen Nov 1, 2010
    Hello, does anybody knows how to replace the prof oak script with your own? I mean, so that you still get the 'pokémon' option when you press (VBA; enter) (GBA; start) and also the pokédex. Thanks.
     
    6,355
    Posts
    18
    Years
    • Seen Apr 16, 2020
    Hello, does anybody knows how to replace the prof oak script with your own? I mean, so that you still get the 'pokémon' option when you press (VBA; enter) (GBA; start) and also the pokédex. Thanks.

    You can replace the script by compiling a script with the same offset as Oak's script. And to keep the party and pokédex menus add their flags in the new script you're going to use.
     

    Wuggles

    Pokémon Omega
    101
    Posts
    17
    Years
    • Seen Nov 4, 2013
    lol, me neither.. When I open it it loads some mins. but after it ends it stops and hang, lol...
     

    zel 2.0

    Gold Remaker
    1,955
    Posts
    17
    Years
  • The problem is that i can't open the professor oak script. xD
    lol, me neither.. When I open it it loads some mins. but after it ends it stops and hang, lol...

    Usually, if a script doesn't opens (or opens but it seems to be empty) with Elite Map's Scripted, you could always see the offset Elite Map says, close Elite Map, then open Scripted directly, use the "..." button, pick ".gba" instead of ".rbc", now look for your rom and open it, and then modify the 000000 it says for your offset.

    Chances are that you'll be able to see the script, or maybe the script is too long, or has some kind of problem, and it'll keep on loading more and more stuff (that's why you can't see'em in Elite Map). If you have patience...
     

    Amarillo Del Bosque Verde

    The not so gentle giant.......
    16
    Posts
    17
    Years
  • Scripting problem...

    Im not a bad scripter, ive scripted quite a bit of stuff but i cant figure out how to stop the intro scene (were you jump out of the truck and have to set the clock) in r/s/e, how do i fix that? thanks
     
    16
    Posts
    17
    Years
    • Seen Jun 20, 2007
    Usually, if a script doesn't opens (or opens but it seems to be empty) with Elite Map's Scripted, you could always see the offset Elite Map says, close Elite Map, then open Scripted directly, use the "..." button, pick ".gba" instead of ".rbc", now look for your rom and open it, and then modify the 000000 it says for your offset.

    Chances are that you'll be able to see the script, or maybe the script is too long, or has some kind of problem, and it'll keep on loading more and more stuff (that's why you can't see'em in Elite Map). If you have patience...

    I've been playing a little since I started looking at this thread and I found something else. Sometimes the reason scripted crashes seams to be because the script is using a command that scripted doesn't know. It causes a couple of #Raws to be displayed, interprets the next byte as a command when it shouldn't be and then starts trying to decode sections of rom as text or something when they shouldn't be.. I think Aunty K's program actually decodes more scripts then scripted but I can't figure out how to work the decompiler! :( :( :(

    Oh well, not my business!
    *Washes me hand of the thing*

    Im not a bad scripter, ive scripted quite a bit of stuff but i cant figure out how to stop the intro scene (were you jump out of the truck and have to set the clock) in r/s/e, how do i fix that? thanks

    Many people are trying to figure this out... Look further back in this thread for infor on what they know so far!
     

    duncanrcook

    Excellent!
    35
    Posts
    17
    Years
    • Age 30
    • Seen Sep 20, 2012
    does anyone know the script offset of the truck part in the begining of emerald?

    i found something at offset 6cdf88
    what is it?
     
    Last edited:

    Dark_porygon

    Banned
    53
    Posts
    17
    Years
    • Seen Apr 22, 2014
    can someone give me a script so that a guy says you cant pass but when you've showed him the second badge he walks away so you can pass you can? (he just need to walk 1 tile down)
     

    duncanrcook

    Excellent!
    35
    Posts
    17
    Years
    • Age 30
    • Seen Sep 20, 2012
    in a script how do you make it say pokemon with the accent thingy and the names of the hero and the rival
     
    Status
    Not open for further replies.
    Back
    Top