• 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 FIRE RED] Game freezes upon interacting with person event (trying to make a new choose starter script)

9
Posts
3
Years
  • So i wanted to make this new choose starter script

    there's these three separate objects that are the starters

    i made this script for one of them:
    Code:
    #dynamic 0x810D88
    #org @grass
    lockall
    checkflag 0x211
    if 0x1 goto @urdone
    showpokepic 0x1 0xA 0x3
    msgbox @budeer 0x4
    closeonkeypress
    msgbox @choice 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @yes
    compare LASTRESULT 0x0
    if 0x1 goto @no
    
    #org @urdone
    msgbox @cantpick 0x6
    releaseall
    end
    
    #org @yes
    hidepokepic
    addvar 0x4031 0x0
    setflag 0x206
    setflag 0x828
    hidesprite 0x5
    msgbox @picked 0x6
    givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @receive 0x6
    waitfanfare
    closeonkeypress
    msgbox @nickname 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @yesnick
    compare LASTRESULT 0x0
    if 0x1 goto @nonick
    
    #org @no
    hidepokepic
    releaseall
    end
    
    #org @yesnick
    fadescreen 0x1
    special 0x9E
    waitstate
    goto @nonick
    
    #org @nonick
    applymovement 0x8 @ronanpicks
    waitmovement 0x0
    msgbox @ronan 0x6
    setflag 0x207
    hidesprite 0x6
    fanfare 0x13E
    msgbox @ronanchoice 0x4
    waitfanfare
    closeonkeypress
    releaseall
    end
    
    
    #org @budeer
    = [green_fr]This is BUDEER, a GRASS type\nPokémon.\pIt's very playful but scaredy\nat times.
    
    #org @choice
    = Will you choose this Pokémon?
    
    #org @cantpick
    = You already picked a pokémon, you\ncan't pick this one anymore.
    
    #org @picked
    = This pokémon is the perfect\nchoice!
    
    #org @receive
    = [player] received the Budeer from\nthe professor!
    
    #org @nickname
    = Do you want to give a nickname to\nthis Budeer?
    
    #org @ronan
    = I've decided! You will be my\nfirst Pokémon!
    
    #org @ronanchoice
    = [rival] obtained the Lapillox from\nthe professor!
    
    #org @ronanpicks
    #raw 0x13
    #raw 0x1
    #raw 0xFE

    But no matter what i put into that person event, i can put literally anything it will always freeze the game and i don't know why
    I'm losing my mind at this point, does anyone know why interacting with the person object makes it freeze no matter what?

    UPDATE: Now one of the three starters works but:
    1: the movement commands get completely screwed up once i compile it in game
    2: only one of the three starters work, the other ones? still freeze the game
     
    Last edited:
    990
    Posts
    4
    Years
  • So i wanted to make this new choose starter script

    there's these three separate objects that are the starters

    i made this script for one of them:
    Code:
    #dynamic 0x810D88
    #org @grass
    lockall
    checkflag 0x211
    if 0x1 goto @urdone
    showpokepic 0x1 0xA 0x3
    msgbox @budeer 0x4
    closeonkeypress
    msgbox @choice 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @yes
    compare LASTRESULT 0x0
    if 0x1 goto @no
    
    #org @urdone
    msgbox @cantpick 0x6
    releaseall
    end
    
    #org @yes
    hidepokepic
    addvar 0x4031 0x0
    setflag 0x206
    setflag 0x828
    hidesprite 0x5
    msgbox @picked 0x6
    givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @receive 0x6
    waitfanfare
    closeonkeypress
    msgbox @nickname 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @yesnick
    compare LASTRESULT 0x0
    if 0x1 goto @nonick
    
    #org @no
    hidepokepic
    releaseall
    end
    
    #org @yesnick
    fadescreen 0x1
    special 0x9E
    waitstate
    goto @nonick
    
    #org @nonick
    applymovement 0x8 @ronanpicks
    waitmovement 0x0
    msgbox @ronan 0x6
    setflag 0x207
    hidesprite 0x6
    fanfare 0x13E
    msgbox @ronanchoice 0x4
    waitfanfare
    closeonkeypress
    releaseall
    end
    
    
    #org @budeer
    = [green_fr]This is BUDEER, a GRASS type\nPokémon.\pIt's very playful but scaredy\nat times.
    
    #org @choice
    = Will you choose this Pokémon?
    
    #org @cantpick
    = You already picked a pokémon, you\ncan't pick this one anymore.
    
    #org @picked
    = This pokémon is the perfect\nchoice!
    
    #org @receive
    = [player] received the Budeer from\nthe professor!
    
    #org @nickname
    = Do you want to give a nickname to\nthis Budeer?
    
    #org @ronan
    = I've decided! You will be my\nfirst Pokémon!
    
    #org @ronanchoice
    = [rival] obtained the Lapillox from\nthe professor!
    
    #org @ronanpicks
    #raw 0x13
    #raw 0x1
    #raw 0xFE

    But no matter what i put into that person event, i can put literally anything it will always freeze the game and i don't know why
    I'm losing my mind at this point, does anyone know why interacting with the person object makes it freeze no matter what?

    UPDATE: Now one of the three starters works but:
    1: the movement commands get completely screwed up once i compile it in game
    2: only one of the three starters work, the other ones? still freeze the game
    A "typical starter script" is more complex than this. Try looking at the PokéBall scripts in Oak's Lab in vanilla FR for reference. If you still have an issue, feel free to ask.
     
    9
    Posts
    3
    Years
  • A "typical starter script" is more complex than this. Try looking at the PokéBall scripts in Oak's Lab in vanilla FR for reference. If you still have an issue, feel free to ask.
    sorry for late response, i was busy these days, but update:

    i managed to make it work, but the script idk why compiled itself with an error, at @nonick when it got compiled the tool put a weird offset and somehow compiled itself with it, and it doesn't want to change no matter how hard i try

    So if i don't want to give a nickname to my starter the game freezes, and i can't compile the script again
     
    Back
    Top