• 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.
167
Posts
15
Years
  • wild charizard

    hi can somebody tell me wats wrong with my wild charizard script?
    Spoiler:
     

    Madridista

    -#666
    40
    Posts
    15
    Years
  • @CelebiKing123

    It should work now:
    Spoiler:
     

    Perfect_Palkia_10

    Ruler of Space
    28
    Posts
    16
    Years
  • Game: Pokemon FireRed
    Type: Trigger
    Editor: PokeScript

    Script:

    #org $start
    checkflag 0x200
    if b_true goto $done
    applymovement 0x00 $move
    pausemove

    message $1
    boxset 6
    applymovement 0x00 $move2
    pausemove
    message $2
    boxset 6

    applymovement 0x00 $move3
    pausemove
    message $3
    boxset 6
    checkflag 0x200
    if b_true goto $give
    release
    end

    #org $done
    countpokemon
    compare LASTRESULT 0x0
    if b_true goto $need
    message $10
    boxset 6

    special 0x0
    waitfanfare
    message $11
    boxset 6
    release
    end

    #org $give
    giveitem 338 1
    message $20
    boxset 6
    setflag 0x200
    release
    end

    #org $need
    message $30
    boxset 6
    release
    end

    #org $1
    $1 1=\c\h01\h04Good Morning \c\h01\nHave a good sleep?\p...\pHmm? That's right!\lYou fell asleep while we\lwere unpacking.\pDon't worry, we've finished.\lVolknear's already gone to the\lPokh\1Bmon League. Shauna's gone\lto get breakfast.\pWhy don't you talk to\lthe locals but don't go\lto Route 300.

    #org $2
    $2 1=\c\h01\h04Hmm. Well I was\nto give these to\lVolknear but they don't\lfit him. Well I guess you\lthat you can have them!

    #org $3
    $3 1=\c\h01\h04Here you go.

    #org $20
    $20 1=\c\h01 got the\c\h01\h04\nRunning Shoes.\pPress B to use them.

    #org $10
    $10 1=Hi darling. You look tired.\nTake a rest.

    #org $11
    $11 1=Thats better.\nHave fun.

    #org $move
    #raw 0x62 0x11 0x12 0x12 0x12 0x12 0x11 0x02

    #org $move2
    #raw 0x13 0x13 0x13 0x13 0x13 0x13 0x01

    #org $move3
    #raw 0x12 0x12 0x12 0x12 0x12 0x12


    It won't trigger.
     
    Last edited:

    KhaosKnight

    The 1 and only Khaotic Hacker
    355
    Posts
    16
    Years
    • Seen May 28, 2015
    By that i think he means when he steps on the script tile it wont activate or "trigger"

    What you should do is go click on the script tile and make sure you have the 40 50 or 50 40 values in the unknown box(or the one above it, im not sure exactly its been awhile since i have looked at it)at the top of the script panel in A-Map.

    But yes you should be more specific when discribing problems.
     
    Last edited:

    Vrai

    can you feel my heart?
    2,896
    Posts
    15
    Years
    • Age 29
    • Seen Oct 24, 2022
    Game: Pokemon FireRed
    Type: Trigger
    Editor: PokeScript

    Spoiler:



    It won't trigger.

    There's a lot of random errors here, too. Please try to catch your own errors first.

    All of the movements need 0xFE to finish them.
    \c\h01 should be \v\h01.
    Pausemove should have a 0x0 parameter.
    Why do you have waitfanfare in a place where it doesn't have a fanfare?
    You can't move a person with a Person Number of 0, because I highly doubt that there's a person with a Person Number of 0 on your map. Double check that, please.
    Also, you should make the script check for a flag so that it doesn't run through twice, especially since it's a trigger script.

    Finally, be sure to use 0300 and 4050 as your Unknown and Var Number values.
     

    Hoshiko Aki

    Avatar rules
    109
    Posts
    15
    Years
    • Seen Oct 17, 2011
    Can somebody help me

    It most be so script:

    player will room out but he can't the script say better take my pokemon with me and if he has taken the pokeball in his room the script gone and the player can leave the room.
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    @CelebiKing123

    It should work now:
    Spoiler:

    Yes but don't forget him to change the People ID of the charizard in AM to 0200.
     

    michaelh

    Script Ninja-in-training
    16
    Posts
    17
    Years
    • Seen Feb 17, 2014
    [SOLVED]Script Freezing on run

    I don't quite understand why this script isn't working.

    Notes:
    Desired Effect:
    Gives Trainer a Crobat (I know there are no safeguards, but those are not part of this script)

    Actual Effect:
    Freezes on activation (when person is interacted with using the A button)

    Other useful information:
    Script is an original work (not copypasted badly from various sources)
    Rom is Pokémon Fire Red (U)
    Rom expanded to 32MiB
    Pointer correct in AdvanceMap ($1000000)
    Activator is a person on map
    Compiler is XSE v1.1.1
    @start corresponds to offset 0x1000000

    --------------------------------------------

    Script Below (73 lines, spoilered to make post reasonable length):
    Spoiler:


    Additional info provided per request.

    NB: Script is probably quite messy and inefficient, as I've not written a huge deal of scripts.
     
    Last edited:

    Perfect_Palkia_10

    Ruler of Space
    28
    Posts
    16
    Years
  • There's a lot of random errors here, too. Please try to catch your own errors first.

    All of the movements need 0xFE to finish them.
    \c\h01 should be \v\h01.
    Pausemove should have a 0x0 parameter.
    Why do you have waitfanfare in a place where it doesn't have a fanfare?
    You can't move a person with a Person Number of 0, because I highly doubt that there's a person with a Person Number of 0 on your map. Double check that, please.
    Also, you should make the script check for a flag so that it doesn't run through twice, especially since it's a trigger script.

    Finally, be sure to use 0300 and 4050 as your Unknown and Var Number values.

    Sorry, I'm very new to scripting. Anyway thanks for that. Works fine.
     

    Hoshiko Aki

    Avatar rules
    109
    Posts
    15
    Years
    • Seen Oct 17, 2011
    Can somebody help me

    It most be so script:

    player will room out but he can't the script say better take my pokemon with me and if he has taken the pokeball in his room the script gone and the player can leave the room.


    some buddy?

    please help me
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    I don't quite understand why this script isn't working.

    Notes:
    Desired Effect:
    Gives Trainer a Crobat (I know there are no safeguards, but those are not part of this script)

    Actual Effect:
    Freezes on activation (when person is interacted with using the A button)

    Other useful information:
    Script is an original work (not copypasted badly from various sources)
    Rom is Pokémon Fire Red (U)
    Rom expanded to 32MiB
    Pointer correct in AdvanceMap ($1000000)
    Activator is a person on map
    Compiler is XSE v1.1.1
    @start corresponds to offset 0x1000000

    --------------------------------------------

    Script Below (73 lines, spoilered to make post reasonable length):
    Spoiler:


    Additional info provided per request.

    NB: Script is probably quite messy and inefficient, as I've not written a huge deal of scripts.

    That was something detailed indeed ;)
    Here's the fixed and optimized script. I would explain you the changes, but I think you can get more satisfaction by simple understanding them on your own.
    The script should work fine, even if I didn't test it. Let me know if you have problems or whatever. Don't forget the [SOLVED] thingy, okay?

    Spoiler:
     
    Last edited:

    Hoshiko Aki

    Avatar rules
    109
    Posts
    15
    Years
    • Seen Oct 17, 2011
    Hello,

    whats wrong with this script?

    Code:
    '---------------
    #org 0x2D513F
    setvar 0x4060 0x37
    givepokemon 0x4060 0x8 0x0 0x0 0x0 0x0
    end

    it must give you your starter pokemon Vulpix but you can talk to the pokeball but nothing happen
     

    Pokepal17

    More cowbell~
    1,519
    Posts
    15
    Years

  • ROM: Pokemon Fire Red
    Version: 1.0
    Script Editor: XSE
    Script: Trigger Script

    I'm having a bit of trouble with this script.
    The bit when the flag is not set works fine. When the flag is set, the egg is meant to hatch and then the text is meant to appear. Instead part of the text briefly appears and then the egg hatches and the script ends without the full text appearing.

    Here is the script

    Spoiler:


    The settings for the script are okay but it's the script itself.

    Pictures

    Spoiler:
     
    Last edited:

    Ninja Caterpie

    AAAAAAAAAAAAA
    5,979
    Posts
    16
    Years
  • Hello,

    whats wrong with this script?

    Code:
    '---------------
    #org 0x2D513F
    setvar 0x4060 0x37
    givepokemon 0x4060 0x8 0x0 0x0 0x0 0x0
    end

    it must give you your starter pokemon Vulpix but you can talk to the pokeball but nothing happen

    Uh, yeah, something happened! You just got a Vulpix! But you don't have any messages so, :\ Also, there's no "setflag 0x828" to enable the Pokemon menu.
     
    Status
    Not open for further replies.
    Back
    Top