• 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.
1,104
Posts
16
Years
  • Also How come this script won't work?
    Code:
    #org $start
    checkflag 0x207
    if b_true goto $done
    applymovement 0x01 $move
    pausemove 0
    message $battle
    boxset 6
    trainerbattle 0x00 0x015 $before $after $further
    release
    end
    
    #org $move
    $move 1 ; 0x10 0x10 0x10 0x10 0x10 0xFE
    
    #org $battle
    $battle 1 = Hey \v\h01, Hows it going?\nLets Check our pokemon!
    
    #org $before
    $before 1 = Don't Be Scared now.
    
    #org $after
    after 1 = I've underestimated you. Oh Well.
    
    #org $further
    message $battle1
    boxset 6
    applymovement 0x01 $go
    pausemove 0
    #raw 53
    #raw 01
    nop
    setflag 0x207
    release
    end
    
    #org $done
    release
    end
    
    #org $go
    $go 1 ; 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $battle1
    $battle1 1 = Looks like I have to practice,\nsee yah!
    It is a simple Trigger script for the rival. The "$further" won't work, and after the battle the rival just stands there. Anyone, preferably good at scripting?

    I'm not sure about the first one. I might look into it. There should be something becasue if you lose to Gary in the opening battle in FR, the script still continues. I'll let you know if I find anything.

    Someone had this problem a couple of posts up. I'll quote the answer..
    I did this a while ago as well, and I kept checking throught it and I couldn't find anything wrong with my script. You've done exactly what I did. I've put the problem in bold. 0 tells the command that it doesn't continue onto further. If it is a "1" it will continue.
    Code:
    #org $starthisscript
    checkflag 0x799
    if 1 goto $done
    applymovement 0x7 $moverival2
    $moverival2 1 ; #binary ---REMOVED---
    pausemove 0
    trainerbattle [b]0[/b] 0x146 $before $after2 $further
    $before = ---REMOVED---
    $after2 = ---REMOVED---
    release
    end
    
    #org $done
    release
    end
    
    #org $further
    applymovement 0x7 $moverival111
    $moverival111 1 ; #binary ---REMOVED---
    pausemove 0
    setflag 0x799
    #raw 53
    #raw 07
    #raw 00
    release
    end

    You have the same problem as Krisitan's Script. Change the 0x00 in the trainerbattle to 0x01 and it should work.
     

    Derlo

    Tired....
    135
    Posts
    16
    Years
  • Hello!
    Can anybody help myself with that script? He will be the first battle against the rival, I tried to copy for SCRIPTED but every time that we got lost the battle returned for our house and the script doesn't continue!

    The script is this:


    #org $rival
    checkflag 0x828
    if 0 goto $nada
    checkflag 0x202
    if 1 goto $WILL
    release
    end

    #org $WILL
    applymovement 0xff $olharparaW
    $olharparaW 1 ; #Binary 0x02 0xFE
    pausemove 0
    applymovement 3 $hum
    $hum 1 ; #Binary 0x62 0x4A 0xFE
    pause 0x30
    applymovement 3 $chegarW
    $chegarW 1 ; #Binary 0x0B 0xFE
    pausemove 0
    message $before
    $before 1 = \c\h01\h08\v\h06: Oi, deve ser \v\h01.\pEu também acabei de pegar meu\nprimeiro pokémon, vamos batalhar?
    boxset 6
    goto $luta
    end

    #org $luta
    trainerbattle 9 0x146 0x3 $winin $perdeu
    goto $mermo
    end

    #org $winin
    $winin 1 = WILL: Yeah!\nEu sou o maximo!

    #org $perdeu
    $perdeu 1 = OQUE?\nInacreditavel!\lEu peguei o PKM errado!

    #org $mermo
    special 0
    message $1
    $1 1 = \c\h01\h08WILL: Foi uma boa batalha,\nparabéns, nos vemos mais tarde.
    boxset 6
    applymovement 3 $xauW
    $xauW 1 ; #Binary 0x0E 0x0E 0x0E 0x0D 0x0D 0x0D 0x0D 0x0D 0xFE
    pausemove 0
    vanish 3
    setvar 0x4055 0x4
    setflag 0x258
    release
    end

    #org $nada
    release
    end

    TH4NKS!!
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Hello pipz!
    I do think my question concerns in this thread, and so...

    In Ruby, what are the commands to put in the script to activate both the POKéMON and the POKéDEX Menus in the Start Menu bar..?

    Thanks~
     

    Derlo

    Tired....
    135
    Posts
    16
    Years
  • Thanks TTTT, It works now. And Derlo, I don't see trainerbattle anywhere in that script.

    It´s here!:

    #org $rival
    checkflag 0x828
    if 0 goto $nada
    checkflag 0x202
    if 1 goto $WILL
    release
    end

    #org $WILL
    applymovement 0xff $olharparaW
    $olharparaW 1 ; #Binary 0x02 0xFE
    pausemove 0
    applymovement 3 $hum
    $hum 1 ; #Binary 0x62 0x4A 0xFE
    pause 0x30
    applymovement 3 $chegarW
    $chegarW 1 ; #Binary 0x0B 0xFE
    pausemove 0
    message $before
    $before 1 = \c\h01\h08\v\h06: Oi, deve ser \v\h01.\pEu também acabei de pegar meu\nprimeiro pokémon, vamos batalhar?
    boxset 6
    goto $luta
    end

    #org $luta
    trainerbattle 9 0x146 0x3 $winin $perdeu
    goto $mermo
    end

    #org $winin
    $winin 1 = WILL: Yeah!\nEu sou o maximo!

    #org $perdeu
    $perdeu 1 = OQUE?\nInacreditavel!\lEu peguei o PKM errado!

    #org $mermo
    special 0
    message $1
    $1 1 = \c\h01\h08WILL: Foi uma boa batalha,\nparabéns, nos vemos mais tarde.
    boxset 6
    applymovement 3 $xauW
    $xauW 1 ; #Binary 0x0E 0x0E 0x0E 0x0D 0x0D 0x0D 0x0D 0x0D 0xFE
    pausemove 0
    vanish 3
    setvar 0x4055 0x4
    setflag 0x258
    release
    end

    #org $nada
    release
    end
     
    31
    Posts
    17
    Years
    • Seen Nov 29, 2011
    nicknaming pokemon

    Hi All!

    I've posted a few times and had a few replies on this problem but just can't seem to get the namepokemon script working properly.

    The whole script works perfectly, except for the fact that when I choose to give the pokémon a nickname, the following happens:

    Script Requests/Sharing/Discussion


    It seems as though the pokémon isn't being "registered" by namepokemon.

    If anyone could help me with this it would be much appreciated. Maybe an example working script?

    Thanks in advance!
     
    245
    Posts
    19
    Years
    • Age 34
    • Seen Aug 5, 2022
    How do I activate the pokemon and pokedex menu options and get the national dex in LG/FR
     
    170
    Posts
    16
    Years
  • Hello pipz!
    I do think my question concerns in this thread, and so...

    In Ruby, what are the commands to put in the script to activate both the POKéMON and the POKéDEX Menus in the Start Menu bar..?

    Thanks~
    here you go:
    Ruby - Sapphire
    setflag 0x800 - PokeMenu
    setflag 0x801 - Pokedex
    setflag 0x802 - Pokemon navigator
    setflag 0x807-80E - badges
    special 0x9C - ChoosePokemon (this is the lab chose like if you want to delete the lab scene and use this in a script you will get to chose the starters. If you edtied the starte pokemon you will chose from the edited starte pokemon.)
    special 0x9D - WallyCatch (He catches ralts)
    I got this from the "Important setflags" in the tutorials section ;)
     
    31
    Posts
    17
    Years
    • Seen Nov 29, 2011
    How do I activate the pokemon and pokedex menu options and get the national dex in LG/FR

    The flags to set, for FireRed/LeafGreen are:

    setflag 0x828 - to turn on PokéMenu
    setflag 0x829 - to turn on PokéDex
    special 0x16F - to turn on National Dex

    If you need a working example, PM me.
     

    Kyber-Groudon

    After all, I'm only human.....
    50
    Posts
    16
    Years
    • Seen Jan 29, 2008
    Kyber-Groudon, you can change the sprite overworld and batter sprite for another person, not for yourself. The only way to do it for your own character is to Overworld Edit and use TLP.

    oh.... i guess that's that particular project right down the drain.

    I know you can edit sprites using those programs, but I wanted to find out if it was possible to script it so the player transforms into a pokemon later on in the game. I've already got sprites ready. Guess not, though.

    Ahh well, thanks anyway.
     
    Last edited:
    860
    Posts
    17
    Years
  • Can someone check this script for me please I have tried it but it doesn't compile in pokescript...
    Spoiler:


    Thanks in advance...
     
    Last edited:
    62
    Posts
    16
    Years
  • Try this out

    applymovement 0x4 $meowth2
    pause 0x10
    applymovement 0x4 $meowth22
    pausemove 0
    message $rockettalk
    $rockettalk 1 = Team Rocket: Hey you brat, \nand you are trying to take your camerupt back?! \pDon't make me laugh,\p a little brat \nlike you trying to get something \pfrom us?
    boxset 6
    applymovement 0x3 $james3
    pause 0x30
     

    linkandzelda

    Ex-rom hacker turned indie game developer
    777
    Posts
    17
    Years
  • Hi
    I need some help with wild battles.
    this script works fine exept the pokemon does'nt dissapair. i go away and come back again and it has gone then but it needs to go when i finish the battle. heres my script:

    #org $begin
    lock
    faceplayer
    checkflag 0x1135
    if B_TRUE goto $gotbottle
    message $speak
    boxset 6
    release
    end

    #org $gotbottle
    message $speak2
    boxset 5
    compare LASTRESULT B_TRUE
    if B_FALSE goto $notyet
    message $yes1
    boxset 6
    wildbattle 185 20 0
    setflag 0x1136
    fadescreen 0
    release
    end

    #org $notyet
    release
    end

    #org $speak
    $speak 1 = It's a weird tree!

    #org $speak2
    $speak2 1 = It's a weird tree.\nuse the SQUIRTBOTTLE?

    #org $yes1
    $yes1 1 = \v\h01 used the SQUIRTBOTTLE.\pThe weird tree doesn't like

    the\nSQUIRTBOTTLE!\pThe weird tree attacked!

    Thanks in advance
    link
     

    ~*Pikafan*~

    Man I gotta stop leaving!
    202
    Posts
    16
    Years
    • Age 30
    • Seen Oct 23, 2011
    You might have to make the screen refresh, like it goes black and then reappears.

    Edit: Yeah, I think you need to put 0x8E after the battle. If you read the page before, where thethethethe talks to me about setmap, it causes the screen to refresh to make whatever happens happen without going off of the map.
     
    Last edited:
    Status
    Not open for further replies.
    Back
    Top