• 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 Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
13
Posts
14
Years
    • Seen Jan 2, 2016
    actually i made the lugia in poketronic, not XSE, i found it easier to use, should i have made it in XSE?
     

    Tropical Sunlight

    The Faltine
    3,476
    Posts
    16
    Years
  • actually i made the lugia in poketronic, not XSE, i found it easier to use, should i have made it in XSE?
    PokeTronic... I suggest you do not rely on it.
    Anyway, I'll make a basic script for your Lugia wild battle, all you need to do is compile it in XSE. To do that, you'll need some basic knowledge which can be found in the Documents and Tutorials section.

    #include stdpoke.rbh

    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    msgbox @say MSG_NORMAL
    cry PKMN_LUGIA 0x0
    waitcry
    wildbattle PKMN_LUGIA (level) 0x0 0x0 0x0 0x0
    fadescreen 0x1
    hidesprite LASTTALKED
    setflag 0x1500
    fadescreen 0x0
    release
    end

    #org @say
    = [blue_fr]LUGIA: [black_fr]Gyaoooh!

    You are using Rirered, right?
    Now, open up A-Map and go to Lugia's offset. Change it to $800000. Open it in XSE in that offset, then compile the script I wrote you. Good luck!
     
    Last edited:
    20
    Posts
    14
    Years
    • Seen Apr 12, 2010
    wildbattle

    I got this wildbattle tutorial from foullump's video and when I run away, catch it or defeat it the screen flickers twice for a second and nothing happens(yes I know that's what the code tells it to do, but it's also supposed to get rid of the character. It will even let me battle the Pokemon again. I have the person id set for 1211. Also for some reason the music gets quiet after the battle. If anybody can help I'd appreciate it. Thanks


    Spoiler:
     
    41
    Posts
    14
    Years
    • Seen Oct 4, 2016
    Hello everyone I have a problem with a script!

    '---------------
    #org 0x807D9E
    lockall
    msgbox 0x8807E12 MSG_KEEPOPEN '"Hey brother!"
    clearflag 0x1307
    showsprite 0x10
    applymovement 0x10 0x8807DE2
    waitmovement 0x0
    closeonkeypress
    trainerbattle 0x1 0x2E9 0x0 0x8807DF2 0x8807E02 0x8807E08
    applymovement 0x10 0x8807DEA
    waitmovement 0x0
    hidesprite 0x10
    setflag 0x1307
    setvar 0x6000 0x1
    releaseall
    end

    '---------------
    #org 0x807E08
    msgbox 0x8807E21 MSG_NORMAL '"I'll tell mum!\pSniff"
    end


    '---------
    ' Strings
    '---------
    #org 0x807E12
    = Hey brother!

    #org 0x807DF2
    = Let's battle!

    #org 0x807E02
    = Oh!

    #org 0x807E21
    = I'll tell mum!\pSniff


    '-----------
    ' Movements
    '-----------
    #org 0x807DE2
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0xFE 'End of Movements

    #org 0x807DEA
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0xFE 'End of Movements


    My problem is that the battle is right but the sprite DOESN'T MOVE!
     

    Tropical Sunlight

    The Faltine
    3,476
    Posts
    16
    Years
  • Hello everyone I have a problem with a script!

    '---------------
    #org 0x807D9E
    lockall
    msgbox 0x8807E12 MSG_KEEPOPEN '"Hey brother!"
    clearflag 0x1307
    showsprite 0x10
    applymovement 0x10 0x8807DE2
    waitmovement 0x0
    closeonkeypress
    trainerbattle 0x1 0x2E9 0x0 0x8807DF2 0x8807E02 0x8807E08
    applymovement 0x10 0x8807DEA
    waitmovement 0x0
    hidesprite 0x10
    setflag 0x1307
    setvar 0x6000 0x1
    releaseall
    end

    '---------------
    #org 0x807E08
    msgbox 0x8807E21 MSG_NORMAL '"I'll tell mum!\pSniff"
    end


    '---------
    ' Strings
    '---------
    #org 0x807E12
    = Hey brother!

    #org 0x807DF2
    = Let's battle!

    #org 0x807E02
    = Oh!

    #org 0x807E21
    = I'll tell mum!\pSniff


    '-----------
    ' Movements
    '-----------
    #org 0x807DE2
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0xFE 'End of Movements

    #org 0x807DEA
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0xFE 'End of Movements


    My problem is that the battle is right but the sprite DOESN'T MOVE!
    My guess is that the OW that needs to move isn't on-screen. I was told by HackMew that, in those cases, you need to use the movesprite command.
     
    41
    Posts
    14
    Years
    • Seen Oct 4, 2016
    It is on screen cause i could see it! I think that I don't use the setvar well! I am using the script in a sciptbox!
     
    20
    Posts
    14
    Years
    • Seen Apr 12, 2010
    Well I found a better way to do the wild pokemon script, it just keeps the pokemon sprite on screen until you walk off a little bit. At least you can't battle it multiple times, cause it sets the flag and you can't battle it again. but I'm having problems inserting the hidesprite command before the setflag command.

    Spoiler:
     
    10,078
    Posts
    15
    Years
    • UK
    • Seen Oct 17, 2023
    It is on screen cause i could see it! I think that I don't use the setvar well! I am using the script in a sciptbox!

    Change the applymovement 0x10 to applymovement 0xA

    :)

    (As I assume it's person event number 10, and you forgot to change it to hex)
     
    7
    Posts
    14
    Years
    • Seen Apr 11, 2010
    Hey Binary, your code:
    Spoiler:

    didn't work :( it still freezes and i can't do anything....some1 help me...
     
    53
    Posts
    15
    Years
    • Seen May 14, 2010
    Hi, I can't seem to get this script working. It's my main one to set it. But everytime I click on the overworld sprite of the person thats meant to be doing the script it freezes. And the script is meant to disappear after It's finished as well as the overworld. But I can't get ANYTHING to work. I put this on a script btw.

    Spoiler:
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    what r u supposed to put in the unknown and var value boxes?
    Var value: 4050
    Unknown: 0300

    Hi, I can't seem to get this script working. It's my main one to set it. But everytime I click on the overworld sprite of the person thats meant to be doing the script it freezes. And the script is meant to disappear after It's finished as well as the overworld. But I can't get ANYTHING to work. I put this on a script btw.

    Spoiler:


    Spoiler:


    Why not put a script tile in front of the OW rather than interaction with the OW?
     
    13
    Posts
    14
    Years
    • Seen Jan 2, 2016
    I seem to have come up with a problem with my script. Whats meant to happen is that I talk to my rival, he says "LUGIA..." notices im there, talks to me, then me and my rival walk up to Lugia. however it hasn't turned out so well. What actually happens, is he says "LUGIA..." as planned, he faces me, but walks up to lugia while saying his line. he's meant to speak to me first, then we're meant to walk up together. why does this happen? Can anyone fix the script for me?

    Spoiler:


    thanks in advance
     
    10,078
    Posts
    15
    Years
    • UK
    • Seen Oct 17, 2023
    @mariovstoad

    Put a waitmovement 0x0 each time you want the movements to be completed before they say anything.

    Also put #raw 0xFE at the end of all your movement segments.
     
    32
    Posts
    14
    Years
    • Age 38
    • Seen Dec 16, 2010
    This is a script I made for my nurse joy in the pokecenter. I'm not sure if it works because I try to burn it to my rom and it says floating point must be pushed. I don't know if there is something wrong in my script or something else. I'm using pokescript, please help.

    #org $start
    lock
    faceplayer
    message $10
    boxset 6
    message $yesno
    boxset 5
    compare LASTRESULT B_TRUE
    if B_FALSE goto message $11
    #raw 0x9C 0x19
    message $11
    boxset 6
    release
    end

    #org $10
    $10 1 =Welcome to the POKémon CENTER\iWhat wonderful Pokèmon you\nhave there.

    #org $yesno
    $yesno 1 =Would you like to heal them?

    #org $Nothanks
    $Nothanks 1=Ok, good luck on your adventures.\nCome back any time.

    #org $11
    $11 1=Now they look better.\nCome again any time.
     
    7
    Posts
    14
    Years
    • Seen Apr 11, 2010
    Hey guys, im having a problem with giving the item town map..
    here the code:

    Spoiler:


    it says im missing something in the "giveitem 0x169 0x1 part
     
    Last edited:
    53
    Posts
    15
    Years
    • Seen May 14, 2010
    Spoiler:


    Why not put a script tile in front of the OW rather than interaction with the OW?
    What do you mean by in front of the OW??
    Heres a SS of my MAP in A-Map.
    The person that is meant to walk is the one circled around red.
    Spoiler:


    And funguy1019 try this script. I put BOLD in where u should've fixed things.

    Spoiler:
     
    Last edited:
    Status
    Not open for further replies.
    Back
    Top