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

destinedjagold

You can contact me in PC's discord server...
8,593
Posts
16
Years
    • Seen Dec 23, 2023
    since my question's related to scripting, I better ask it here. :P

    elow everyone...
    I wanna know how to activate, and deactivate the Latios flying around the region after beating the LEAGUE in a Ruby ROM...

    edit:
    also, is there a script command to play an attack move sound?


    Thankies~
     
    38
    Posts
    15
    Years
    • Seen Nov 11, 2008
    This is my XSE givepoke script:
    Spoiler:

    I want it to be a pokeball (like the one when your'e choosing the starter in FR/LG). But it doesn't work. The event doesn't want to start ;<

    PS. Do I have to change the ID in A-Map?
     
    5,814
    Posts
    16
    Years
    • Age 30
    • Seen May 19, 2021
    Try opening the give Pokémon scripts with XSE from a different Rom, and get an idea from what it looks like. That should help you probably. That should be similar to the script your trying to make.
     

    ZodiacDaGreat

    Working on a Mobile System
    429
    Posts
    17
    Years
  • Time said:
    since my question's related to scripting, I better ask it here.

    elow everyone...
    I wanna know how to activate, and deactivate the Latios flying around the region after beating the LEAGUE in a Ruby ROM...

    edit:
    also, is there a script command to play an attack move sound?

    Thankies~
    Well for Ruby, after you beat the Elite4 and you watch TV, it'll say that Latias/Latios has been sighted, well to solve just cancel the tv event and there's a special enabling that event.

    For the sound, use sound command, and find an attack sound and use it.
     

    Pokepal17

    More cowbell~
    1,519
    Posts
    15
    Years
  • This is my XSE givepoke script:
    Content hidden:
    Click here to view.
    #Dynamic 8000A2

    #org @start
    lock
    faceplayer
    givepokemon 0x123 0x5 0x0 0x0 0x0 0x0
    setflag 0x828
    release
    end





    I want it to be a pokeball (like the one when your'e choosing the starter in FR/LG). But it doesn't work. The event doesn't want to start ;<

    PS. Do I have to change the ID in A-Map?

    Try This

    #Dynamic 0x8000A2

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if b_true goto @pokemon
    givepokemon 0x123 0x5 0x0 0x0 0x0 0x0
    setflag 0x828
    release
    end

    #org @pokemon
    hidesprite 0x828
    end



    It should work now. Put it into a person in A-Map and change the ID to 828 (flag number)
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Well for Ruby, after you beat the Elite4 and you watch TV, it'll say that Latias/Latios has been sighted, well to solve just cancel the tv event and there's a special enabling that event.

    For the sound, use sound command, and find an attack sound and use it.

    oh...
    so it's a special, ei?
    thanks for that info, but i need to know what special it is.

    also, is the sound command used like fanfare or playsound like...
    Code:
    playsound 0x195
    nop
    nop
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014


    oh...
    so it's a special, ei?
    thanks for that info, but i need to know what special it is.

    also, is the sound command used like fanfare or playsound like...
    Code:
    playsound 0x195
    nop
    nop

    I think playsound need only one nop.
    There's also a command called sound 0x<sound number>.
    I think It doesn't need a nop.
    For the special thing, where does exactly the event "Latios flying around the region after beating the league" takes place? I know it but I need to recheck it.
     
    61
    Posts
    15
    Years
    • Seen Oct 12, 2012
    somebody can give me structure script for XSE for trainer battle?
    i would know how i can do a script for trainer battle by XSE
     

    Infamous Amos

    ALL BIDOOF IN MY WAY WILL FALL
    133
    Posts
    15
    Years
  • I have a question.
    When I did my first level script, it worked perfectly.
    I did another one, but it seems that I get weird messages.
    I followed cooley's tutorial, but it doesn't work.
    Video:
    https://www.youtube.com/watch?v=SvSI373ySSg
    Is there another way?
    Thanks.
    It seems like it tried to retrieve text from the wrong place... But I cannot tell anymore than that without seeing the script.
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    It seems like it tried to retrieve text from the wrong place... But I cannot tell anymore than that without seeing the script.

    Spoiler:

    It's a simple script.
    I made it also in XSE and didn't work(tried it on different roms to)
     

    Infamous Amos

    ALL BIDOOF IN MY WAY WILL FALL
    133
    Posts
    15
    Years
  • Spoiler:

    It's a simple script.
    I made it also in XSE and didn't work(tried it on different roms to)
    Hmmm... Worked fine for me... Although I had to change the line that said "pausemove 0" to "pause" to make it compile.

    All I can think of is that you did something funky when you loaded the script into the rom.

    Try inserting it again, but use diffrent pointers then you used last time.
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Hmmm... Worked fine for me... Although I had to change the line that said "pausemove 0" to "pause" to make it compile.

    All I can think of is that you did something funky when you loaded the script into the rom.

    Try inserting it again, but use diffrent pointers then you used last time.

    Thanks for trying.
    But it didn't work in any way. I even compiled Cooley's script.
    I will try and figure it out later.
    Thanks again.
     

    ZodiacDaGreat

    Working on a Mobile System
    429
    Posts
    17
    Years
  • Time said:
    oh...
    so it's a special, ei?
    thanks for that info, but i need to know what special it is.

    also, is the sound command used like fanfare or playsound like...
    Oh, I forgot to ask which script editor you use. Anyway, the sound command is simple:
    sound 0xSound
    The sound command can also play songs like the playsound/playsong command.

    As for the TV thingy, these should help :)
    special 0x129
    clearflag 0x85D
    setflag 0xFF
    special 0x3E
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Is bufferitem 0x<item number>, same as checkitem?
    Also, the CMD_3E or something like that. I tried it in a script, and it acted like a pause command.
    Is that it?
     
    Status
    Not open for further replies.
    Back
    Top