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

HackMew

Mewtwo Strikes Back
  • 1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    Here's my script. It works, but... for some reason, either the setflag of the checkflag doesn't work.

    [...]

    I guess the biggest problem is the flag choosen, which could be already in use by the game itself.

    Try using this:

    Code:
    #org 0x726C70
    checkflag 0x100A
    if 0x1 goto 0x726C90
    message 0x726C94
    boxset 0x6
    applymovement 0xFF 0x726CA5
    #raw 51 00 00 'this is the waitmovement command
    setflag 0x100A
    end
    
    #org 0x726C90
    release
    end
    
    #org 0x726C94
    = Hey, wait up!
    
    #org 0x726CA5
    #raw 0x62
    #raw 0x02
    #raw 0xFE
     
  • 3
    Posts
    16
    Years
    • Seen Nov 26, 2007
    hello. I have a lot of problems and hope, you can help me. Im using Pokémon Emerald.
    1. When I use jingle, nothing happens. When I use fanfare or playsound, the game freezes. Why?
    2. Can somebody tell me, what I can do with the special command?
    3. Has somebody a list of the functions of the emerald flags. E.g. 0x800 doesnt turn on the Pokémon item in menu. Why?
    4. How can I let the player give the hero a new name?
    It'd be very Cool if sbd canhelp
     
  • 489
    Posts
    16
    Years
    Can someone plz make me a give pokemon script.
    You press A on the pokeball and it says: What's this? It's a pokeball. Pick up the Pokeball Yes/No
    (If PLAYER chooses no, the following message appears: You chose not to pick up the Pokeball.)
    When PLAYER says yes, the following message appears: PLAYER released the Pokemon in the Pokeball,
    Its a Larvitar. Then it asks if you want to give Larvitar a nickname. Then I also need the PLAYER to find a Pokedex in the grass (part of the same script) and it needs to say: What's this in the grass? PLAYER received the Pokedex.

    I really need someone to make this for me. Otherwise the player won't get his starter Pokemon lol.
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    Hello to everyone and good day. I have some questions concerning about my planned script to make, however, school's taking my time, so I can't do it properly.

    All I need is to clear my head about my future problem. Here goes...

    I make a battle script using the trainer number 001, then, events, disappear. Again, I am gonna make another script, but can I use the same trainer I used in my previous script, for instance, 001..?

    Thanks in advance and have a great day. Happy hacking. ;)

    ...... As always, DJG... :)
     

    Derlo

    Tired....
  • 135
    Posts
    16
    Years
    Which the command in POKECRIPT to enable the animation of the door opening in FR? did I already look for but didn't I find.
    EX: at the beginning of the game when the PROF. OAK takes him for LABORATORY to give you first PKM.
    Thank you.
     
    Last edited:
  • 2
    Posts
    16
    Years
    • Seen Nov 26, 2007
    I used this simple script as wrote in Irish Witch's Tutorial. When I answer "No" he gives me Lava Cookie anyway... What's wrong?

    Code:
    #org $Startscript
    Lock
    Faceplayer
    checkflag 0x200
    if B_TRUE goto $GotCookie
    message $AskMe
    $AskMe 1 = Would you like a Lava Cookie?
    boxset 5
    compare LASTRESUILT B_TRUE
    if B_False goto $DontGet
    giveitem 0x26 1
    setflag 0x200
    Release
    end
    
    #ORG $GotCookie
    Lock
    Faceplayer
    message $NoCookie
    $NoCookie 1 = I'm not made of cookies!\lYou only get one.
    boxset 6
    release
    end
    
    #ORG $DontGet
    Lock
    Faceplayer
    message $AllMine
    $AllMine 1 = All the more for me!
    boxset 6
    release
    end
     
    Last edited:

    ~*Pikafan*~

    Man I gotta stop leaving!
  • 202
    Posts
    16
    Years
    • Age 30
    • Seen Oct 23, 2011
    I'm having trouble even on a simple talking script. I wanted someone to block the entrance to Tate and Liza's GYM in Mossdeep and say that the GYM is closed. I created the script and inserted it into the game, and nothing showed up. Then I tried compiling it again, and all of these random letters and numbers showed up. Can anyone tell me what the problem is?

    Code:
    #org $Showtext
    lock
    faceplayer
    message $Sorry
    $Sorry= Sorry, the GYM is closed.\pTate and Liza are having/nconstruction done on/pthe GYM.
    boxset 6
    release
    end
     

    Derlo

    Tired....
  • 135
    Posts
    16
    Years
    I am not an expert in script, but I think that the problem is here:

    I used this simple script as wrote in Irish Witch's Tutorial. When I answer "No" he gives me Lava Cookie anyway... What's wrong?

    Code:
    #org $Startscript
    Lock
    Faceplayer
    checkflag 0x200
    if B_TRUE goto $GotCookie
    message $AskMe
    $AskMe 1 = Would you like a Lava Cookie?
    boxset 5
    [B]compare LASTRESUILT B_TRUE
    if B_False goto $DontGet[/B]
    giveitem 0x26 1
    setflag 0x200
    Release
    end
    
    #ORG $GotCookie
    Lock
    Faceplayer
    message $NoCookie
    $NoCookie 1 = I'm not made of cookies!\lYou only get one.
    boxset 6
    release
    end
    
    #ORG $DontGet
    Lock
    Faceplayer
    message $AllMine
    $AllMine 1 = All the more for me!
    boxset 6
    release
    end

    the correct would be:
    ...............
    Lock
    Faceplayer
    checkflag 0x200
    if B_TRUE goto $GotCookie
    message $AskMe
    $AskMe 1 = Would you like a Lava Cookie?
    boxset 5
    compare LASTRESUILT B_False
    if B_False goto $DontGet

    giveitem 0x26 1
    setflag 0x200
    Release
    end
    ......

    hi, I am here again!

    I think the mistake this in that:

    I'm having trouble even on a simple talking script. I wanted someone to block the entrance to Tate and Liza's GYM in Mossdeep and say that the GYM is closed. I created the script and inserted it into the game, and nothing showed up. Then I tried compiling it again, and all of these random letters and numbers showed up. Can anyone tell me what the problem is?

    Code:
    #org $Showtext
    lock
    faceplayer
    message $Sorry
    [B]$Sorry= Sorry, the GYM is closed.\pTate and Liza are having/nconstruction done on/pthe GYM.[/B]
    boxset 6
    release
    end

    try this:

    #org $Showtext
    lock
    faceplayer
    message $Sorry
    $Sorry 1 = Sorry, the GYM is closed.\pTate and Liza are having\nconstruction done on\pthe GYM.
    boxset 6
    release
    end
     
    Last edited:

    Juan

    Brazilian with a bad English
  • 92
    Posts
    16
    Years
    Code:
    #org $Startscript
    Lock
    Faceplayer
    checkflag 0x200
    if 1 goto $GotCookie
    message $AskMe
    $AskMe 1 = Would you like a Lava Cookie?
    boxset 5
    [b]compare LASTRESULT 1
    if 1 goto $DontGet[/b]
    giveitem 0x26 1
    setflag 0x200
    Release
    end
    
    #ORG $GotCookie
    Lock
    Faceplayer
    message $NoCookie
    $NoCookie 1 = I'm not made of cookies!\lYou only get one.
    boxset 6
    release
    end
    
    #ORG $DontGet
    Lock
    Faceplayer
    message $AllMine
    $AllMine 1 = All the more for me!
    boxset 6
    release
    end

    Try now xD
     
  • 1,104
    Posts
    16
    Years
    Which the command in POKECRIPT to enable the animation of the door opening in FR? did I already look for but didn't I find.
    EX: at the beginning of the game when the PROF. OAK takes him for LABORATORY to give you first PKM.
    Thank you.

    Use this. XX is the x-co-ordinate and YY is the Y-co-ordinates of the door.
    #raw 0xAC 0xXX 0xXX 0xYY 0xYY
    #raw AE

    I'll give you an example incase it's still hard to understand.
    X co-ordinate - 14
    Y co-ordinate - 12
    #raw 0xAC 0x0E 0x00 0x0C 0x00
    #raw 0xAE
     
  • 14
    Posts
    16
    Years
    • Seen Feb 27, 2021
    Hello, I have a question. Somebody knows that indicates 08 of an address offset either a script or a bank dialog?.

    Example: 0xB00000 ----- ROM ----- 00 00 B0 08

    Thanks in advance
     
  • 2
    Posts
    16
    Years
    • Seen Nov 26, 2007
    Thank you, it worked ;P

    I directly copied it from the tutorial 'cause i'm very lazy :D
     

    ~*Pikafan*~

    Man I gotta stop leaving!
  • 202
    Posts
    16
    Years
    • Age 30
    • Seen Oct 23, 2011
    I need a script (one for a script insertion in Change Events on Advance Map) where when you come out of a house, someone walks up to you and says, "Hey \v\h01! You forgot your Beldum! Here, I found it for you!" Then he gives it to you with the Jingle noise as your starter, asking if you want to give a nickname. Then he says, "You forgot your pokedex too, here!" Then he gives you the pokedex.

    Can anyone do that?
     
  • 3
    Posts
    16
    Years
    • Seen Nov 26, 2007
    has somebody an answer for my questions above, please?

    has somebody an answer for my questions above, please?
     
    Last edited:

    Piplup-Trainer

    This is my custom user title.
  • 228
    Posts
    16
    Years
    Script for Pikachu as Trainer.

    Can anybody make a script for me which is doing this :

    1) A pikachu looks behind (okay, that I can edit in EliteMap).

    2) If you click on that Pikachu, then he should say (breaks here means breaks in the dialog too):
    "Hmhmhmhmhmhm... With the legendary Pokemon
    Ho-Oh we can awake the three legendary dogs.
    And then I and Rayquaza will rule over the Hoenn-Region!"

    3) Now he should turn around to you and a "!" should appear over his head (like May is doing in her house, but without music.).

    4) Now he should say :
    "What!? Who are you!?
    And what are you doing here!?

    ...

    You listened what I said!?
    You really listened what I said!?

    That means that you know about my plan!

    Well, then I have no another choice...
    I must defeat you!!!

    C'mon, bring it on!!!"

    5) Now should a trainer battle begin (lets say for example, the ID is FFFF. With trainer battle I mean, that Pikachu and you are fighting with pokemons. The Music should be The Raikou, Entei and Suicune Theme. If there doesn't exist such a music file, then put in the script the "Team Magma Music".)

    6) After the battle, Pikachu should say :
    "What!? I can't believe it!

    You bastard defeated all my mighty Pokemon!

    This time, you were lucky.
    But the next time, you won't be so lucky!!!"

    7) Now he should leave the room (like May in Route 103 - if you click her on the left or right side, then she will make after the battle seven steps down. If you click her on beside, then she will go after the battle one step right or left and then she goes down. --> SEE IMAGES)

    8) At last, the sprite should be deactivated and the script should be turned off.

    I will thank you so much. If you want, then I will write down your name to the credits.

    PS : The X marks where Pikachu will be.
     

    Derlo

    Tired....
  • 135
    Posts
    16
    Years
    Use this. XX is the x-co-ordinate and YY is the Y-co-ordinates of the door.
    #raw 0xAC 0xXX 0xXX 0xYY 0xYY
    #raw AE

    I'll give you an example incase it's still hard to understand.
    X co-ordinate - 14
    Y co-ordinate - 12
    #raw 0xAC 0x0E 0x00 0x0C 0x00
    #raw 0xAE

    Thank you very much, the command worked. But after the door opens, she doesn't close.
    Is this SCRIPT, what is there wrong?

    #org $mina
    applymovement 10 $hun
    pause 0x20
    message $flori2
    $flori2 1 = Margarida: \c\h01\h04Muito obrigado gatoto!\nTome isso como agradecimento!
    boxset 6
    giveitem 0x44 0x1
    message $flori3
    $flori3 1 = Margarida: \c\h01\h04Agora tenho que ir!\nTchau!
    boxset 6
    applymovement 10 $subir
    $subir 1 ; #Binary 0x01 0xFE
    pausemove 0
    #raw 0xAC 0x19 0x00 0x12 0x00
    #raw 0xAE

    applymovement 10 $subir2
    $subir2 1 ; #Binary 0x0D 0x0D 0x60 0xFE
    pausemove 0
    return
     
    Last edited:
  • 1,104
    Posts
    16
    Years
    Thank you very much, the command worked. But after the door opens, she doesn't close.
    Is this SCRIPT, what is there wrong?

    #org $mina
    applymovement 10 $hun
    pause 0x20
    message $flori2
    $flori2 1 = Margarida: \c\h01\h04Muito obrigado gatoto!\nTome isso como agradecimento!
    boxset 6
    giveitem 0x44 0x1
    message $flori3
    $flori3 1 = Margarida: \c\h01\h04Agora tenho que ir!\nTchau!
    boxset 6
    applymovement 10 $subir
    $subir 1 ; #Binary 0x01 0xFE
    pausemove 0
    #raw 0xAC 0x19 0x00 0x12 0x00
    #raw 0xAE

    applymovement 10 $subir2
    $subir2 1 ; #Binary 0x0D 0x0D 0x60 0xFE
    pausemove 0
    return

    Sorry I forgot something.
    #raw 0xAD 0xXX 0xXX 0xYY 0xYY
    #raw AE
    Use this to close the doors.
     

    ~*Pikafan*~

    Man I gotta stop leaving!
  • 202
    Posts
    16
    Years
    • Age 30
    • Seen Oct 23, 2011
    Is there something wrong with this script that I made for the Script event, not for a person?

    Code:
    #org $Move1
    checkflag 0x200
    if B_TRUE goto $Done
    applymovement 0x12 $whogivesthe
    pause 0x10
    setflag 0x200
    end
    
    #org $Done
    end
    
    #org $whogivesthe
    $move 1; #Binary 0x56 0x10 0x06 0xFE
    
    goto $GiveBeldum
    
    #org $startBel
    checkflag 0x800
    message $GiveBel
    $GiveBel 1 = \v\h01!/pYou forgot your Beldum!/nI found it outside/pof your house when/nI woke up, so I came/pto give it to you!
    give pokemon 398 5 8E
    jingle
    message $GotBel
    $GotBel 1 = You obtained Beldum!
    boxset6
    message $NameBel
    $NameBel 1 = Would you like to give/nBeldum a Nickname?
    boxset5
    compare LASTRESULT 1
    if b_false goto $GiveDex
    Namepokemon
    setflag 0x203
    goto $GiveDex
    
    #org $Givedex
    Setflag 0x800
    setflag 0x801
    message $Pokedex
    $Pokedex 1 = I also found your Pokedex!
    boxset6
    jingle
    message $GotDex
    $Gotdex 1 = You got the Pokedex!
    boxset 6
    end
     
    Last edited:
    Status
    Not open for further replies.
    Back
    Top