• 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.
1
Posts
10
Years
    • Seen Oct 15, 2013
    Game: FireRed Editor: XSE

    I want to create a person event script where you talk to a guy and he tells you 'now playing sound X' and plays that sound at the same time. The next time you talk to him, he plays sound X + 1. So on and so forth throughout all the sounds in the game that are called by the 'sound 0x01' command.

    Right now all I can think of doing is using a variable, adding one to the variable each time the sound is played. A flag check is used for the first time you talk to him to set the variable to 0x0. All I can think of doing from there is ham-handedly throwing in [variable 0x5000] in where I want it to go, but I know that's not going to make it work.

    Spoiler:

    Disclaimer: I know I cannot put #org scripts so close to eachother. The above is an example with simpler numbers to be easier to read.
     
    105
    Posts
    12
    Years
  • how to make a script such that when i enter roue 22 first a charmander thumbs to me then it goes back then suddenly the screen fades white when the screen turned normal the charmander has evolved to charmeleon or its OW sprite is changed and then it starts to battle me.How can i make this script please help me.
     

    Danny0317

    Fluorite's back, brah
    1,067
    Posts
    10
    Years
    • Age 24
    • Seen Nov 19, 2023
    I'm having trouble with this level script on FR. It all works perfectly until after the setflags in the bottom, which after that I can't move even though I have the release and end commands.
    Here is the script
    Spoiler:


    btw "the hood" is the town you start in.
    So yeah can anyone tell me why I cant move after the script?
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    I'm having trouble with this level script on FR. It all works perfectly until after the setflags in the bottom, which after that I can't move even though I have the release and end commands.
    Here is the script
    Spoiler:


    btw "the hood" is the town you start in.
    So yeah can anyone tell me why I cant move after the script?

    Maybe this is why?
    Code:
    #org @start
    checkflag 0x1202
    if 0x1 goto @end
    msgbox @craphelp 0x6
    applymovement 0xFF @omw
    [COLOR="Red"]waitmovement 0x0[/COLOR]
    msgbox @shutup 0x6
    msgbox @choose 0x6
    msgbox @douwantsneasel 0x5
    compare 0x800D 0x1
    if 0x1 goto @sneasel
    msgbox @gligar 0x5
    compare 0x800D 0x1
    if 0x1 goto @givegligar
    msgbox @sneasel2 0x5
    compare 0x800D 0x1
    if 0x1 goto @sneasel
    compare 0x800D 0x0
    if 0x0 goto @choose
    release
    end
     

    Danny0317

    Fluorite's back, brah
    1,067
    Posts
    10
    Years
    • Age 24
    • Seen Nov 19, 2023
    Maybe this is why?
    Code:
    #org @start
    checkflag 0x1202
    if 0x1 goto @end
    msgbox @craphelp 0x6
    applymovement 0xFF @omw
    [COLOR="Red"]waitmovement 0x0[/COLOR]
    msgbox @shutup 0x6
    msgbox @choose 0x6
    msgbox @douwantsneasel 0x5
    compare 0x800D 0x1
    if 0x1 goto @sneasel
    msgbox @gligar 0x5
    compare 0x800D 0x1
    if 0x1 goto @givegligar
    msgbox @sneasel2 0x5
    compare 0x800D 0x1
    if 0x1 goto @sneasel
    compare 0x800D 0x0
    if 0x0 goto @choose
    release
    end

    I tried that already, still doesn't work.
     
    1
    Posts
    13
    Years
    • Seen Sep 7, 2014
    I have one problem, I can't figure out how fix it!

    I'm making a hack of pokemon emerald, I just wanna put the legendaries in the game (Entei, Suicune, Raikou, Moltres etc). So, I try to use this script for articuno:

    Spoiler:


    But the pokemon wont desapear when the battle ends.

    Sorry my bad english...

    I try to find the script for put pokemons in the emerald game, but every script then I use, the same mistake happen. What I'm doing wrong?
     
    Last edited by a moderator:
    61
    Posts
    10
    Years
    • Seen Feb 3, 2024
    #dynamic 0x800000

    #org @start
    msgbox @1 0x6
    closeonkeypress
    applymovement 0xFF @move
    release
    end

    #org @1
    = Red's Mom:[Player]\nIts locked upstairs.

    #org @move
    #raw 0x12
    #raw 0x10



    whats wrong with the script ? halts the game :/
    basically i just want to make the player move left once then down when i step on a tile
     

    Danny0317

    Fluorite's back, brah
    1,067
    Posts
    10
    Years
    • Age 24
    • Seen Nov 19, 2023
    #dynamic 0x800000

    #org @start
    msgbox @1 0x6
    closeonkeypress
    applymovement 0xFF @move
    release
    end

    #org @1
    = Red's Mom:[Player]\nIts locked upstairs.

    #org @move
    #raw 0x12
    #raw 0x10



    whats wrong with the script ? halts the game :/
    basically i just want to make the player move left once then down when i step on a tile

    Msgbox 0x6 doesn't use closekeyonpress.

    You would have to replace 0x6 with 0x4 I'm pretty sure.
     
    61
    Posts
    10
    Years
    • Seen Feb 3, 2024
    ORRRRRRR
    You could remove closeonkeypress and just end the movement. Without FE the game continues reading and obviously freezes.


    #dynamic 0x8000AD

    #org @start
    msgbox @1 0x6 ( tried replacing with 0x4 too )
    applymovement 0xFF @move
    release
    end

    #org @1
    = Red's Mom:[Player]\nIts locked upstairs.

    #org @move
    #raw 0x12
    #raw 0x10
    #raw 0xFE


    still no luck :'(
     

    GoGoJJTech

    (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
    2,475
    Posts
    11
    Years
  • #org @start
    msgbox @1 0x6
    applymovement 0xFF @move
    waitmovement 0
    release
    end

    #org @1
    = Red's Mom:[Player]\nIts locked upstairs.

    #org @move
    #raw 0x12
    #raw 0x10
    #raw 0xFE
     

    GoGoJJTech

    (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
    2,475
    Posts
    11
    Years
  • ahem ahem :P i think your right
    but i want this script to stay there
    for the whole game ?

    You still need a var. var 0000 is nonexistent and points to the wrong RAM area and your game freezes on contact.
     
    Status
    Not open for further replies.
    Back
    Top